MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 2 callersFunctionprepare_input_file
(tensor, fd, index, sub_index)
backends/qualcomm/export_utils.py:900
↓ 2 callersFunctionprepare_model
(args)
examples/qualcomm/oss_scripts/llama/eval_llama_qnn.py:151
↓ 2 callersMethodprepare_model_and_inputs
(cls)
backends/arm/test/models/Qwen3_VL/test_qwen3_vl_layers.py:356
↓ 2 callersFunctionprepare_tokenizer
(args)
examples/qualcomm/oss_scripts/llama/eval_llama_qnn.py:111
↓ 2 callersFunctionprepare_traced_pt2
Prepare a model using the given quantizer. The quantizer must be supplied and be the same as the one used to fuse the model later, if app
backends/cadence/aot/compiler.py:105
↓ 2 callersFunctionpreprocess
( input_text: str, variables: Dict[str, Any], input_path: str = "codegen" )
backends/vulkan/runtime/gen_vulkan_spv.py:585
↓ 2 callersMethodpreprocess
(self, data: np.ndarray | dict[int, numpy.ndarray])
backends/nxp/tests/executors.py:280
↓ 2 callersFunctionpretty_print
(mps_graph: MPSGraph)
backends/apple/mps/mps_preprocess.py:311
↓ 2 callersFunctionprint_mlx_graph_summary
Print a human-readable summary of the MLX graph in a PTE file. This function uses the pte_inspector module to display the MLX graph.
backends/mlx/test/test_utils.py:354
↓ 2 callersFunctionprint_size_diff
Print the size difference.
scripts/file_size_compare.py:66
↓ 2 callersFunctionprint_size_error
Print an error message for excessive size.
scripts/file_size_compare.py:76
↓ 2 callersMethodprocess
(self, request: Request)
examples/qualcomm/oss_scripts/llama/wrappers/llm_wrappers.py:1218
↓ 2 callersFunctionprocess_inputs
Serialize an input node.
backends/arm/process_node.py:105
↓ 2 callersFunctionprocess_model_args
Based on the mode and arguments, set the appropriate model args for compilation. Args: control_args: Arguments from command line.
examples/qualcomm/oss_scripts/llama/wrappers/base_component.py:72
↓ 2 callersFunctionprocess_placeholder
Wrapper for processing and serializing all types of placeholders.
backends/arm/process_node.py:236
↓ 2 callersFunctionpropagate_quantization
Propagates quantization parameters from from_tensor to to_tensor. If to_tensor already has the params set checks the consistency. :raises
backends/nxp/backend/ir/converter/quantization_utils.py:35
↓ 2 callersMethodpull_debug_output
(self, etdump_path, debug_ouput_path, callback=None)
backends/qualcomm/export_utils.py:490
↓ 2 callersFunctionpython_is_compatible
()
install_utils.py:204
↓ 2 callersFunctionquant_fusion_and_const_prop_pass
(program: ExportedProgram)
exir/passes/quant_fusion_pass.py:164
↓ 2 callersFunctionquantize
Quantizes a model by converting all weights to int8. Args: model: The model to quantize. qmode: The quantization mode, e.g.
examples/models/llama/source_transformation/quantize.py:20
↓ 2 callersFunctionquantize
(args)
examples/qualcomm/util_scripts/cli.py:159
↓ 2 callersMethodquantize_and_compare
( model, example_inputs: Tuple[torch.Tensor], quantization_type: str, )
backends/apple/coreml/test/test_coreml_quantizer.py:53
↓ 2 callersFunctionquantize_model
Quantizes a model using NNCF quantize_pt2e API. :param captured_model: The model to be quantized, represented as a torch.fx.GraphModule.
backends/openvino/quantizer/quantizer.py:619
↓ 2 callersFunctionquantize_output
Modify the program to produce quantized output at given index. The model is expected to be dequantizing this output as the last step. Must be
exir/passes/quantize_io_pass.py:146
↓ 2 callersFunctionquantize_pt2
Trace, prepare, convert and fuse the model using the given quantizer. If calibration data is provided, it will be used to calibrate the model
backends/cadence/aot/compiler.py:217
↓ 2 callersFunctionquantized_conv2d_nchw_per_tensor
Quantized convolution operation. Args: - input_tensor (Tensor): The activations tensor - weight (Tensor): The weight tensor
backends/cadence/aot/ref_implementations.py:894
↓ 2 callersFunctionquantized_matmul
Quantized matmul operation. Args: - X (Tensor): The activations tensor - X_zero_point (int): The quantized mapping of zero f
backends/cadence/aot/ref_implementations.py:642
↓ 2 callersFunctionquantized_relu_per_tensor
()
backends/cadence/aot/ref_implementations.py:1992
↓ 2 callersFunctionquantized_softmax_per_tensor_common
Quantized softmax operation. Args: - input_tensor (Tensor): The quantized input tensor - mask (Tensor): Mask tensor
backends/cadence/aot/ref_implementations.py:2632
↓ 2 callersFunctionquery
Query an attribute of a target.
scripts/print_exported_headers.py:29
↓ 2 callersFunctionrandom_input_data
(input_shape)
backends/nxp/tests/ir/converter/node_converter/test_softmax_converter.py:55
↓ 2 callersMethodredirect_tensor
Create a mapping of 'from_tensor' to 'to_tensor', which will ensure that when 'check_and_append_operator()' is called with an operator th
backends/nxp/backend/ir/converter/builder/model_builder.py:242
↓ 2 callersMethodregister_annotation
Register quantization config for custom op. Args: op_target: The torch op target (e.g. torch.ops.my_ops.custom_op.defaul
backends/qualcomm/custom_op/annotator.py:55
↓ 2 callersMethodregister_list
A function used to insert a list of passes into the registry. The pass can be searched for in the registry according to the given pas
exir/passes/pass_registry.py:55
↓ 2 callersMethodregister_stage
Register a new stage or override an existing stage implementation. Args: stage_type: The type of stage to register
export/export.py:336
↓ 2 callersFunctionreject_partition
Remove a proposed partition and record the rejection reason. Args: reason (str): Human-readable explanation for rejection. partit
backends/arm/tosa/partitioner.py:137
↓ 2 callersMethodremove_body_nodes
Remove body nodes from the graph (in reverse order for safety). Call after replacing head with fused op.
backends/mlx/pattern_utils.py:348
↓ 2 callersMethodremove_branched
( self, graph_module: torch.fx.GraphModule, producer_pkts: set[EdgeOpOverloadPacket],
backends/cadence/aot/remove_ops.py:768
↓ 2 callersFunctionremove_graph_break_
Remove graph break ops from all methods in the edge manager.
examples/apple/coreml/llama/export_static_llm_coreml.py:95
↓ 2 callersFunctionremove_unused_parameters_pass
Remove unused parameters from the exported program.
exir/passes/remove_unused_parameters_pass.py:14
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
examples/models/llama/source_transformation/sdpa.py:277
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
examples/qualcomm/oss_scripts/llm_utils/decoder_model_wrapper.py:49
↓ 2 callersFunctionrepeat_op_dict
(op_dict, times)
backends/arm/test/misc/test_mixed_type_lowering.py:20
↓ 2 callersFunctionreplace_if_empty
(text, replacement="No relevant packages")
util/collect_env.py:641
↓ 2 callersFunctionreplace_kv_cache_with_quantized_kv_cache
(module)
examples/models/llama/source_transformation/custom_kv_cache.py:256
↓ 2 callersFunctionreplace_mha_with_inference_mha
Replace TorchTune's MHA with an inference friendly version of MHA that separates out the inference-related parts for further optimization.
extension/llm/modules/attention.py:407
↓ 2 callersMethodreplace_node_with_static_data
Remove the given `node` from the graph and replace it with a parameter node containing the `static_data`.
backends/nxp/aten_passes/remove_nodes_with_known_outputs.py:73
↓ 2 callersFunctionreplace_tile_positional_embedding
Replace the tile positional embedding from torchtune with an export-friendly one. Recursively searches the submodules of the model and replac
extension/llm/modules/_position_embeddings.py:656
↓ 2 callersFunctionreplace_tiled_token_positional_embedding
Replace the tiled token positional embedding from torchtune with an export-friendly one. Recursively searches the submodules of the model and
extension/llm/modules/_position_embeddings.py:692
↓ 2 callersMethodreplace_view_copy_node
( self, graph_module: torch.fx.GraphModule, view_node: torch.fx.Node, op: torc
backends/transforms/view_copy_to_squeeze_unsqueeze.py:93
↓ 2 callersFunctionrequired_image_extents
Calculate the image extents that will be used to represent a tensor with the given sizes and memory layout in the Vulkan Delegate.
backends/vulkan/utils.py:732
↓ 2 callersMethodreset_cache
Reset the key value caches.
extension/llm/modules/attention.py:193
↓ 2 callersFunctionresolve_hf_cache_layout
Return per-cache-layer metadata for HuggingFace hybrid/static caches. Some models such as Gemma 4 use different KV geometries depending on t
backends/mlx/llm/cache.py:32
↓ 2 callersFunctionresolve_hf_text_config
Return the text config for multimodal HF models, or the config itself.
backends/mlx/llm/cache.py:25
↓ 2 callersFunctionretrieve_info_from_pte
(pte_path: str)
examples/qualcomm/oss_scripts/llama/decoder_utils.py:286
↓ 2 callersMethodreturn_id
(self, idx)
backends/mlx/builder/slot_manager.py:67
↓ 2 callersFunctionreturns_type
(rs: Sequence[Return])
codegen/api/et_cpp.py:202
↓ 2 callersFunctionreverse_quantize_module_swap
(model: nn.Module)
examples/qualcomm/oss_scripts/llama/range_setting_pt2e.py:123
↓ 2 callersFunctionround_up
(a, b)
backends/cuda/triton/kernels/tq4_sdpa.py:56
↓ 2 callersFunctionround_up
(a, b)
backends/cuda/triton/kernels/sdpa.py:92
↓ 2 callersFunctionrun
Run subprocess and return its output.
scripts/print_exported_headers.py:23
↓ 2 callersMethodrun
Child classes should implement their graph modification here.
backends/nxp/edge_passes/neutron_edge_pass.py:46
↓ 2 callersMethodrun
Calls each stage in order.
backends/arm/test/tester/test_pipeline.py:384
↓ 2 callersMethodrun
(self, prompt)
examples/qualcomm/oss_scripts/llama/decoder_runtime_evaluator.py:426
↓ 2 callersMethodrun
Convert to ExecutorchProgramManager.
export/stages.py:291
↓ 2 callersMethodrun
Apply source transformations to the model.
export/stages.py:329
↓ 2 callersMethodrun
Apply partitioning to EdgeProgramManager. Args: artifact: Contains edge program manager and context
export/stages.py:654
↓ 2 callersMethodrun_and_compare_partitioners
Run both partitioners and compare their results. Args: group_partitioner: The GroupBasedPartitioner instance
exir/backend/test/test_group_partitioner.py:432
↓ 2 callersMethodrun_and_compare_to_initial_model
( self, frobenius_threshold: float | None = 0.01, cosine_threshold: float | None = 0.9
backends/arm/test/tester/test_pipeline.py:357
↓ 2 callersMethodrun_artifact
(self, inputs)
backends/arm/test/tester/arm_tester.py:233
↓ 2 callersMethodrun_canonical_optimizations
Run canonical optimizations (at the moment removing redundant permutes) on the model.
extension/llm/export/builder.py:248
↓ 2 callersMethodrun_exp_test
(self, inputs)
backends/xnnpack/test/ops/test_exp.py:41
↓ 2 callersMethodrun_log_test
(self, inputs)
backends/xnnpack/test/ops/test_log.py:26
↓ 2 callersMethodrun_multimethod
Resolve any memory planning done across entry points, called after run is called on all entry points.
exir/passes/memory_planning_pass.py:294
↓ 2 callersFunctionrun_once
( model_path: Path, metadata: dict, runner_path: Path, input_image: Path, output_image: Pa
examples/arm/super_resolution_example_vgf/runtime/run_super_resolution.py:220
↓ 2 callersMethodrun_tanh_test
(self, inputs)
backends/xnnpack/test/ops/test_tanh.py:24
↓ 2 callersFunctionrun_with_pybindings
(executorch_program, eager_reference, example_inputs, precision)
examples/apple/coreml/scripts/export.py:169
↓ 2 callersFunctionrunner_main
()
backends/test/suite/runner.py:327
↓ 2 callersFunctionsample
Draw a single token per batch row using the Gumbel-max trick. Args: logits: ``[B, V]`` float32 logits (already soft-capped if applicable)
examples/models/gemma4_31b/sampler.py:17
↓ 2 callersMethodsample_inputs
(self)
backends/xnnpack/test/ops/test_static_constant_pad.py:40
↓ 2 callersMethodsave_analysis_summary
Writes per-group SQNR statistics to ``{model_name}_quantization_error.csv``.
examples/qualcomm/oss_scripts/llama/mix_precision_analyzer.py:303
↓ 2 callersFunctionsave_bundled_program
( representative_inputs, executorch_program, ref_output, output_path )
backends/xnnpack/test/test_xnnpack_utils.py:98
↓ 2 callersMethodsave_data_to_tsv
Stores the underlying EventBlocks in tsv format to facilitate copy-paste into spreadsheets. Args: file: Which IO stream
devtools/inspector/_inspector.py:1481
↓ 2 callersFunctionsave_inputs_to_file
( exported_program: ExportedProgram, inputs: Tuple[torch.Tensor], intermediate_path: str | Path, )
backends/arm/test/runner_utils.py:306
↓ 2 callersMethodsave_model_metadata
( model_metadata: Union[ModelMetadata, MultifunctionModelMetadata], model_dir_path: Path,
backends/apple/coreml/compiler/coreml_preprocess.py:494
↓ 2 callersFunctionsave_quantized_model
Save a quantized model to safetensors with subclass reconstruction metadata. Iterates named_parameters and named_buffers directly (no state_dict
examples/models/qwen3_5_moe/quantize_and_save.py:63
↓ 2 callersFunctionsave_suggest_recipes
Generates and saves a Python script containing quantization recipe classes based on the suggested QuantRecipe objects from ``SqnrReport.sugge
examples/qualcomm/oss_scripts/llama/mix_precision_analyzer.py:481
↓ 2 callersFunctionsave_tensors_to_bin
Save a list of tensors to a binary file. Binary format: - 4 bytes: number of tensors (uint32) For each tensor: - 4 bytes: dtyp
backends/mlx/test/test_utils.py:158
↓ 2 callersFunctionscaled_tanh
(hidden_states, scale)
examples/mediatek/models/llm_models/modeling_gemma.py:28
↓ 2 callersFunctionsdpa
Same as F.scaled_dot_product_attention, but with custom op to avoid lowering during dialect conversion.
examples/models/llama/source_transformation/sdpa.py:359
↓ 2 callersFunctionselect_not
Match if `selector` does NOT match.
devtools/intermediate_output_tap/_selectors.py:229
↓ 2 callersMethodsemantic_logits
Raw masked logits for semantic code prediction.
examples/models/voxtral_tts/model.py:763
↓ 2 callersMethodserialize
Serializes a list of bytes emitted by ExecuTorch into a binary blob. Args: data: buffers and corresponding metadata used
exir/_serialize/data_serializer.py:51
↓ 2 callersMethodserialize
Args: exported_program: Exported Program to serialize
exir/serde/serialize.py:312
↓ 2 callersMethodserialize
(self)
backends/arm/debug/schema.py:144
↓ 2 callersMethodserialize
Return a serialized representation of this config.
backends/arm/common/pipeline_config.py:38
↓ 2 callersMethodserialize_arbitrary_outputs
(self, node: torch.fx.Node)
exir/serde/serialize.py:194
↓ 2 callersMethodserialize_graph
(self, graph_module: torch.fx.GraphModule)
exir/serde/export_serialize.py:1336
↓ 2 callersMethodserialize_hoo_inputs
For serializing HOO inputs since HOOs do not have a schema.
exir/serde/export_serialize.py:667
↓ 2 callersMethodserialize_hoo_outputs
For serializing HOO outputs since HOOs do not have a schema.
exir/serde/export_serialize.py:1226
← previousnext →3,701–3,800 of 28,493, ranked by callers