/aosp_15_r20/external/executorch/examples/models/llama/ |
H A D | export_llama_lib.py | 4 # This source code is licensed under the BSD-style license found in the 7 # pyre-unsafe 91 def set_pkg_name(name: str) -> None: 96 def get_resource_path(resource_name) -> str: 115 ) -> str: 121 …argString = f"--model {modelname} --checkpoint par:model_ckpt.pt --params par:model_params.json {e… 128 def build_args_parser() -> argparse.ArgumentParser: 131 parser.add_argument("-o", "--output-dir", default=".", help="output directory") 133 # "-q", "--quantized_ckpt", default=None, help="quantized checkpoint file" 136 "--model", [all …]
|
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
H A D | InjectTLIMappings.cpp | 1 //===- InjectTLIMAppings.cpp - TLI to VFABI attribute injection ----------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // Populates the VFABI attribute with the scalar-to-vector mappings 12 //===----------------------------------------------------------------------===// 14 #include "llvm/Transforms/Utils/InjectTLIMappings.h" 18 #include "llvm/Transforms/Utils.h" 19 #include "llvm/Transforms/Utils/ModuleUtils.h" 23 #define DEBUG_TYPE "inject-tli-mappings" 33 /// Helper function to map the TLI name to a strings that holds [all …]
|
H A D | EscapeEnumerator.cpp | 1 //===- EscapeEnumerator.cpp -----------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // Defines a helper class that enumerates all possible exits from a function, 12 //===----------------------------------------------------------------------===// 14 #include "llvm/Transforms/Utils/EscapeEnumerator.h" 16 #include "llvm/Transforms/Utils/Local.h" 18 #include "llvm/IR/Module.h" 21 static FunctionCallee getDefaultPersonalityFn(Module *M) { in getDefaultPersonalityFn() 22 LLVMContext &C = M->getContext(); in getDefaultPersonalityFn() [all …]
|
/aosp_15_r20/external/pytorch/test/quantization/core/experimental/ |
H A D | quantization_util.py | 3 import torchvision.transforms.transforms as transforms namespace 14 module=r'.*' 18 module=r'torch.ao.quantization' 22 Define helper functions for APoT PTQ and QAT 63 correct = pred.eq(target.view(1, -1).expand_as(pred)) 67 correct_k = correct[:k].reshape(-1).float().sum(0, keepdim=True) 104 normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406], 108 … transform=transforms.Compose([transforms.RandomResizedCrop(224), 109 … transforms.RandomHorizontalFlip(), 110 transforms.ToTensor(), [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/include/llvm/Passes/ |
D | CodeGenPassBuilder.h | 1 //===- Construction of codegen pass pipelines ------------------*- C++ -*--===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 64 #include "llvm/Transforms/CFGuard.h" 65 #include "llvm/Transforms/Scalar/ConstantHoisting.h" 66 #include "llvm/Transforms/Scalar/LoopPassManager.h" 67 #include "llvm/Transforms/Scalar/LoopStrengthReduce.h" 68 #include "llvm/Transforms/Scalar/LowerConstantIntrinsics.h" 69 #include "llvm/Transforms/Scalar/MergeICmps.h" [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/llvm/Passes/ |
D | CodeGenPassBuilder.h | 1 //===- Construction of codegen pass pipelines ------------------*- C++ -*--===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 64 #include "llvm/Transforms/CFGuard.h" 65 #include "llvm/Transforms/Scalar/ConstantHoisting.h" 66 #include "llvm/Transforms/Scalar/LoopPassManager.h" 67 #include "llvm/Transforms/Scalar/LoopStrengthReduce.h" 68 #include "llvm/Transforms/Scalar/LowerConstantIntrinsics.h" 69 #include "llvm/Transforms/Scalar/MergeICmps.h" [all …]
|
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Passes/ |
H A D | PassBuilderPipelines.cpp | 1 //===- Construction of pass pipelines -------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 15 //===----------------------------------------------------------------------===// 33 #include "llvm/Transforms/AggressiveInstCombine/AggressiveInstCombine.h" 34 #include "llvm/Transforms/Coroutines/CoroCleanup.h" 35 #include "llvm/Transforms/Coroutines/CoroConditionalWrapper.h" 36 #include "llvm/Transforms/Coroutines/CoroEarly.h" 37 #include "llvm/Transforms/Coroutines/CoroElide.h" 38 #include "llvm/Transforms/Coroutines/CoroSplit.h" [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/llvm/Passes/ |
D | CodeGenPassBuilder.h | 1 //===- Construction of codegen pass pipelines ------------------*- C++ -*--===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 65 #include "llvm/Transforms/CFGuard.h" 66 #include "llvm/Transforms/Scalar/ConstantHoisting.h" 67 #include "llvm/Transforms/Scalar/LoopPassManager.h" 68 #include "llvm/Transforms/Scalar/LoopStrengthReduce.h" 69 #include "llvm/Transforms/Scalar/LowerConstantIntrinsics.h" 70 #include "llvm/Transforms/Scalar/MergeICmps.h" [all …]
|
/aosp_15_r20/external/skia/modules/pathkit/ |
H A D | package-lock.json | 2 "name": "pathkit-local", 7 "@babel/code-frame": { 9 "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz", 10 …"integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3O… 18 "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.10.tgz", 19 …"integrity": "sha512-eTAlQKq65zHfkHZV0sIVODCPGVgoo1HdBlbSLi9CqOzuZanMv2ihzY+4paiKr1mH+XmYESMAmJ/dp… 22 "@babel/code-frame": "^7.10.4", 24 "@babel/helper-module-transforms": "^7.12.1", 30 "convert-source-map": "^1.7.0", 32 "gensync": "^1.0.0-beta.1", [all …]
|
/aosp_15_r20/external/skia/modules/canvaskit/ |
H A D | package-lock.json | 2 "name": "canvaskit-local", 8 "name": "canvaskit-local", 10 "license": "BSD-3-Clause", 12 "is-docker": "~1.1.0", 13 "jasmine-core": "~3.6.0", 15 "karma-chrome-launcher": "~3.1.0", 16 "karma-coverage": "~2.0.3", 17 "karma-jasmine": "~4.0.1", 21 "node_modules/@babel/code-frame": { 23 "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", [all …]
|
/aosp_15_r20/external/pytorch/docs/source/ |
H A D | func.migrating.rst | 5 `JAX-like <https://github.com/google/jax>`_ composable function transforms for PyTorch. 7 functorch started as an out-of-tree library over at 13 (``functorch``) to being a part of PyTorch to reflect how the function transforms are 19 function transforms 20 ------------------- 22 The following APIs are a drop-in replacement for the following 42 transforms are more composable and more performant in many cases. 53 NN module utilities 54 ------------------- 56 We've changed the APIs to apply function transforms over NN modules to make them [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/mlir_hlo/lib/Transforms/ |
H A D | bufferize_pass.cc | 7 http://www.apache.org/licenses/LICENSE-2.0 26 #include "mlir-hlo/Dialect/gml_st/IR/gml_st_ops.h" 27 #include "mlir-hlo/Dialect/gml_st/transforms/bufferizable_op_interface_impl.h" 28 #include "mlir-hlo/Dialect/lhlo/IR/lhlo_ops.h" 29 #include "mlir-hlo/Dialect/mhlo/IR/chlo_ops.h" 30 #include "mlir-hlo/Dialect/mhlo/IR/hlo_ops.h" 31 #include "mlir-hlo/Dialect/mhlo/transforms/bufferizable_op_interface_impl.h" 32 #include "mlir-hlo/Dialect/mhlo/transforms/rewriters.h" 33 #include "mlir-hlo/Dialect/mhlo/transforms/type_conversion.h" 34 #include "mlir-hlo/Transforms/PassDetail.h" [all …]
|
/aosp_15_r20/external/llvm/lib/Transforms/IPO/ |
H A D | Internalize.cpp | 1 //===-- Internalize.cpp - Mark functions internal -------------------------===// 8 //===----------------------------------------------------------------------===// 10 // This pass loops over all of the functions and variables in the input module. 18 // told it is only used from within this module, it is safe to do it. 20 //===----------------------------------------------------------------------===// 22 #include "llvm/Transforms/IPO/Internalize.h" 27 #include "llvm/IR/Module.h" 32 #include "llvm/Transforms/IPO.h" 33 #include "llvm/Transforms/Utils/GlobalStatus.h" 44 // APIFile - A file which contains a list of symbols that should not be marked [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/python/autograph/pyct/ |
H A D | transpiler.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 80 correctly marks them as free non-global variables upon load (that is, it 84 https://docs.python.org/3/reference/executionmodel.html#binding-of-names 112 module='__future__', 144 """Helper object that wraps a Python function factory.""" 151 freevars: The list of non-global free variables for the function. 160 self.module = None 179 module, _, source_map = loader.load_ast( 181 outer_factory = getattr(module, outer_factory_name) 183 self.module = module [all …]
|
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
H A D | Internalize.cpp | 1 //===-- Internalize.cpp - Mark functions internal -------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // This pass loops over all of the functions and variables in the input module. 17 // told it is only used from within this module, it is safe to do it. 19 //===----------------------------------------------------------------------===// 21 #include "llvm/Transforms/IPO/Internalize.h" 26 #include "llvm/IR/Module.h" 34 #include "llvm/Transforms/IPO.h" 35 #include "llvm/Transforms/Utils/GlobalStatus.h" [all …]
|
/aosp_15_r20/external/executorch/docs/source/ |
H A D | getting-started-architecture.md | 1 # High-level Architecture and Components of ExecuTorch 7 …-device AI with diverse hardware, critical power requirements, and realtime processing needs, a si… 11 There are three phases to deploy a PyTorch model to on-device: program preparation, runtime prepara… 15 **Figure 1.** The figure illustrates the three phases - program preparation, runtime preparation an… 24 [dynamic shapes](https://pytorch.org/get-started/pytorch-2.0/#pytorch-2x-faster-more-pythonic-and-a… 25 [control flow](https://pytorch.org/docs/main/export.html#data-shape-dependent-control-flow), 28 Program preparation is often simply called AOT (ahead-of-time) because export, transformations and … 34 * Like all PyTorch use cases, ExecuTorch starts from model authoring, where standard `nn.Module` ea… 35 * Export-specific helpers are used to represent advanced features like [control 36 flow](https://pytorch.org/docs/main/export.html#data-shape-dependent-control-flow) [all …]
|
/aosp_15_r20/external/perfetto/ui/ |
H A D | pnpm-lock.yaml | 23 '@codemirror/theme-one-dark': 41 '@types/color-convert': 62 '@types/w3c-web-usb': 68 color-convert: 71 devtools-protocol: 89 jsbn-rsa: 95 noice-json-rpc: 104 protobufjs-cli: 116 vega-lite: 133 '@rollup/plugin-commonjs': [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/compiler/mlir/tfrt/transforms/ |
H A D | tf_to_tfrt_data.cc | 7 http://www.apache.org/licenses/LICENSE-2.0 17 #include "tensorflow/compiler/mlir/tfrt/transforms/tf_to_tfrt_data.h" 19 #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project 20 #include "mlir/IR/OperationSupport.h" // from @llvm-project 21 #include "mlir/IR/Types.h" // from @llvm-project 22 #include "mlir/Pass/Pass.h" // from @llvm-project 23 #include "mlir/Pass/PassManager.h" // from @llvm-project 24 #include "mlir/Transforms/DialectConversion.h" // from @llvm-project 27 #include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h" 39 #define DEBUG_TYPE "tf-to-tfrt-data" [all …]
|
H A D | tf_to_tfrt.cc | 7 http://www.apache.org/licenses/LICENSE-2.0 31 #include "mlir/Transforms/DialectConversion.h" 32 #include "mlir/Transforms/Passes.h" 33 #include "mlir/Transforms/RegionUtils.h" 38 #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project 39 #include "mlir/IR/BuiltinAttributes.h" // from @llvm-project 40 #include "mlir/IR/BuiltinOps.h" // from @llvm-project 41 #include "mlir/Support/LogicalResult.h" // from @llvm-project 46 #include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h" 54 #include "tensorflow/compiler/mlir/tfrt/jit/transforms/tf_jitrt_clustering.h" [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/mlir/transforms/runtime/ |
H A D | rt_to_llvm.cc | 7 http://www.apache.org/licenses/LICENSE-2.0 23 #include "mlir/Conversion/LLVMCommon/TypeConverter.h" // from @llvm-project 24 #include "mlir/Dialect/Arithmetic/IR/Arithmetic.h" // from @llvm-project 25 #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project 26 #include "mlir/Dialect/Func/Transforms/FuncConversions.h" // from @llvm-project 27 #include "mlir/Dialect/LLVMIR/LLVMDialect.h" // from @llvm-project 28 #include "mlir/Dialect/LLVMIR/LLVMTypes.h" // from @llvm-project 29 #include "mlir/IR/Attributes.h" // from @llvm-project 30 #include "mlir/IR/BuiltinOps.h" // from @llvm-project 31 #include "mlir/IR/BuiltinTypes.h" // from @llvm-project [all …]
|
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Transforms/Utils/ |
H A D | InjectTLIMappings.cpp | 1 //===- InjectTLIMAppings.cpp - TLI to VFABI attribute injection ----------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // Populates the VFABI attribute with the scalar-to-vector mappings 12 //===----------------------------------------------------------------------===// 14 #include "llvm/Transforms/Utils/InjectTLIMappings.h" 22 #include "llvm/Transforms/Utils.h" 23 #include "llvm/Transforms/Utils/ModuleUtils.h" 27 #define DEBUG_TYPE "inject-tli-mappings" 37 /// A helper function that adds the vector function declaration that [all …]
|
H A D | EscapeEnumerator.cpp | 1 //===- EscapeEnumerator.cpp -----------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // Defines a helper class that enumerates all possible exits from a function, 12 //===----------------------------------------------------------------------===// 14 #include "llvm/Transforms/Utils/EscapeEnumerator.h" 17 #include "llvm/IR/Module.h" 18 #include "llvm/Transforms/Utils/Local.h" 22 static FunctionCallee getDefaultPersonalityFn(Module *M) { in getDefaultPersonalityFn() 23 LLVMContext &C = M->getContext(); in getDefaultPersonalityFn() [all …]
|
/aosp_15_r20/external/llvm/lib/LTO/ |
H A D | ThinLTOCodeGenerator.cpp | 1 //===-ThinLTOCodeGenerator.cpp - LLVM Link Time Optimizer -----------------===// 8 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===// 46 #include "llvm/Transforms/IPO.h" 47 #include "llvm/Transforms/IPO/FunctionImport.h" 48 #include "llvm/Transforms/IPO/Internalize.h" 49 #include "llvm/Transforms/IPO/PassManagerBuilder.h" 50 #include "llvm/Transforms/ObjCARC.h" 51 #include "llvm/Transforms/Utils/FunctionImportUtils.h" 60 // Flags -discard-value-names, defined in LTOCodeGenerator.cpp [all …]
|
/aosp_15_r20/external/webrtc/modules/audio_coding/codecs/opus/test/ |
H A D | lapped_transform.h | 4 * Use of this source code is governed by a BSD-style license 66 // Helper class for audio processing modules which operate on frequency domain 73 // which constitutes the final output of this processing module. 91 // `shift_amount` is in samples. `callback` is the caller-owned audio 102 // Main audio processing helper method. Internally slices `in_chunk` into 103 // blocks, transforms them to frequency domain, calls the callback for each 104 // block and returns a de-blocked time domain chunk of audio through 105 // `out_chunk`. Both buffers are caller-owned. 140 // Internal middleware callback, given to the blocker. Transforms each block
|
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/CodeGen/ |
H A D | CodeGenPassBuilder.h | 1 //===- Construction of codegen pass pipelines ------------------*- C++ -*--===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===// 41 #include "llvm/Transforms/Scalar/ConstantHoisting.h" 42 #include "llvm/Transforms/Scalar/LoopPassManager.h" 43 #include "llvm/Transforms/Scalar/LoopStrengthReduce.h" 44 #include "llvm/Transforms/Scalar/LowerConstantIntrinsics.h" 45 #include "llvm/Transforms/Scalar/MergeICmps.h" 46 #include "llvm/Transforms/Scalar/PartiallyInlineLibCalls.h" [all …]
|