MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 2 callersFunctioncollect_specs_from_graph_module
Return the specs for all the nodes in the graph module in topological order.
backends/cadence/aot/memory_planning.py:38
↓ 2 callersFunctioncompile
(args)
examples/qualcomm/util_scripts/cli.py:206
↓ 2 callersFunctioncompile
(args: argparse.Namespace, qnn_config: QnnConfig)
examples/qualcomm/oss_scripts/qwen2_5/qwen2_5.py:40
↓ 2 callersMethodcompile
(self, attention_sink_evictor_pte_path: str)
examples/qualcomm/oss_scripts/llama/wrappers/attention_sink_wrappers.py:428
↓ 2 callersFunctioncompile_attention_sink_evictor
( args, decoder_model_config: LLMModelConfig, text_decoder_pte_path: str, attention_sink_evict
examples/qualcomm/oss_scripts/llama/llama.py:72
↓ 2 callersFunctioncompile_mimi_encoder
( args, qnn_config, orig_mimi, encoder_inputs, encoder_pte_filename, )
examples/qualcomm/oss_scripts/moshi/mimi.py:154
↓ 2 callersFunctioncompile_static_mimi_decoder
( args, qnn_config, static_mimi_decoder, encoded_results, static_decoder_pte_filename, )
examples/qualcomm/oss_scripts/moshi/mimi.py:265
↓ 2 callersFunctioncompile_whisper
(args: argparse.Namespace, qnn_config: QnnConfig, inputs)
examples/qualcomm/oss_scripts/whisper/whisper.py:368
↓ 2 callersMethodcompress_model
Apply weights-only compression for non-UNet components.
examples/openvino/stable_diffusion/export_lcm.py:185
↓ 2 callersFunctioncompute_avg_pool2d_output_shape
Compute the output shape for NHWC avg-pool.
backends/arm/tosa/dialect/ops/avg_pool2d.py:132
↓ 2 callersMethodconstant_segment_with_tensor_alignment
Utility to test constant segment with varying alignment. Args: constant_tensor_alignment: Alignment of constant tensor data.
exir/_serialize/test/test_program.py:156
↓ 2 callersMethodcontains
(self, x)
exir/backend/canonical_partitioners/config_partitioner.py:128
↓ 2 callersMethodconvert_executorch_format_to_neutron
( executorch_format: "DataFormat", )
backends/nxp/backend/data_format.py:42
↓ 2 callersMethodconvert_for_runtime
(self)
examples/models/llama/source_transformation/quantize.py:407
↓ 2 callersFunctionconvert_pt2
Convert the model Returns a GraphModule with the converted model.
backends/cadence/aot/compiler.py:129
↓ 2 callersFunctionconvert_to_flatbuffer
(vk_graph: VkGraph)
backends/vulkan/serialization/vulkan_graph_serialize.py:30
↓ 2 callersMethodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_whisper.py:848
↓ 2 callersMethodconvert_tokens_to_string
Conver tokens to string.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils.py:1013
↓ 2 callersFunctionconvert_weights
(input_dir: str, output_file: str)
examples/models/lfm2/convert_weights.py:68
↓ 2 callersFunctioncopy_idma_copy_impl
( src: torch.Tensor, task_num: int = 0, channel: int = 0, )
backends/cadence/aot/ops_registrations.py:3146
↓ 2 callersFunctioncount_images_per_class
Count the number of images per class in a DataLoader. This function iterates through a DataLoader and counts how many images belong to e
extension/training/examples/CIFAR/data_utils.py:255
↓ 2 callersMethodcount_node
(self, graph_module: torch.fx.GraphModule, opname: str)
exir/emit/test/test_emit.py:128
↓ 2 callersFunctioncreate_balanced_cifar_dataset
Reads CIFAR-10 data from data_batch_1 file and creates a balanced dataset with specified number of images per class, saved in binary format
extension/training/examples/CIFAR/data_utils.py:82
↓ 2 callersFunctioncreate_balanced_model
Create a balanced MLP model for MNIST digit classification. The model is pre-initialized with specific weights to recognize digits 0, 1,
examples/raspberry_pi/pico2/export_mlp_mnist.py:43
↓ 2 callersMethodcreate_both_partitioners
( self, exported_program, op_support, allows_single_node_partition=True,
exir/backend/test/test_group_partitioner.py:402
↓ 2 callersFunctioncreate_causal_attn_mask
Creating a causal attention mask (ar_len: 5, max_context_len: 15) 0 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ● ○ ○ ○ ○ 1 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ● ● ○ ○ ○
examples/qualcomm/oss_scripts/llama/masking_utils.py:13
↓ 2 callersMethodcreate_causal_mask
Create sliding window attention mask for ring buffer. Args: start_pos: Starting position (scalar tensor or int). seq_
examples/models/voxtral_realtime/model.py:1024
↓ 2 callersMethodcreate_causal_mask
Create sliding window attention mask for ring buffer. Args: start_pos: Tensor containing the starting position (scalar tensor)
examples/models/voxtral_realtime/model.py:1098
↓ 2 callersMethodcreate_causal_mask_for_ring_buffer
(self, start_pos, seq_len)
examples/models/llama/source_transformation/custom_kv_cache.py:602
↓ 2 callersFunctioncreate_debug_handle_to_op_node_mapping
Recursive function to traverse all the operator graph nodes of input op_graph and build a mapping from each debug handle to the operator node
devtools/inspector/_inspector_utils.py:329
↓ 2 callersMethodcreate_empty_tensor
( self, name: str, tensor_type: TensorType, shape: Optional[List[int]] = None )
backends/nxp/backend/ir/converter/builder/model_builder.py:624
↓ 2 callersMethodcreate_inputs
Create inputs for export (tracing).
backends/mlx/test/test_utils.py:859
↓ 2 callersFunctioncreate_inspector
( edge_program: EdgeProgramManager, executorch_program: ExecutorchProgramManager, example_inputs:
examples/apple/coreml/scripts/inspector_utils.py:194
↓ 2 callersMethodcreate_model
(self)
backends/openvino/tests/ops/test_add.py:9
↓ 2 callersFunctioncreate_mutable_buffer
Creates and returns a mutable buffer placeholder node. This is similar to create_constant_placeholder but specifically for creating mutable b
backends/transforms/utils.py:272
↓ 2 callersFunctioncreate_pattern_match_from_internal_match
( internal_match: InternalMatch, )
backends/vulkan/patterns/pattern_registry.py:42
↓ 2 callersFunctioncreate_program
Returns an executorch program based on ModuleAdd, along with inputs.
codegen/tools/test/test_tools_selective_build.py:52
↓ 2 callersMethodcreate_quantized_conv1d_graph_module
Helper to create a quantized conv1d node. quantized_conv1d_ncl/nlc.per_tensor( Tensor input, Tensor weight, Tensor bias, int[] st
backends/cadence/aot/tests/test_replace_ops_passes.py:2216
↓ 2 callersMethodcreate_quantized_convolution_graph_module
Helper to create a quantized conv node. quantized_conv_per_tensor( Tensor input, Tensor weight, Tensor bias, int[] stride, SymInt
backends/cadence/aot/tests/test_replace_ops_passes.py:2158
↓ 2 callersMethodcreate_shader_params
( self, variant_params: Optional[Dict[str, Any]] = None )
backends/vulkan/runtime/gen_vulkan_spv.py:861
↓ 2 callersFunctioncreate_sliding_window_attn_mask
Creating a sliding_window attention mask (ar_len: 5, max_context_len: 15, sliding_window: 3) 0 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ● ○ ○ ○ ○ 1 ○
examples/qualcomm/oss_scripts/llama/masking_utils.py:40
↓ 2 callersMethodcreate_tensor_value
(self, spec: TensorSpec, constant_id: int = -1)
backends/vulkan/serialization/vulkan_graph_builder.py:241
↓ 2 callersMethodcreate_transposed_tensor
Create a transposed version of given static TFLite tensor using numpy.transpose(). :param tflite_tensor: Static TFLite tensor to create the t
backends/nxp/backend/ir/converter/builder/model_builder.py:283
↓ 2 callersMethodcreate_value_decl_for
(self, ref: ValueRefList)
backends/vulkan/test/op_tests/utils/gen_computegraph.py:309
↓ 2 callersMethodcreate_value_for
( # noqa: C901 self, ref: ValueRefList, include_declarations: bool = True )
backends/vulkan/test/op_tests/utils/gen_computegraph.py:328
↓ 2 callersFunctioncreate_zero_bias_int32
Creates a zero bias tensor with the shape of weight[0]
backends/cadence/aot/quantizer/utils.py:115
↓ 2 callersMethodcreate_zeros_tensor
Create and return a Tensor with given shape, name and dtype that only contains zeros. If 'can_reuse' is True, created tensor can be shared wit
backends/nxp/backend/ir/converter/builder/model_builder.py:109
↓ 2 callersMethodcustom_cumsum
Custom cumulative sum.
examples/models/efficient_sam/efficient_sam_core/efficient_sam_decoder.py:129
↓ 2 callersMethoddata_matches_node_meta
Verify that the provided `data` tensor has the same shape and datatype as the `node`.
backends/nxp/aten_passes/remove_nodes_with_known_outputs.py:125
↓ 2 callersFunctiondebug_tosa_dump
(tosa_graph: bytes, path: str, suffix: str = "")
backends/arm/common/debug.py:55
↓ 2 callersMethoddecide_upper_bound_from_symbols
(self, meta)
exir/passes/dynamic_shape_prop_pass.py:241
↓ 2 callersMethoddecode
(self, ids)
examples/models/gemma4_31b/tests/test_pipeline.py:96
↓ 2 callersMethoddecode
( self, model: Callable[..., Any], init_token: int, n: int, stop_token
examples/models/llama/static_attention.py:458
↓ 2 callersFunctiondecode_one_token
( model: torch.nn.Module, x: torch.Tensor, **sampling_kwargs )
examples/models/llama/experimental/generate.py:49
↓ 2 callersMethoddefine_node
( self, node: torch.fx.Node, xnn_graph: XNNGraph, vals_to_ids: Dict[torch.fx.N
backends/xnnpack/operators/op_quant_dequant.py:52
↓ 2 callersMethoddefn
(self, name: str | None = None)
codegen/api/types/signatures.py:58
↓ 2 callersFunctiondemangle_symbols
Demangle a collection of symbols using the cxxfilt tool.
scripts/check_binary_dependencies.py:157
↓ 2 callersFunctiondequant_w4_to_bf16
Dequantize packed INT4 weights to BF16. Args: w_packed: [N, K//2] int8 — two INT4 values packed per byte w_scale: [N, K//group_s
backends/cuda/triton/kernels/int4_matmul.py:481
↓ 2 callersMethoddequantize
(self)
examples/models/llama/experimental/subclass.py:178
↓ 2 callersFunctiondequantize_per_tensor
()
backends/cadence/aot/ref_implementations.py:249
↓ 2 callersMethoddeserialize
( self, serialized_graph_module: GraphModule, serialized_state_dict: Union[Dict[str, t
exir/serde/export_serialize.py:1833
↓ 2 callersMethoddeserialize
( self, exported_program: export_serialize.ExportedProgram, state_dict: Union[Dict[str
exir/serde/serialize.py:626
↓ 2 callersMethoddeserialize
Deserializes a flat_tensor blob into a list of tensor metadata and tensors. Note: deserialization does not preserve alignment inform
extension/flat_tensor/serialize/serialize.py:384
↓ 2 callersFunctiondeserialize_device
(d: Device)
exir/serde/export_serialize.py:234
↓ 2 callersFunctiondeserialize_from_flatbuffer_to_bundled_program
Deserialize a FlatBuffer binary format into a BundledProgram. Args: flatbuffer (bytes): The FlatBuffer binary data in bytes. Re
devtools/bundled_program/serialize/__init__.py:110
↓ 2 callersMethoddeserialize_graph
(self, serialized_graph: Graph)
exir/serde/export_serialize.py:1603
↓ 2 callersMethoddeserialize_inputs
(self, target: torch._ops.OpOverload, serialized_node: Node)
exir/serde/export_serialize.py:1911
↓ 2 callersMethoddeserialize_multiple_outputs
( self, serialized_node: Node, fx_node: torch.fx.Node )
exir/serde/export_serialize.py:2067
↓ 2 callersMethoddeserialize_outputs
(self, serialized_node: Node, fx_node: torch.fx.Node)
exir/serde/export_serialize.py:2049
↓ 2 callersMethoddeserialize_range_constraints
( self, symbol_name_to_range: Dict[str, symbolic_shapes.ValueRanges], symbol_name_to_s
exir/serde/export_serialize.py:2246
↓ 2 callersMethoddeserialize_tensor_meta
( self, tensor_meta: TensorMeta, )
exir/serde/export_serialize.py:1566
↓ 2 callersFunctiondetermine_tensor_dynanism
(shape: torch.Size)
exir/tensor.py:133
↓ 2 callersFunctiondetermine_torch_url
Determine the appropriate PyTorch installation URL based on CUDA availability. Uses @functools.lru_cache to avoid redundant CUDA detection an
install_utils.py:158
↓ 2 callersFunctiondim_check
Check if non-batch dims are within U55 constraints. Verifies that all dimensions except batch are in ``[1, 65536]``. Args: shape (to
backends/arm/operator_support/pool_2d_support.py:59
↓ 2 callersFunctiondims_to_channels_first
Convert a list of ints which represent dimensions in the channels last (NeutronIR) format to the channels first (ExecuTorch) format.
backends/nxp/backend/ir/converter/conversion/translator.py:88
↓ 2 callersFunctiondims_to_channels_last
Convert a list of ints which represent dimensions in the channels first (ExecuTorch) format to the channels last (NeutronIR) format.
backends/nxp/backend/ir/converter/conversion/translator.py:104
↓ 2 callersFunctiondiscover_and_import_tests
Import test_ops.py module which contains all test definitions. This triggers registration of all tests.
backends/mlx/test/run_all_tests.py:52
↓ 2 callersMethoddst_path
Returns the path to the destination file. Args: installer: The InstallerBuildExt instance that is installing the
setup.py:347
↓ 2 callersFunctiondump_delegation_info
(edge, intermediate_files_folder: Optional[str] = None)
backends/arm/scripts/aot_arm_compiler.py:521
↓ 2 callersFunctiondynamically_quantize_per_channel
Dynamically quantize per channel. This function is used for quantizing weights, for linear and embedding layers. Arguments: x:
examples/models/llama/source_transformation/quantize.py:199
↓ 2 callersFunctione
Print and raise exception with error message composed of provided error code, messages and optional exception. :param err_code: Error code. :p
backends/nxp/backend/ir/logger.py:302
↓ 2 callersMethodedge_manager_update_quant_config_method
(self, idx, quant_args)
exir/passes/quantize_io_pass.py:226
↓ 2 callersMethodedge_manager_update_quant_config_method
(self, idx, dequant_args)
exir/passes/quantize_io_pass.py:284
↓ 2 callersFunctionedge_to_executorch_passes
Returns a list of passes to lower from edge to executorch. Get the pre memory planning passes based on the method name, if the pass is not in
exir/program/_program.py:839
↓ 2 callersMethodelement_compare
Compare two tensors and return a scalar distance. This method should be overridden by subclasses to provide custom element-wise compa
devtools/inspector/numerical_comparator/numerical_comparator_base.py:96
↓ 2 callersFunctioneliminate_dq_q
( graph_module: GraphModule, dequant_nodes: List[torch.fx.Node], )
exir/passes/remove_noop_pass.py:30
↓ 2 callersFunctionemit_partition_and_slice
Emit partition/argpartition → slice last k elements.
backends/mlx/ops.py:4059
↓ 2 callersFunctionemit_reverse
Reverse a tensor along dim using slice with step=-1.
backends/mlx/ops.py:4083
↓ 2 callersFunctionemit_stop_position
Emit nodes to compute stop = start + length for slice operations. May emit SymSizeNode and/or AddIntNode depending on whether start and
backends/mlx/builder/op_helpers.py:69
↓ 2 callersFunctionenable_attention_sink
Transform the model to be able to run inference with Attention Sink. There mainly two steps: - Replace Rope with RopeWithAttentionSink
examples/models/llama/source_transformation/attention_sink.py:354
↓ 2 callersMethodencode
(self, text, bos, eos)
examples/apple/coreml/llama/run_lookahead.py:36
↓ 2 callersFunctionescape_for_markdown
Modify a string to properly display in a markdown table cell.
backends/test/suite/generate_markdown_summary_json.py:99
↓ 2 callersFunctionescape_for_markdown
Modify a string to properly display in a markdown table cell.
backends/test/suite/generate_markdown_summary.py:124
↓ 2 callersFunctioneval_model
( model: ExecuTorchModule, dataloader: DataLoader, loss_fn: torch.nn.modules.loss._Loss, max_s
examples/llm_pte_finetuning/training_lib.py:94
↓ 2 callersFunctionevaluate
(model, inputs, gts)
backends/nxp/tests/generic_tests/test_quantizer.py:598
↓ 2 callersMethodevaluate
(self)
backends/arm/util/arm_model_evaluator.py:29
↓ 2 callersFunctionevaluate_model
(model, inputs, expected_outputs)
backends/arm/test/misc/test_qat_training_loop.py:40
↓ 2 callersMethodevict_tokens
For ring buffer implementation, no explicit eviction is needed. The ring buffer automatically overwrites old values. Returns
examples/models/llama/source_transformation/attention_sink.py:290
↓ 2 callersMethodexample_inputs
(self)
backends/arm/test/quantizer/test_partial_quantization.py:117
↓ 2 callersFunctionexecute
Either a local execution (through subprocess.run) or a remote execution (in Hargow). Run the command described by args (the same way subproce
backends/cadence/runtime/executor.py:83
← previousnext →3,201–3,300 of 28,493, ranked by callers