MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 1 callersMethodclose
Releases native resources. Callers must ensure no other methods are in-flight. Call {@link #stop()} and wait for {@link #generate(String, LlmCallback)
extension/android/executorch_android/src/main/java/org/pytorch/executorch/extension/llm/LlmModule.java:208
↓ 1 callersFunctioncodegen_hf_to_meta
(state_dict: Dict[str, torch.Tensor])
examples/models/codegen/convert_weight.py:29
↓ 1 callersMethodcodesign_so
Sign the compiled .so before packing into .pte. Called after AOTInductor compilation, before the .so bytes are read and packed into t
backends/aoti/aoti_backend.py:102
↓ 1 callersFunctioncoerce_int_pair
(raw, default: tuple[int, int])
backends/cortex_m/passes/passes_utils.py:159
↓ 1 callersFunctioncollect_free_symbols
( shape: Iterable[Union[int, torch.SymInt]] )
exir/sym_util.py:91
↓ 1 callersFunctioncollect_named_data_store_from_exported_program
Collects all the named data store outputs found within the exported program and adds them to named_data_store.
exir/program/_program.py:1296
↓ 1 callersFunctioncollect_named_data_store_outputs
( graph_module: torch.fx.GraphModule, )
exir/program/_program.py:1306
↓ 1 callersFunctioncollect_ops
Collect all targets for call_function nodes from the graph module recursively.
exir/tests/test_passes.py:105
↓ 1 callersMethodcollect_unsupported_fallback_kernels
Context manager to collect unsupported fallback kernels during compilation. Monitors both extern kernel calls and runtime lookup.
backends/aoti/aoti_backend.py:134
↓ 1 callersMethodcombine
Combine multiple ExportRecipe objects into a single recipe. Args: recipes: List of ExportRecipe objects to combine
export/recipe.py:205
↓ 1 callersFunctioncombine_op_dicts
(*dicts)
backends/arm/test/misc/test_mixed_type_lowering.py:12
↓ 1 callersFunctioncombine_permutations
Combine 2 permutations into 1. :param permutation1: The first permutation to apply. :param permutation2: The second permutation to apply.
backends/nxp/backend/ir/converter/conversion/translator.py:302
↓ 1 callersFunctioncombine_prim_ops_headers
Combine multiple selected_prim_ops.h files into a single header. Args: header_files: List of paths to header files to combine
codegen/tools/combine_prim_ops_headers.py:49
↓ 1 callersFunctioncomp_types
Compares a schema type (val) with Python type (input_val) Map: Int -> int, Bool -> bool, Double -> float, String -> str, Tensor -> t
exir/verification/interpreter.py:73
↓ 1 callersFunctioncompare
(a: float, b: float, op: str)
backends/arm/test/test_memory_allocator_log.py:69
↓ 1 callersFunctioncompare
( outputs: Any, ref_outputs: Any, name: str = "", eps_error: float = 1e-1, eps_warn: float
backends/cadence/runtime/runtime.py:91
↓ 1 callersMethodcompare
Full comparison pipeline: preprocess -> element-wise compare -> aggregate. This is the main entry point called by Inspector.calculate_numeric
devtools/inspector/numerical_comparator/numerical_comparator_base.py:196
↓ 1 callersFunctioncompare_against_base
Compare test binary file size against base revision binary file size.
scripts/file_size_compare.py:83
↓ 1 callersFunctioncompare_against_max
Compare test binary file size against maximum value.
scripts/file_size_compare.py:102
↓ 1 callersFunctioncompare_intermediate_tensors
( edge_program: EdgeProgramManager, example_inputs: Tuple[Value, ...], coreml_compile_specs: List[
examples/apple/coreml/scripts/debugger_cli.py:99
↓ 1 callersFunctioncompare_outputs
Compare expected and actual outputs using torch.allclose. Returns: (passed, message) tuple
backends/mlx/test/test_utils.py:422
↓ 1 callersFunctioncompare_outputs
Compare expected PyTorch output with runtime output from binary file. Args: expected: Expected output tensor from PyTorch ru
backends/apple/metal/tests/test_modules.py:1144
↓ 1 callersFunctioncompare_outputs
( executorch_program: ExportedProgram, model: torch.nn.Module, inputs: Tuple[torch.tensor], mo
examples/apple/mps/scripts/bench_utils.py:81
↓ 1 callersFunctioncompare_rel_frobenius_and_cosine_similarity
Frobenius test: computes the frobenius norm (sum of elementwise squared tensor values) of the *error*, and divides it with the frobenius norm of
backends/arm/test/tester/analyze_output_utils.py:340
↓ 1 callersMethodcompare_sample
( self, sample_dir, cpu_output_tensors: list[tuple[str, np.ndarray]], npu_outp
backends/nxp/tests/model_output_comparator.py:71
↓ 1 callersMethodcompare_sample
( self, sample_dir, baseline_filepaths, baseline_output_tensors, finet
backends/nxp/tests/model_output_comparator.py:216
↓ 1 callersFunctioncompile
( args, decoder_model_config: LLMModelConfig, pte_filenames: Dict[str, str], tokenizer, ca
examples/qualcomm/oss_scripts/llama/llama.py:94
↓ 1 callersMethodcompile
( self, compile_specs: Dict[str, List[CompileSpec]], pte_filenames: Dict[str, str],
examples/qualcomm/oss_scripts/llama/wrappers/llm_wrappers.py:1222
↓ 1 callersMethodcomplete
( self, k: torch.Tensor, v: torch.Tensor, k_cache: torch.Tensor, v_cac
examples/qualcomm/oss_scripts/moshi/model/static_mimi.py:72
↓ 1 callersFunctioncomplete_test_session
()
backends/test/suite/reporting.py:334
↓ 1 callersMethodcompute_cat_contiguity_constraints
( self, graph_module: torch.fx.GraphModule )
backends/cadence/aot/memory_constraints.py:543
↓ 1 callersMethodcompute_node_aot
Takes a node with only parameter inputs and replaces it with one constant tensor node with the operations already carried out on the d
backends/arm/_passes/fuse_constant_ops_pass.py:256
↓ 1 callersFunctioncompute_per_group_sums
Compute the sum of weights per quantization group. Args: weight_tensor (torch.Tensor): Tensor of shape [out_channels, in_channels],
backends/vulkan/patterns/quantized_linear.py:332
↓ 1 callersFunctioncompute_pos_embedding
()
examples/qualcomm/qaihub_scripts/llama/llama3/qaihub_llama3_8b.py:142
↓ 1 callersFunctioncompute_pos_embedding
()
examples/qualcomm/qaihub_scripts/llama/llama2/qaihub_llama2_7b.py:141
↓ 1 callersFunctioncompute_scales
(model, data, weight_bits, act_bits, num_points=1600)
examples/qualcomm/oss_scripts/llama/range_setting_pt2e.py:173
↓ 1 callersFunctioncompute_scores
(cpu_decode_res: torch.Tensor, qnn_decode_res: torch.Tensor)
examples/qualcomm/oss_scripts/moshi/mimi.py:81
↓ 1 callersMethodcompute_slice_and_select_loc_constraints
( self, graph_module: torch.fx.GraphModule )
backends/cadence/aot/memory_constraints.py:663
↓ 1 callersFunctioncompute_time_embedding
Sinusoidal time embedding. Returns (1, dim).
examples/models/voxtral_realtime/model.py:296
↓ 1 callersMethodcompute_unit_from_compile_specs
Returns the minimum deployment target by parsing the list of compile specs.
backends/apple/coreml/compiler/coreml_preprocess.py:193
↓ 1 callersMethodcompute_w_and_b
Compute equivalent per-channel weight and bias to match the batch norm computation with frozen values.
backends/xnnpack/_passes/decompose_batch_norm.py:121
↓ 1 callersMethodconditional_sensitive_check
(self, node)
backends/qualcomm/_passes/layout_transform.py:320
↓ 1 callersMethodconfigure_skip_passes
Configures the pass manager to skip certain passes based on the ArmPassPipelineConfig class found in the compile spec.
backends/arm/_passes/arm_pass_manager.py:224
↓ 1 callersMethodconstrain_op_arg_repset
Attempts to constrain the repset of the argument at index `arg_i` of the op associated with `op_repsets`. Prefers downstream consumer
backends/vulkan/_passes/tag_memory_meta_pass.py:412
↓ 1 callersMethodconstrain_op_out_repset
Similar to the `constrain_op_arg_repset` function, but for the output repset of the operator.
backends/vulkan/_passes/tag_memory_meta_pass.py:443
↓ 1 callersMethodconstrain_op_repsets
(self, op_repsets: utils.OpRepSets)
backends/vulkan/_passes/tag_memory_meta_pass.py:457
↓ 1 callersFunctionconstraints_loader
Adapter used by rules: 1) Fetch all OpInfo variants via backendOpInfo.get_op_info(qnn_op). 2) Normalize into NormalizedConstraints fo
backends/qualcomm/quantizer/backend_opinfo_adapter.py:125
↓ 1 callersMethodconstructOutputMap
(self)
backends/vulkan/runtime/gen_vulkan_spv.py:884
↓ 1 callersFunctionconstruct_f_map
(parsed_yaml: ParsedYaml)
backends/vulkan/test/op_tests/generate_op_benchmarks.py:34
↓ 1 callersFunctionconstruct_f_map
(parsed_yaml: ParsedYaml)
backends/vulkan/test/op_tests/generate_op_correctness_tests.py:34
↓ 1 callersMethodcontains_unoptimizable_placeholder_or_param
Return true if any node in the incoming nodes list is not memory planned.
backends/cadence/aot/memory_constraints.py:187
↓ 1 callersFunctioncontributions_per_node
( node: torch.fx.Node, # pyre-fixme[2]: Parameter annotation cannot contain `Any`. op_
backends/cadence/aot/compiler_utils.py:158
↓ 1 callersFunctionconv_remainder
Returns the remainder of input_length; given the padding, dilation, stride, and kernel size.
backends/arm/_passes/size_adjust_input_pass.py:34
↓ 1 callersMethodconv_sep_dw
(self, inp, oup)
backends/nxp/tests/ir/converter/node_converter/test_clone_converter.py:84
↓ 1 callersFunctionconv_with_clamp_impl
( input, weight, bias=None, stride=1, padding=0, dilation=1, transposed=False,
backends/vulkan/custom_ops_lib.py:35
↓ 1 callersMethodconvert
Call Neutron Converter. :param tflite_model: A generic TFLite model to be converted. :param target: The target platform.
backends/nxp/backend/neutron_converter_manager.py:64
↓ 1 callersMethodconvert_arguments
( self, args: Sequence[Binding] )
codegen/api/unboxing.py:60
↓ 1 callersFunctionconvert_axes_from_attribute
Create an `axes` tensor and assign it as an input to the `t_op`, which is expected to represent an ExecuTorch reduction operator.
backends/nxp/backend/ir/converter/node_converters/shared/reduce_utils.py:17
↓ 1 callersMethodconvert_divisor_to_multiplier
(self, div_node: Node)
backends/nxp/aten_passes/convert_div_to_mul.py:65
↓ 1 callersMethodconvert_for_runtime
(self)
examples/models/llama/source_transformation/quantize.py:304
↓ 1 callersMethodconvert_for_runtime
(self)
examples/models/llama/source_transformation/quantize.py:668
↓ 1 callersFunctionconvert_from_flatbuffer
(program_flatbuffer: bytes)
devtools/bundled_program/serialize/__init__.py:66
↓ 1 callersFunctionconvert_hf_to_custom
Convert HuggingFace checkpoint to custom format. Args: checkpoint_path: Path to HuggingFace checkpoint directory. config: Gemma4C
examples/models/gemma4/text_decoder/convert_weights.py:226
↓ 1 callersFunctionconvert_image_to_c_array
( image_path, output_path, image_size=(224, 224), array_name="image_data" )
examples/arm/image_classification_example_ethos_u/runtime/rgb_to_array.py:32
↓ 1 callersFunctionconvert_model_state_dict
Convert a model state dictionary to fairseq2. :param state_dict: The original model state dictionary. :param key_map: A map o
examples/models/llama/fairseq2.py:11
↓ 1 callersFunctionconvert_program
(val: Program)
exir/_serialize/_flatbuffer_program.py:193
↓ 1 callersFunctionconvert_to_flatbuffer
(xnnpack_graph: XNNGraph)
backends/xnnpack/serialization/xnnpack_graph_serialize.py:327
↓ 1 callersFunctionconvert_to_flatbuffer
(mps_graph: MPSGraph)
backends/apple/mps/serialization/mps_graph_serialize.py:19
↓ 1 callersFunctionconvert_to_flatbuffer
(program_json: str)
devtools/bundled_program/serialize/__init__.py:50
↓ 1 callersFunctionconvert_to_pte
Convert a GGUF model into a PTE file, an ExecuTorch program. Args: model_args: The arguments for the GGUF model. weights: The wei
extension/gguf_util/converter.py:10
↓ 1 callersMethodconvert_to_qc4w
Convert a tensor to a quantized channelwise tensor 4bit tensor
backends/xnnpack/operators/node_visitor.py:501
↓ 1 callersFunctionconvert_weights
(input_dir: str, output_file: str)
examples/models/qwen3/convert_weights.py:116
↓ 1 callersFunctionconvert_weights
(input_dir: str, output_file: str)
examples/models/internvl3/convert_weights.py:56
↓ 1 callersFunctionconvert_weights
(input_dir: str, output_file: str)
examples/models/smollm3/convert_weights.py:86
↓ 1 callersFunctionconvert_weights
(input_dir: str, output_file: str)
examples/models/smolvlm/convert_weights.py:51
↓ 1 callersFunctionconvert_weights
(input_dir: str, output_file: str)
examples/models/gemma/convert_weights.py:78
↓ 1 callersFunctionconvert_weights
(input_dir: str, output_file: str)
examples/models/glm/convert_weights.py:52
↓ 1 callersFunctionconvert_weights
(input_dir: str, output_file: str)
examples/models/qwen3_5/convert_weights.py:139
↓ 1 callersFunctionconvert_weights
(input_dir: str, output_file: str)
examples/models/smollm2/convert_weights.py:50
↓ 1 callersFunctionconvert_weights
(input_dir: str, output_file: str)
examples/models/gemma3/convert_weights.py:84
↓ 1 callersFunctionconvert_weights
(input_dir: str, output_file: str)
examples/models/granite/convert_weights.py:80
↓ 1 callersFunctionconvert_weights
(input_dir: str, output_file: str)
examples/models/gemma2/convert_weights.py:87
↓ 1 callersFunctionconvert_weights
(input_dir_or_checkpoint: str, output_file: str)
examples/models/codegen/convert_weight.py:65
↓ 1 callersFunctionconvert_weights
(input_dir_or_checkpoint: str, output_file: str)
examples/models/phi_4_mini/convert_weights.py:111
↓ 1 callersFunctionconvert_weights
(input_dir: str, output_file: str)
examples/models/qwen2_5/convert_weights.py:79
↓ 1 callersFunctionconvert_weights
(input_dir: str, output_file: str)
examples/models/granite_speech/convert_weights.py:85
↓ 1 callersMethodcopy_from_staging
(self, ref: ValueRefList)
backends/vulkan/test/op_tests/utils/gen_computegraph.py:655
↓ 1 callersMethodcopy_into_staging
(self, ref: ValueRefList)
backends/vulkan/test/op_tests/utils/gen_computegraph.py:595
↓ 1 callersFunctioncopy_nn_module_stack
Copy meta["nn_module_stack"] from src node to target node if existing.
backends/qualcomm/_passes/utils.py:132
↓ 1 callersFunctioncore_aten_to_edge
( core_aten_program: ExportedProgram, edge_compile_config: exir.EdgeCompileConfig, )
examples/apple/coreml/scripts/inspector_utils.py:94
↓ 1 callersFunctioncorstone300_installed
()
backends/arm/test/runner_utils.py:807
↓ 1 callersFunctioncorstone320_installed
()
backends/arm/test/runner_utils.py:816
↓ 1 callersMethodcosine
(self, pred, expect)
backends/qualcomm/quantizer/observers/per_channel_param_observer.py:65
↓ 1 callersFunctioncosine_similarity
(tensor1: torch.Tensor, tensor2: torch.Tensor)
devtools/inspector/_inspector_utils.py:482
↓ 1 callersFunctioncount_mlx_delegate_segments
Count the number of MLX delegate segments in a PTE file. Args: pte_path: Path to the .pte file Returns: Number of MLX d
backends/mlx/test/test_utils.py:367
↓ 1 callersFunctioncount_nodes_with_target_asserting_arguments_have_dtype
( self, module, target, arg_dtype )
exir/tests/test_passes.py:177
↓ 1 callersMethodcreate_1d_conv_with_single_input_channel_graph_module
Helper to create a regular 1D quantized conv with in_channels=1, groups=1. This configuration (groups == in_channels == 1) must NOT be classi
backends/cadence/aot/tests/test_replace_ops_passes.py:2563
↓ 1 callersMethodcreate_1d_depthwise_convolution_graph_module
Helper to create a 1D depthwise convolution node. For depthwise convolution, groups == input_channels > 1. Input shape: [N, C, L] = [
backends/cadence/aot/tests/test_replace_ops_passes.py:2678
↓ 1 callersMethodcreate_arg
(self, a: Argument)
exir/pass_base.py:682
↓ 1 callersFunctioncreate_argument_parser
Create command line argument parser
examples/openvino/stable_diffusion/openvino_lcm.py:306
← previousnext →7,101–7,200 of 28,493, ranked by callers