MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 1 callersFunction_export_with_custom_components
Export using direct HF model with custom MLX components. Used when --use-custom-sdpa and/or --use-custom-kv-cache are set.
backends/mlx/examples/llm/export_llm_hf.py:127
↓ 1 callersFunction_export_with_optimum
( model_id: str, revision: Optional[str], output_path: str, max_seq_len: int, dtype: str,
backends/mlx/examples/llm/export_llm_hf.py:51
↓ 1 callersFunction_exported_graph
()
devtools/intermediate_output_tap/tests/test_selectors.py:43
↓ 1 callersFunction_expr
(sym: torch.SymInt)
backends/arm/test/misc/tosa_dialect/test_tosa_resize.py:32
↓ 1 callersFunction_extend_module_call_graph_outputs
Append `len(new_tap_nodes)` extra leaves to the root module-call entry's `out_spec` so the pytree unflatten step in `run_decompositions` work
devtools/intermediate_output_tap/_tap_pass.py:221
↓ 1 callersMethod_extend_pattern_with_multiple_same_ops
Extend the currently matched pattern in `real_pattern` with multiple operators represented by `multiple_same_ops`. This function find
backends/nxp/backend/ir/neutron_ir_post_processing/pattern_matcher.py:713
↓ 1 callersMethod_extend_pattern_with_one_of
Extend the currently matched pattern in `real_pattern` with an operator represented by `one_of`. This function finds a suitable TFLite operato
backends/nxp/backend/ir/neutron_ir_post_processing/pattern_matcher.py:775
↓ 1 callersFunction_external_id
Return the external ID for ``n`` or ``fallback`` when absent.
backends/arm/tosa/backend.py:95
↓ 1 callersFunction_extract_ancestor_debug_handles
Extract mapping from ancestor node identifiers to debug handles.
devtools/inspector/_inspector_utils.py:1112
↓ 1 callersFunction_extract_archive
Extract archive based on type (zip or tar).
backends/qualcomm/scripts/download_qnn_sdk.py:309
↓ 1 callersMethod_extract_args
Return (size, stride, storage_offset) when they are statically known.
backends/arm/_passes/decompose_as_strided_copy_pass.py:35
↓ 1 callersMethod_extract_args
(self, args, kwargs)
extension/llm/export/export_passes.py:172
↓ 1 callersMethod_extract_batchnorm_params
Extract weight, bias, running_mean, running_var, and eps from batchnorm node.
backends/cadence/aot/fuse_ops.py:275
↓ 1 callersMethod_extract_batchnorm_params
Extract weight, bias, mean, var, and eps from quantized batchnorm node. Expected schema: quantized::batch_norm1d(Tensor qx,
backends/cadence/aot/fuse_ops.py:448
↓ 1 callersFunction_extract_cmake_define
(args: List[str], name: str)
install_utils.py:106
↓ 1 callersFunction_extract_constant_segment
Extracts the constant segment from the MPSGraph and returns the updated MPSGraph along with the segment data.
backends/apple/mps/mps_preprocess.py:279
↓ 1 callersMethod_extract_conv_params
Extract weight, bias, and transpose flag from conv node.
backends/cadence/aot/fuse_ops.py:261
↓ 1 callersFunction_extract_debug_handles
(graph: OperatorGraph)
devtools/inspector/_inspector_utils.py:339
↓ 1 callersFunction_extract_delegate_segments
Extracts the delegate segments inlined in the program into a list of buffers. The program is modified in-place to remove the delegate data.
exir/_serialize/_program.py:279
↓ 1 callersFunction_extract_eps_value
(eps_node)
backends/vulkan/patterns/rms_norm.py:248
↓ 1 callersFunction_extract_external_tensor_layouts
(program: Program)
exir/_serialize/_serialize.py:24
↓ 1 callersFunction_extract_field
Extract a single field from a FlatBuffer op node based on its *kind*.
backends/mlx/pte_inspector.py:346
↓ 1 callersMethod_extract_input_params
( self, arg_list: list[Node] )
backends/arm/_passes/fold_qdq_with_annotated_qparams_pass.py:137
↓ 1 callersMethod_extract_layer_idx
(fqn: str)
examples/models/gemma4_31b/quant/recipe.py:60
↓ 1 callersMethod_extract_metadata
( metadata: Dict[str, Any], skip_stack_trace: Optional[bool] = False )
devtools/debug_format/et_schema.py:388
↓ 1 callersFunction_extract_named_data
Modifies the program in-place to add references to the named data segments. Args: program: The program to extract segments from.
exir/_serialize/_program.py:384
↓ 1 callersFunction_extract_named_data
Places named data into segments and record the alignment for each. Args: key_to_data: A map from keys to opaque data entries. buf
extension/flat_tensor/serialize/serialize.py:241
↓ 1 callersMethod_extract_output_dtype
(val: Any)
devtools/debug_format/et_schema.py:421
↓ 1 callersMethod_extract_output_shapes
(val: Any)
devtools/debug_format/et_schema.py:407
↓ 1 callersMethod_extract_permutation
(permutation_arg: object)
backends/arm/_passes/rewrite_high_rank_singleton_permute_pass.py:35
↓ 1 callersMethod_extract_program
( self, executorch_program: Union[ ExecutorchProgram, ExecutorchProgra
devtools/bundled_program/core.py:383
↓ 1 callersFunction_extract_pte_from_bundle
(pte_data: bytes)
backends/arm/scripts/get_ethosu_scratch_from_pte.py:39
↓ 1 callersMethod_extract_scales_from_model
(self, model)
backends/openvino/tests/quantizer/test_llm_compression.py:130
↓ 1 callersFunction_extract_static_args
Return static size/stride/offset if they are compatible.
backends/arm/operator_support/as_strided_copy_support.py:36
↓ 1 callersFunction_extract_tar
(archive_path: pathlib.Path, prefix: str, target_dir: pathlib.Path)
backends/qualcomm/scripts/download_qnn_sdk.py:396
↓ 1 callersFunction_extract_vid_or_tid
Extract a VidOrTid FlatBuffer object into a dict. VidOrTid has: .IsVid() -> bool, .Vid() -> Vid|None, .Tid() -> Tid|None. Same pattern as Int
backends/mlx/pte_inspector.py:330
↓ 1 callersFunction_extract_zip
(archive_path, content_dir, target_dir)
backends/qualcomm/scripts/download_qnn_sdk.py:367
↓ 1 callersMethod_fake_quant
(self, scale, zero_point)
backends/qualcomm/_passes/seq_mse.py:100
↓ 1 callersFunction_fb_to_dict
(obj: Any)
backends/mlx/serialization/mlx_graph_serialize.py:397
↓ 1 callersFunction_fbs_type_to_cpp
Convert FBS type to C++ type. Args: fbs_type: The FlatBuffer type string required: Whether the field is required table: O
backends/mlx/serialization/generate.py:999
↓ 1 callersMethod_feeds_into_conv
(node: torch.fx.Node)
backends/xnnpack/operators/quant_params.py:198
↓ 1 callersFunction_feeds_into_linear
BFS from node to check if it eventually feeds into a linear op (not conv). This is required because: - Linear-BN fusion (added by AddSimu
backends/nxp/aten_passes/simulated_linear_bn_fusion_passes/remove_simulated_linear_bn_fusion_qat_pass.py:38
↓ 1 callersFunction_fetch_image
(url)
docs/source/custom_directives.py:46
↓ 1 callersMethod_filter_single_node_partitions
Filter out single node partitions if needed.
exir/backend/canonical_partitioners/group_partitioner.py:306
↓ 1 callersFunction_filter_tests
( suite: unittest.TestSuite, test_filter: TestFilter )
backends/test/suite/discovery.py:54
↓ 1 callersMethod_find_best_candidate
(self, nominal_input, nominal_output)
backends/qualcomm/_passes/seq_mse.py:107
↓ 1 callersFunction_find_connected_components
Find groups of connected nodes in a graph using DFS. Parameters: - nodes: A list of nodes in the graph. - edges: A dictionary where e
devtools/inspector/_inspector_utils.py:719
↓ 1 callersMethod_find_constant_tensor
Find a constant tensor by name from various sources.
backends/mlx/builder/program_builder.py:1059
↓ 1 callersMethod_find_fqn_for_placeholder
( self, target: _Target, spec: Any # pyre-ignore[2] )
exir/emit/_emitter.py:1890
↓ 1 callersFunction_find_image_token_runs
Return contiguous runs (start, end, length) of image_token_id in input_ids. input_ids must be a 1D torch.Tensor. If image_token_id is None, retur
extension/llm/runner/__init__.py:43
↓ 1 callersMethod_find_last_dq_nodes
(self, node: torch.fx.node.Node)
backends/qualcomm/_passes/annotate_quant_attrs.py:67
↓ 1 callersFunction_find_lib_in_ld_paths
Return first matching path to `libname` in LD_LIBRARY_PATH, or None.
backends/qualcomm/scripts/download_qnn_sdk.py:629
↓ 1 callersFunction_find_local_vulkan_sdk_root
()
backends/arm/test/runner_utils.py:614
↓ 1 callersMethod_find_longest_match
Find the longest matching sequence from verification branches. Returns the matched tokens and the branch index.
examples/apple/coreml/llama/llama_transformer.py:755
↓ 1 callersFunction_find_matched_debug_handles
Find debug handles that have corresponding nodes in the exported program.
devtools/inspector/_inspector_utils.py:1138
↓ 1 callersFunction_find_matching_runtime_output_by_shape_and_dtype
Find the runtime output that matches the AOT output shape and dtype. Used for multi-output operations (like native_layer_norm.out, native_dro
devtools/inspector/_inspector_utils.py:791
↓ 1 callersFunction_find_max_overlapping_allocations_offset
( sobj: SharedObject, spec: TensorSpec )
exir/memory_planning.py:782
↓ 1 callersMethod_find_nodes_by_names
Find nodes in the graph that match the given names. Args: node_names: A list of node names or patterns to match
exir/backend/test/test_group_partitioner.py:56
↓ 1 callersMethod_find_pattern
Try to match a single pattern type against all nodes.
backends/mlx/builder/pattern_matcher.py:54
↓ 1 callersMethod_find_permute_through_unary_chain
Walk backward from mean through single-user unary ops to find a permute.
backends/cadence/aot/remove_ops.py:458
↓ 1 callersMethod_find_ptxas_for_version
Find ptxas binary that matches the expected CUDA version. Returns the path to ptxas if found and version matches, None otherwise.
backends/cuda/cuda_backend.py:125
↓ 1 callersMethod_find_safe_split_chunk_limits
Compute per-axis chunk limits that make the worst-case check pass. This is a greedy planner over an ``effective_shape``: - Identify v
backends/arm/_passes/decompose_permute_for_u55_pass.py:144
↓ 1 callersFunction_find_view_copy_node_indices
(graph_nodes: list[Node])
backends/nxp/tests/ir/edge_passes/test_edge_passes.py:66
↓ 1 callersMethod_fixed_keep_dim
(self, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/fixed_linear_keep_dim.py:32
↓ 1 callersFunction_fixup_end
(end, dim_size: int)
backends/arm/_passes/decompose_slice_scatter_pass.py:49
↓ 1 callersFunction_fixup_end
Normalize end and clamp into [0, dim_size].
backends/arm/_passes/decompose_strided_slice_copy_pass.py:33
↓ 1 callersFunction_fixup_flatc_imports
Rewrite bare ``from mlx_delegate.X`` imports in generated FlatBuffer code. ``flatc --python`` emits lazy imports like ``from mlx_delegate.Tid imp
backends/mlx/serialization/generate.py:1269
↓ 1 callersFunction_fixup_output_node
(gm: torch.fx.GraphModule)
exir/lowered_backend_module.py:362
↓ 1 callersFunction_fixup_start
(start, dim_size: int)
backends/arm/_passes/decompose_slice_scatter_pass.py:42
↓ 1 callersFunction_fixup_start
Normalize start and clamp into [0, dim_size].
backends/arm/_passes/decompose_strided_slice_copy_pass.py:25
↓ 1 callersMethod_fixup_start
Convert negative and out-of-bounds start indices to valid positive indices.
backends/arm/_passes/rewrite_slice.py:20
↓ 1 callersFunction_flatc_executable
()
exir/_serialize/generate_program.py:37
↓ 1 callersFunction_flatten
(args)
exir/passes/quantize_io_pass.py:398
↓ 1 callersFunction_fmt
(obj: Any)
backends/cortex_m/quantizer_reporter.py:45
↓ 1 callersMethod_fold
( self, graph_module: GraphModule, )
backends/samsung/_passes/fold_qdq.py:17
↓ 1 callersMethod_fold_as_strided_copy
( self, graph_module: GraphModule, )
backends/samsung/_passes/remove_useless_ops.py:51
↓ 1 callersMethod_fold_as_strided_copy
( self, graph_module: GraphModule, )
backends/nxp/edge_passes/remove_as_strided_copy_nodes.py:43
↓ 1 callersMethod_fold_dq
(self, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/fold_qdq.py:51
↓ 1 callersMethod_fold_q
(self, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/fold_qdq.py:67
↓ 1 callersMethod_fold_qat_chains
Walk batch_norm nodes, match the QAT simulation chain, and fold the BN correction into the conv bias.
backends/cadence/aot/quantizer/passes/fuse_ops.py:190
↓ 1 callersFunction_fold_weight_norm
Remove weight_norm parametrizations, fusing weight_v + weight_g into weight.
examples/models/voxtral_tts/model.py:1460
↓ 1 callersFunction_format_evalue
( # noqa: C901 evalue: EValue, show_meminfo: bool, mark_dynamic_shape_tensor: bool )
exir/print_program.py:79
↓ 1 callersFunction_format_export_graph_signature
(signature: ExportGraphSignature)
backends/arm/test/tester/arm_tester.py:1190
↓ 1 callersFunction_format_graph
(graph: torch.fx.Graph, offending_node_idx: int)
exir/print_program.py:343
↓ 1 callersMethod_format_prompt
(self, prompt: str)
examples/models/llama/runner/generation.py:229
↓ 1 callersMethod_format_qspec_table
(self)
backends/cortex_m/quantizer_reporter.py:201
↓ 1 callersFunction_format_tensor_meta
Format a TensorMeta for display.
backends/mlx/preprocess.py:104
↓ 1 callersMethod_forward_layers
Run transformer layers with YOCO KV sharing support.
examples/models/llama/llama_transformer.py:295
↓ 1 callersMethod_forward_mha
( self, q, k, v, freqs_cos, freqs_sin, bsz, se
examples/models/llama/static_attention.py:1313
↓ 1 callersMethod_forward_sha
Forward pass for SHA. Args: new_qs (list): List of new queries. new_ks (list): List of new keys. new_vs (
examples/models/llama/static_attention.py:1266
↓ 1 callersMethod_from_dynamic_input_node
(cls, quant_node: torch.fx.Node)
backends/xnnpack/operators/quant_params.py:212
↓ 1 callersMethod_from_hf
(self)
examples/qualcomm/oss_scripts/llama/tokenizer.py:88
↓ 1 callersMethod_from_list_hook
Allows subclasses to hook into parsing compile spec lists.
backends/arm/common/arm_compile_spec.py:169
↓ 1 callersMethod_from_model
( self, config: nn.Module, cache_lens: Dict[int, int], batch_size: int,
examples/models/llama/static_attention.py:356
↓ 1 callersMethod_from_pretrained
( cls, resolved_vocab_files, pretrained_model_name_or_path, init_configuration
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:2168
↓ 1 callersFunction_from_pstat_to_static_html
Parses pstats data and populates viz.html template stored under templates dir. This utility allows to export html file without kicking off we
util/python_profiler.py:34
↓ 1 callersMethod_from_tokenizer_model
(self, tokenizer_model)
examples/qualcomm/oss_scripts/llama/tokenizer.py:80
↓ 1 callersMethod_from_tokenizer_model_and_bin
(self, tokenizer_model, tokenizer_bin)
examples/qualcomm/oss_scripts/llama/tokenizer.py:71
↓ 1 callersFunction_fully_partitioned
Check that all nested control-flow ops within this submodule are also fully partitioned.
backends/arm/operator_support/control_flow_support.py:22
↓ 1 callersMethod_fuse
( self, graph_module: GraphModule, )
backends/samsung/_passes/fuse_conv_act.py:37
← previousnext →5,801–5,900 of 28,493, ranked by callers