MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 4 callersFunctionmain
()
extension/llm/export/export_llm.py:91
↓ 4 callersFunctionmake_alloc_node
Note: tensor_metadata is only used in the case of a Tensor subclass, since fakifying a tensor subclass is not supported right now
exir/passes/__init__.py:269
↓ 4 callersFunctionmake_indent
(indent_level)
backends/vulkan/test/utils.py:1091
↓ 4 callersFunctionmake_list
(item_or_list)
backends/cortex_m/quantizer/node_finders.py:14
↓ 4 callersFunctionmake_model_and_inputs
()
backends/arm/test/models/test_swin2sr_arm.py:53
↓ 4 callersMethodmake_or_get_slot
Get or create a slot for a single-output node. Returns a single Slot.
backends/mlx/builder/program_builder.py:230
↓ 4 callersMethodmake_or_get_slots
Get or create slots for a multi-output node. Always returns a tuple.
backends/mlx/builder/program_builder.py:224
↓ 4 callersMethodmap_inputs_to_parameters
Create mapping between program parameters (input nodes & static data nodes) and their names. :param edge_program: EdgeProgram instan
backends/nxp/backend/edge_program_converter.py:182
↓ 4 callersMethodmark_as_nchw_node
(node: torch.fx.Node)
backends/xnnpack/_passes/channels_last_tagged_reshape_pass.py:99
↓ 4 callersFunctionmark_node_as_annotated
Mark a node as annotated. Create an empty ``QuantizationAnnotation`` on the node when missing and set its ``_annotated`` flag to True. A
backends/arm/quantizer/arm_quantizer_utils.py:78
↓ 4 callersFunctionmaybe_get_tosa_collate_path
Checks the environment variable TOSA_TESTCASES_BASE_PATH and returns the path to the where to store the current tests if it is set.
backends/arm/test/common.py:46
↓ 4 callersFunctionmerge_runtime_overlapping_debug_handles
Merges runtimes with overlapping debug handles into a single key in the dict. For each debug handle, this function checks for overlaps with
devtools/inspector/_inspector_utils.py:583
↓ 4 callersMethodmetric_name
(self)
backends/qualcomm/debugger/qcom_numerical_comparator_sample.py:28
↓ 4 callersFunctionmodule_factory
(function: Callable)
backends/arm/test/models/test_torch_functions.py:39
↓ 4 callersFunctionnew_chunk
()
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_whisper.py:1015
↓ 4 callersFunctionoption_to_flatbuffer
(qnn_executorch_options: QnnExecuTorchOptions)
backends/qualcomm/serialization/qc_schema_serialize.py:54
↓ 4 callersMethodoutputs_as_list
Return the `outputs` attribute. If it's `None`, return `[]`.
backends/nxp/backend/ir/neutron_ir_post_processing/pattern_matcher.py:68
↓ 4 callersMethodpatch_files
Uses the provided patching function to update the contents of all files. `patch_fn` takes the current contents of a file as input and
exir/_serialize/_flatbuffer.py:133
↓ 4 callersFunctionpatch_forward
Helper method to make it easier to cleanly torch.export() a method on a module that is not `forward`. TODO(suo): upstream this to torch.expor
exir/emit/test/test_emit.py:80
↓ 4 callersMethodpick_representations
For each tensor participating in the op, pick a representation for it among the possible represetntation sets.
backends/vulkan/utils.py:1606
↓ 4 callersFunctionprecompute_freqs_cis
( head_dim: int, max_len: int, theta: float )
examples/models/voxtral_realtime/model.py:103
↓ 4 callersMethodprepare_model_and_inputs
(self, prompt)
backends/arm/test/models/test_T5ForConditionalGeneration_arm.py:64
↓ 4 callersMethodprepare_model_and_inputs
(cls)
backends/arm/test/models/Gemma3n/test_gemma3nModel.py:151
↓ 4 callersMethodprepare_model_and_inputs
(self)
backends/arm/test/models/stable_diffusion/test_vae_AutoencoderKL.py:41
↓ 4 callersMethodprepare_model_and_inputs
(self)
backends/arm/test/models/stable_diffusion/test_T5EncoderModel.py:70
↓ 4 callersMethodprepare_model_and_inputs
(self)
backends/arm/test/models/stable_diffusion/test_SD3Transformer2DModel.py:95
↓ 4 callersMethodprepare_model_and_inputs
(self)
backends/arm/test/models/stable_diffusion/test_CLIPTextModelWithProjection.py:68
↓ 4 callersMethodpreprocess
Normalize pixel values and pad to a square input.
examples/models/efficient_sam/efficient_sam_core/efficient_sam.py:226
↓ 4 callersFunctionpretty_print
Pretty prints the given object which is of the Program type and any of its attribute’s types.
exir/print_program.py:250
↓ 4 callersFunctionprint_ansi
Print an ANSI escape code.
scripts/file_size_compare.py:60
↓ 4 callersFunctionprint_program
Dump the instruction list of a program in a more human readable fashion. The dump follows the following BNF syntax (I combime some regex syn
exir/print_program.py:149
↓ 4 callersFunctionprint_tensor_comparison_errors
Print the first max_errors tensor indexes that exceed the absolute/relative tolerance and the error at each of those locations. Args:
backends/vulkan/test/utils.py:417
↓ 4 callersFunctionprofile_aggregate_framework_tax
( prof_data: Dict[str, List[ProfileEvent]] )
profiler/parse_profiler_results.py:373
↓ 4 callersMethodprogram
(self)
exir/program/_program.py:658
↓ 4 callersFunctionquantize_and_lower_module
( model: torch.nn.Module, sample_inputs: Tuple[torch.Tensor], quantizer: Quantizer, dynamic_sh
backends/vulkan/test/test_vulkan_passes.py:42
↓ 4 callersFunctionquantize_tensor_multiplier
Given requantize_scale_tensor with values in the interval (0, 1), produce a pair of tensors (out_multiplier, right_shift) where out_multiplie
backends/cadence/aot/quantizer/utils.py:33
↓ 4 callersFunctionquantized_add_per_tensor
Sums up two quantized tensors and returns another quantized tensor. The intuition is that we want dequant(out) ~= dequant(X) + dequant(Y)
backends/cadence/aot/ref_implementations.py:278
↓ 4 callersMethodquantized_model
(self)
examples/models/llama/source_transformation/quantize.py:307
↓ 4 callersMethodregister
A decorator used on top of passes to insert a pass into the registry. If pass_name is not specified, then it will be generated based
exir/passes/pass_registry.py:31
↓ 4 callersFunctionregister_additional_test_aten_ops
()
exir/tests/common.py:86
↓ 4 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/llama/model/static_llama.py:34
↓ 4 callersFunctionreplace_kv_cache_with_custom_kv_cache
Replace KVCache with CustomKVCache. This modifies the model in place. At the moment custom kv cache only supports cache with shape [B, S,
examples/models/llama/source_transformation/custom_kv_cache.py:359
↓ 4 callersFunctionreplace_kv_cache_with_ring_kv_cache
(module, layer_sizes)
examples/models/llama/source_transformation/custom_kv_cache.py:674
↓ 4 callersFunctionreplace_module_with_custom_class
Recursively replaces all instances of `target_class` in `model` with `custom_class`. Args: model (torch.nn.Module): The root module
examples/qualcomm/utils.py:23
↓ 4 callersFunctionreshape_for_broadcast
Reshape a [C] tensor for broadcasting with input.
backends/mlx/ops.py:2997
↓ 4 callersFunctionreshape_for_broadcast
(freqs_cis: torch.Tensor, x: torch.Tensor)
examples/models/llama/rope.py:65
↓ 4 callersMethodreturns_type
(self)
codegen/api/types/signatures.py:65
↓ 4 callersFunctionrun
(dir: str)
backends/arm/arm_vela.py:77
↓ 4 callersMethodrun
Runs buck2 with the given args and returns its stdout as a sequence of lines.
tools/cmake/buck_util.py:31
↓ 4 callersMethodrun
(self, artifact: PipelineArtifact)
export/stages.py:133
↓ 4 callersMethodrun_delegated_model_and_check_output
( self, et_program: ExecutorchProgramManager, model: torch.nn.Module, sample_i
backends/vulkan/test/test_vulkan_delegate.py:184
↓ 4 callersMethodrun_method_and_compare_outputs
Compares the run_artifact output of 'stage' with the output of a reference stage. If the model is quantized, the reference stage is the
backends/arm/test/tester/arm_tester.py:559
↓ 4 callersMethodrun_preprocess
( self, image_size: Tuple[int], expected_shape: torch.Size, resize_to_max_canv
examples/models/llama3_2_vision/preprocess/test_preprocess.py:191
↓ 4 callersMethodrun_test
Run the full test: generate files, run C++, compare outputs. Args: verbose: Whether to print verbose output.
backends/mlx/test/test_utils.py:978
↓ 4 callersMethodrun_tester
(self, module, inputs)
backends/xnnpack/test/ops/test_to_copy.py:18
↓ 4 callersMethodrun_upsample_test
( self, inp: torch.Tensor, output_size: Optional[Sequence[int]] = None, scale_
kernels/portable/test/op_upsample_nearest2d_test.py:18
↓ 4 callersMethodrun_upsample_test
( self, inp: torch.Tensor, output_size: Optional[Sequence[int]] = None, align_
kernels/portable/test/op_upsample_bilinear2d_test.py:18
↓ 4 callersFunctionsave_pte_program
( prog: ExecutorchProgramManager, model_name: str, output_dir: str = "" )
backends/nxp/tests/utils.py:17
↓ 4 callersMethodsave_to_pte
Save the model to a .pte file. Args: output_name (Optional[str]): The name of the .pte file.
export/export.py:579
↓ 4 callersMethodserialize
(self)
exir/backend/test/backend_with_delegate_mapping_demo.py:32
↓ 4 callersMethodserialize_argument_spec
(self, x: ep.ArgumentSpec)
exir/serde/export_serialize.py:1074
↓ 4 callersMethodset_module_name
Set quantization_config for submodules with a given module name. For example, calling set_module_name("blocks.sub") quantizes supported
backends/arm/quantizer/arm_quantizer.py:615
↓ 4 callersMethodset_module_name
Set quantization_config for a submodule with name: `module_name`, for example: quantizer.set_module_name("blocks.sub"), it will quantize all s
backends/xnnpack/quantizer/xnnpack_quantizer.py:358
↓ 4 callersMethodset_module_type
Set quantization_config for a submodule with type: `module_type`, for example: quantizer.set_module_name(Sub) or quantizer.set_module_name(nn.
backends/xnnpack/quantizer/xnnpack_quantizer.py:348
↓ 4 callersMethodset_pass_pipeline_config
Sets the configuration that controls how the Arm pass pipeline should behave. Subclasses may override to tweak defaults for specific targets.
backends/arm/common/arm_compile_spec.py:279
↓ 4 callersFunctionskip_annotation
r""" Exclude speific operators from quantizer annotation. Skipped operators will defaultly stay in CPU, set 'fallback_to_cpu' to False for
backends/qualcomm/utils/utils.py:604
↓ 4 callersFunctionsmart_mask_updater
( n_updates: int, atten_mask: AttentionMask, pos, k_caches, v_caches, new_k_caches,
examples/qualcomm/oss_scripts/llama/decoder_utils.py:340
↓ 4 callersMethodsplit_graph
(self, division: int)
backends/qualcomm/tests/utils.py:864
↓ 4 callersMethodstorage_overlap
(cls, lhs_spec: TensorSpec, rhs_spec: TensorSpec)
exir/memory_planning.py:121
↓ 4 callersMethodsupports_prepack
(self)
backends/vulkan/test/op_tests/utils/test_suite.py:35
↓ 4 callersMethodswap_tensor_names
Correctly swap the names of the 2 provided tensors.
backends/nxp/backend/ir/converter/builder/model_builder.py:344
↓ 4 callersFunctiontexel_type
(dtype: str)
backends/vulkan/runtime/gen_vulkan_spv.py:209
↓ 4 callersMethodtext_completion
Perform text completion for a prompt using the language model. Args: prompt (str): Text prompt for completion.
examples/models/llama/runner/generation.py:153
↓ 4 callersFunctiontf_lite_type_to_numpy
Convert NeutronIR TensorType to numpy dtype
backends/nxp/backend/ir/converter/conversion/translator.py:637
↓ 4 callersMethodto_bytes
Returns the binary representation of the extended header. Note that this will ignore self.magic and self.length and will always write
exir/_serialize/_program.py:239
↓ 4 callersMethodto_ch_axis
(self, x)
backends/qualcomm/quantizer/observers/per_channel_param_observer.py:56
↓ 4 callersMethodto_dataframe
Convert the Event into a pandas DataFrame Args: None Returns: A pandas DataFrame with the Event dat
devtools/inspector/_inspector.py:384
↓ 4 callersMethodto_dataframe
Args: include_units: Whether headers should include units (default true) include_delegate_debug_data: Whether to incl
devtools/inspector/_inspector.py:1413
↓ 4 callersMethodto_dict
(self)
backends/arm/debug/schema.py:105
↓ 4 callersFunctionto_int_tuple
Best-effort conversion of a sequence of integers/SymInts to a tuple[int, ...].
backends/arm/common/as_strided_utils.py:47
↓ 4 callersFunctionto_mlx_qparams
Convert TorchAO quantization params to MLX format. TorchAO uses: s * (q - z), with q signed MLX uses: S * Q + B, with Q unsigned s
backends/mlx/builder/op_helpers.py:220
↓ 4 callersFunctionto_quantized_executorch_program
( model: torch.nn.Module, input_spec: Iterable[ModelInputSpec] | tuple[int, ...] | list[tuple[int, ...
backends/nxp/tests/executorch_pipeline.py:270
↓ 4 callersMethodtokenize
Converts a string into a sequence of tokens, using the tokenizer. Split in words for word-based vocabulary or sub-words for sub-word-based vo
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils.py:527
↓ 4 callersFunctiontransform
(batch)
examples/arm/image_classification_example_vgf/model_export/train_deit.py:20
↓ 4 callersMethodtransform_for_annotation_pipeline
(self, graph_module: GraphModule)
backends/arm/_passes/arm_pass_manager.py:581
↓ 4 callersMethodtransform_for_export_pipeline
( self, exported_program: ExportedProgram, convert_linear_to_conv2d: bool = False )
backends/qualcomm/_passes/qnn_pass_manager.py:261
↓ 4 callersMethodtry_constrain_with_out_repset
Attempt to constrain the output repsets of the tensors participating in this operator based the repset required by a downstream opera
backends/vulkan/utils.py:1563
↓ 4 callersMethodunmask
(self, new_unmasked_len)
examples/models/llama/static_attention.py:200
↓ 4 callersFunctionunwrap_functional
(t: torch.Tensor)
exir/tracer.py:175
↓ 4 callersMethodupdate
( self, new_data: torch.Tensor, in_cache_state: Optional[_InputCacheState], ou
examples/models/llama/static_attention.py:135
↓ 4 callersMethodupdate
( self, input_pos: torch.Tensor, k_val: torch.Tensor, v_val: torch.Tensor )
examples/models/voxtral_realtime/model.py:326
↓ 4 callersMethodupdate
(self, input_pos, k_val, v_val)
examples/models/qwen3_5_moe/model.py:197
↓ 4 callersMethodupdate_reference_outputs
Update the reference outputs in the ETRecord. This method allows users to customize the reference outputs that will be inclu
devtools/etrecord/_etrecord.py:492
↓ 4 callersFunctionvalidate_avg_pool2d_dtype
Validate dtypes for TOSA AVG_POOL2D and AVG_POOL2D_ADAPTIVE.
backends/arm/tosa/dialect/ops/avg_pool2d.py:55
↓ 4 callersFunctionvalidate_conv2d_args_dtypes
( tosa_spec: TosaSpecification, x: torch.Tensor, weight: torch.Tensor, bias: Optional[torch.Te
backends/arm/tosa/dialect/ops/conv2d.py:18
↓ 4 callersMethodverify_graph_input_output
r""" alloc_graph_input / alloc_graph_output indicates if memory for graph input/output is allocated by the compiler. If not, the runti
exir/memory_planning.py:209
↓ 4 callersMethodvisualize
( self, reuse_server: bool = True, stage: Optional[StageType] = None, **kwargs )
backends/test/harness/tester.py:307
↓ 4 callersFunctionvisualize_with_clusters
Visualize exported programs using the Model Explorer. The QDQ clusters and individual partitions are highlighted. To install the Model Explor
devtools/visualization/visualization_utils.py:178
↓ 4 callersFunctionwrite_schema
(d: str, schema_name: str)
devtools/bundled_program/serialize/__init__.py:29
↓ 3 callersMethodBuilder
()
extension/android/executorch_android/src/main/java/org/pytorch/executorch/extension/llm/LlmModuleConfig.java:140
← previousnext →1,601–1,700 of 28,493, ranked by callers