MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 4 callersMethoddefine_tensor_list
_summary_ Args: node (torch.fx.Node): _description_ mps_graph (MPSGraph): _description_
backends/apple/mps/operators/node_visitor.py:111
↓ 4 callersMethoddequantize_value
Dequantizes the input tensor or value to a dequantized tensor If the input is not a tensor, it is converted to a tensor first. If se
backends/arm/_passes/quant_args.py:51
↓ 4 callersMethoddeserialize_argument_spec
(self, x: Argument)
exir/serde/export_serialize.py:2200
↓ 4 callersFunctiondeserialize_profile_results
( buff: bytes, time_scale: TimeScale = TimeScale.TIME_IN_NS )
profiler/parse_profiler_results.py:237
↓ 4 callersFunctiondump_context_from_pte
Dump compiled binaries under the same directory of pte_path. For partitioned graph, there will be multiple files with names f"{method_name}_{
backends/qualcomm/utils/utils.py:190
↓ 4 callersMethodencode_plus
Tokenize and prepare for the model a sequence or a pair of sequences. <Tip warning={true}> This method is deprecated, `__call__` sho
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:3216
↓ 4 callersFunctionerror
Emit an error message and kill the script.
scripts/check_binary_dependencies.py:80
↓ 4 callersMethodexport
Creates a new ExportedModule for the specified module class. Args: module_class: The subclass of nn.Module to export.
test/end2end/exported_module.py:65
↓ 4 callersFunctionexport_and_lower
Export and lower the model to ExecuTorch for the given backend.
examples/models/gemma4_31b/export.py:139
↓ 4 callersMethodexport_kv_cache
( self, kv_cache: torch.nn.Module, )
extension/llm/modules/test/test_kv_cache.py:112
↓ 4 callersFunctionexport_model_to_metal
Export model through the Metal backend pipeline.
backends/apple/metal/tests/test_modules.py:962
↓ 4 callersFunctionexport_to_exec_prog
( model: Union[torch.fx.GraphModule, torch.nn.Module], example_inputs: Tuple[Value, ...], *, e
extension/export_util/utils.py:98
↓ 4 callersFunctionextract_constant_scalar
(arg: Any)
backends/cortex_m/passes/passes_utils.py:25
↓ 4 callersMethodfind
( node: torch.fx.Node, args: List[torch.fx.Node], kind: str = "args", index: i
backends/xnnpack/_passes/convert_to_linear.py:42
↓ 4 callersFunctionfind_peak_memory_usage
Given a GraphModule with a memory plan, find the peak usage over time across all memories in the memory hierarchy. The resulting peak memory
backends/cadence/aot/memory_planning.py:230
↓ 4 callersFunctionformat_items
Render an iterable as a comma-separated string.
backends/cortex_m/quantizer/node_finders.py:21
↓ 4 callersMethodforward
(self, x, y)
test/end2end/test_end2end.py:110
↓ 4 callersMethodforward
( self, q: torch.Tensor, k: torch.Tensor, freqs_cos: torch.Tensor, fre
examples/apple/coreml/llama/llama_transformer.py:145
↓ 4 callersMethodforward
(self, x, n)
extension/wasm/test/test_model.py:9
↓ 4 callersMethodfrom_bytes
Tries to read an flat_tensor header from the provided data. Does not validate that the header is well-formed. Callers should use is_v
extension/flat_tensor/serialize/serialize.py:145
↓ 4 callersMethodfrom_hf_checkpoint
Build the model on `meta` and load weights from the HF safetensors checkpoint. Uses lazy shard-by-shard loading + assign=True so peak memory
examples/models/gemma4_31b/model.py:500
↓ 4 callersMethodfrom_recipe
(cls, lowering_recipe: Optional["LoweringRecipe"])
export/stages.py:464
↓ 4 callersMethodfrom_repr
Construct a PackedDimInfo based on a memory layout and storage type, mirroring calculate_packed_dim_info in runtime/api/containers/Te
backends/vulkan/utils.py:647
↓ 4 callersMethodfrom_weights
( cls, tensor_node: torch.fx.Node, ep: Optional[ExportedProgram] = None )
backends/xnnpack/operators/quant_params.py:325
↓ 4 callersMethodgen_from_yaml
Generate ETKernelKeys from arg kernel specs Multiple ETKernelKeys are returned due to dtype permutations from utilizing type_alias_map
codegen/model.py:64
↓ 4 callersFunctiongen_functions_declarations
Generates namespace separated C++ function API inline declaration/definitions. Native functions are grouped by namespaces and the generated c
codegen/gen.py:393
↓ 4 callersFunctiongenerate_gpu_compiler_spec
Helper function generating backend options for QNN HTP Args: precision: kGpuPrecisionFp32 - Sets the precision mode to f
backends/qualcomm/utils/utils.py:976
↓ 4 callersMethodgenerate_multimethod_weight_sharing_strategy_compile_spec
Returns the compile spec representing the multimethod weight sharing strategy. Args: strategy: The weight sharing strate
backends/apple/coreml/compiler/coreml_preprocess.py:277
↓ 4 callersFunctiongenerate_neutron_compile_spec
( config: str, # The target platform. For example "imxrt700". system_config: Optional[str] = None,
backends/nxp/nxp_backend.py:146
↓ 4 callersFunctionget_16a16w_qnn_ptq_config
( act_symmetric: bool = False, act_observer=MovingAverageMinMaxObserver, eps: float = None, )
backends/qualcomm/quantizer/qconfig.py:309
↓ 4 callersFunctionget_8a8w_qnn_ptq_config
( act_symmetric: bool = False, act_observer=MovingAverageMinMaxObserver, eps: float = None, )
backends/qualcomm/quantizer/qconfig.py:113
↓ 4 callersFunctionget_8a8w_qnn_qat_config
( act_symmetric: bool = False, act_observer=MovingAverageMinMaxObserver, eps: float = None, )
backends/qualcomm/quantizer/qconfig.py:615
↓ 4 callersMethodget_adb_tool
(self, pte_fname)
backends/qualcomm/tests/utils.py:846
↓ 4 callersMethodget_aligned
(num: int)
backends/cadence/aot/tests/test_memory_passes.py:1209
↓ 4 callersFunctionget_aligned_offset
(pre_aligned_offset: int, alignment: int)
backends/cadence/aot/memory_planning_algo.py:24
↓ 4 callersFunctionget_anchors_for_fixed_quant_specs
( fused_partition: list[fx.GraphModule], scale: float, zero_point: int, quant_min: int = -128,
backends/nxp/quantizer/patterns.py:180
↓ 4 callersMethodget_and_validate_extended_header
When an extended header is expected, check that it exists and is valid. Does not check correctness of the contents.
exir/_serialize/test/test_program.py:147
↓ 4 callersFunctionget_aot_debug_handle_to_op_name_mapping
Get a mapping from debug handle to operator name from the ETRecord edge_dialect_program's graph module. Parameters: graph_module (torch.f
devtools/inspector/_inspector_utils.py:1020
↓ 4 callersMethodget_axis_order
(cls, size: List[int], reverse=False)
backends/qualcomm/_passes/layout_transform.py:148
↓ 4 callersMethodget_data_type
( self, tensor: torch.Tensor, quant_config: Dict, )
backends/qualcomm/builders/node_visitor.py:372
↓ 4 callersMethodget_deps
Gets all dependencies for this gemm partition. Returns a tuple of a bool indicating if the deps are valid and a list of all the
backends/xnnpack/partition/config/gemm_configs.py:116
↓ 4 callersMethodget_device_name
(cls)
backends/cuda/cuda_backend.py:121
↓ 4 callersMethodget_dynamic_shapes
(self)
examples/models/llama3_2_vision/preprocess/model.py:63
↓ 4 callersMethodget_eager_model
(self)
examples/models/llama3_2_vision/preprocess/model.py:54
↓ 4 callersMethodget_example_inputs
(self)
examples/qualcomm/oss_scripts/t5/t5_model.py:315
↓ 4 callersMethodget_example_kwarg_inputs
(self)
examples/models/llama3_2_vision/text_decoder/model.py:154
↓ 4 callersMethodget_filtered_passes
( self, filter_: Callable[[Type[PassBase]], bool] )
backends/cadence/aot/tests/test_pass_filter.py:41
↓ 4 callersMethodget_graph
(self, stage: StageType | None = None)
backends/arm/test/tester/arm_tester.py:853
↓ 4 callersFunctionget_gru_input_shapes
( input_size=8, hidden_size=8, sequence_length=8, batch_size=8, num_layers=1, D=1, #
backends/nxp/tests/generic_tests/test_gru_splitting.py:25
↓ 4 callersMethodget_id
(self)
backends/mlx/builder/slot_manager.py:59
↓ 4 callersMethodget_inputs
(self)
backends/arm/test/ops/test_conv3d.py:167
↓ 4 callersMethodget_inputs
(self)
backends/arm/test/modules/test_lstm.py:51
↓ 4 callersMethodget_inputs
(self)
backends/xnnpack/test/ops/test_batch_norm.py:67
↓ 4 callersMethodget_inputs_for_prefill
Returns prompts as well as image.
examples/models/llava/model.py:374
↓ 4 callersFunctionget_jupyter_code
Returns all code cells from the jupyter notebook at 'path'. If get_bash is True, only bash cells are returned, otherwise only python cells ar
backends/arm/scripts/docgen/docgen.py:85
↓ 4 callersMethodget_kernels
( self, g: NativeFunction | NativeFunctionsGroup )
codegen/model.py:147
↓ 4 callersMethodget_kv_io_bit_width
(self)
examples/qualcomm/oss_scripts/llama/static_llm_quant_recipe.py:32
↓ 4 callersFunctionget_master_rot_emb
(config, dtype, **kwargs)
examples/mediatek/aot_utils/llm_utils/utils.py:497
↓ 4 callersFunctionget_model_and_inputs
Get model and example inputs based on model name. Note: Model parameters are initialized with their default dtype (typically float32) during
backends/apple/metal/tests/test_modules.py:873
↓ 4 callersFunctionget_node_pos
( graph_module: torch.fx.GraphModule, target: torch.fx.Node, )
backends/cadence/aot/pass_utils.py:185
↓ 4 callersFunctionget_op_features
(target: Any)
backends/vulkan/op_registry.py:1701
↓ 4 callersMethodget_pte_buffer
Get the PTE buffer as bytes. Returns: The PTE buffer as bytes Raises: RuntimeError: If the executor
export/export.py:567
↓ 4 callersFunctionget_ptq_per_channel_quant_config
( act_dtype=torch.uint8, weight_dtype=torch.int8, act_observer=MovingAverageMinMaxObserver, ac
backends/qualcomm/quantizer/qconfig.py:422
↓ 4 callersFunctionget_quant_embedding_transform
( embedding_quantize: str, use_shared_embedding: bool = False, quantize_with_hqq: bool = True, )
examples/models/llama/source_transformation/quantize.py:769
↓ 4 callersMethodget_random_inputs
(self)
exir/tests/test_memory_planning.py:1139
↓ 4 callersFunctionget_registered_tests
Get all registered tests with their configurations. Returns dict mapping base_name -> list of (config_name, test_instance). Test instanc
backends/mlx/test/test_utils.py:787
↓ 4 callersFunctionget_root_dir_path
()
examples/apple/coreml/scripts/debugger_cli.py:20
↓ 4 callersMethodget_supported_recipes
(self)
export/tests/test_recipe_registry.py:37
↓ 4 callersMethodget_tensors
(self)
backends/nxp/backend/ir/converter/builder/model_builder.py:1688
↓ 4 callersFunctionget_test_loader
Get loader for testing data.
examples/nxp/experimental/cifar_net/cifar_net.py:111
↓ 4 callersFunctionget_tool_output
Execute a command in the shell and return the output.
scripts/check_binary_dependencies.py:86
↓ 4 callersFunctionget_transposed_dims
Applies the transposition as given by node onto the dimensions given in input.
backends/transforms/permute_pass_utils.py:59
↓ 4 callersMethodget_verifiers
(self)
backends/test/program_builder.py:95
↓ 4 callersFunctionget_xnnpack_partitioner
Returns the XNNPACK partitioner. @arg dynamic_quant_only_partitioner: This is enabled by default to keep BC. If dynamic_quan
extension/llm/export/partitioner_lib.py:11
↓ 4 callersMethodgraph_module
Return the artifact's graph module for this stage
backends/test/harness/stages/stage.py:51
↓ 4 callersFunctiongraph_module_inference
This function supports model execution from static nn.Module decoder model all the way to edge program. Users could choose to provide eit
examples/qualcomm/oss_scripts/llama/decoder_utils.py:956
↓ 4 callersFunctionhas_float_output
(node: Node)
backends/arm/quantizer/arm_quantizer_utils.py:99
↓ 4 callersFunctionhas_no_users
(node: Node)
backends/mlx/pattern_utils.py:71
↓ 4 callersFunctionhf_precompute_freqs_cis
( dim: int, end: int, theta: float, partial_rotary_factor: float = 1.0, device: Union[str,
examples/models/llama/rope.py:142
↓ 4 callersFunctioninflate_runtime_output
Parse the given ETDump Value object into an InferenceOutput object
devtools/inspector/_inspector_utils.py:215
↓ 4 callersMethodinput_to_nhwc
( self, graph_module: torch.fx.GraphModule, input_node: torch.fx.Node, target_
backends/xnnpack/_passes/channels_last_tagged_reshape_pass.py:356
↓ 4 callersFunctionint4_matmul
W4A16 matmul: output = x @ dequant(w_packed).T Args: x: [M, K] bf16 activations w_packed: [N, K//2] int8 — two INT4 values
backends/cuda/triton/kernels/int4_matmul.py:206
↓ 4 callersMethodis_applicable
(self, tensor_map: NameToTensorMap)
backends/nxp/backend/ir/neutron_ir_post_processing/tensor_rules.py:383
↓ 4 callersFunctionis_channels_last_dim_order
(dim_order: list[int])
backends/nxp/backend/edge_helper.py:199
↓ 4 callersMethodis_compatible
Check if this TensorRepr is compatible with the given TensorRepSet.
backends/vulkan/utils.py:931
↓ 4 callersMethodis_fusable_conv_or_linear__edge
Node operator in edge dialect is supported fusable Linear or Conv2D on Neutron.
backends/nxp/backend/neutron_target_spec.py:84
↓ 4 callersFunctionis_graph_input
Check if the given tensor is a graph input Args: tensor: EdgeIR Tensor that is being checked for graph input
backends/qualcomm/builders/utils.py:66
↓ 4 callersMethodis_kv_shared_layer
Check if layer uses KV sharing (YOCO).
examples/models/gemma4/text_decoder/gemma4_config.py:254
↓ 4 callersFunctionis_linux_x86
Check if the current platform is Linux x86_64. Returns: bool: True if the system is Linux x86_64, False otherwise.
backends/qualcomm/scripts/download_qnn_sdk.py:91
↓ 4 callersFunctionis_lowered_module
This function is added to avoid using isinstance(obj, LoweredBackendModule) as it will import LoweredBackendModule, which may cause a circula
exir/delegate.py:145
↓ 4 callersFunctionis_mutable_buffer_input
Check if the given tensor is a mutable buffer input Args: tensor: EdgeIR Tensor that is being checked for mutable buffer input
backends/qualcomm/builders/utils.py:78
↓ 4 callersFunctionis_out_variant
(qualified_opname: str, overload: str)
exir/operator/convert.py:358
↓ 4 callersFunctionis_param_node
(exp_prog: ExportedProgram, node: torch.fx.Node)
backends/arm/_passes/arm_pass_utils.py:74
↓ 4 callersFunctionis_qparam
(node: torch.fx.Node)
backends/xnnpack/utils/quant_utils.py:87
↓ 4 callersMethodis_scalar_type
(self)
exir/dialects/edge/arg/type.py:30
↓ 4 callersMethodis_supported_fused_activation__edge
Node operator is supported fused activation on Neutron for Linear and Conv2D.
backends/nxp/backend/neutron_target_spec.py:52
↓ 4 callersMethodlifetime_overlap
(cls, lhs_spec: TensorSpec, rhs_spec: TensorSpec)
exir/memory_planning.py:107
↓ 4 callersMethodlist_backends
Get list of all registered backends
export/recipe_registry.py:78
↓ 4 callersFunctionload_prequantized_model
Load a prequantized safetensors bundle into a model. Args: prequantized_dir: Directory containing model.safetensors and config.json.
examples/models/qwen3_5_moe/export.py:209
↓ 4 callersMethodlower_module_and_test_output
Helper testing function that takes a torch.nn.Module and lowers it to MPS with the given sample inputs. It then runs the lowered modu
backends/apple/mps/test/test_mps_utils.py:182
← previousnext →1,501–1,600 of 28,493, ranked by callers