MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 1 callersFunction_abs
(graph: "fx.Graph", x: "fx.Node")
devtools/intermediate_output_tap/_reducers.py:105
↓ 1 callersMethod_add_bias
( self, graph_module: torch.fx.GraphModule, node: torch.fx.Node, weight_node:
backends/arm/_passes/rewrite_conv_pass.py:143
↓ 1 callersMethod_add_conv_op_parameter
This function is shared among Conv1D, Conv2D, and DepthWise Conv2D as most of the required parameters overlaps.
backends/qualcomm/builders/op_conv.py:34
↓ 1 callersMethod_add_delegate_map
Store the delegate map from this lowered module into the dictionary of delegate maps. It will later be used for various debugging pur
exir/emit/_emitter.py:1336
↓ 1 callersMethod_add_dq_after
(self, graph_module: GraphModule, node: torch.fx.Node)
backends/samsung/_passes/insert_qdq.py:87
↓ 1 callersMethod_add_dq_before
( self, graph_module: GraphModule, node: torch.fx.Node, from_node: torch.fx.No
backends/samsung/_passes/insert_qdq.py:126
↓ 1 callersFunction_add_module_to_graph_map
Add export module to graph map based on its type.
devtools/etrecord/_etrecord.py:647
↓ 1 callersMethod_add_q_after
(self, graph_module: GraphModule, node: torch.fx.Node)
backends/samsung/_passes/insert_qdq.py:98
↓ 1 callersMethod_add_q_before
( self, graph_module: GraphModule, node: torch.fx.Node, from_node: torch.fx.No
backends/samsung/_passes/insert_qdq.py:112
↓ 1 callersMethod_add_qdq
(self, graph_module: GraphModule)
backends/samsung/_passes/insert_qdq.py:152
↓ 1 callersMethod_add_qdq_for_requantize
(self, graph_module: GraphModule)
backends/samsung/_passes/insert_qdq.py:140
↓ 1 callersMethod_add_tokens
( self, new_tokens: Union[List[str], List[AddedToken]], special_tokens: bool = False,
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:1086
↓ 1 callersMethod_add_tokens
Add a list of new tokens to the tokenizer class. If the new tokens are not in the vocabulary, they are added to it with indices start
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils.py:403
↓ 1 callersFunction_adjust_tosa_aarch64_atol
Increase tolerance for aarch64 when running on TOSA. This is due to the TOSA ref model being experimental on Aarch64.
backends/arm/test/tester/arm_tester.py:110
↓ 1 callersFunction_alias_inplace_result_specs
Alias an in-place op's result TensorSpec(s) onto the corresponding input's spec. In-place ops (schema kind == inplace) mutate one or more of
exir/memory_planning.py:321
↓ 1 callersMethod_all_activations_are_equal
(activations: list[Node])
backends/nxp/quantizer/patterns.py:1183
↓ 1 callersMethod_all_io_shares_quantization_parameters
(node: Node)
backends/nxp/backend/ir/converter/node_converters/ops_converters/cat_converter.py:51
↓ 1 callersMethod_all_ops_are_in_the_model
Determine if it is even possible to find a match for the pattern, based on whether the ops in the pattern are in the model.
backends/nxp/backend/ir/neutron_ir_post_processing/pattern_matcher.py:585
↓ 1 callersFunction_allocate_buf
(bufsizes: List[int], mem_id: int, allocated: int)
exir/memory_planning.py:1136
↓ 1 callersMethod_allowed_to_transform_named_buffer
(self, buf_name, graph_module)
backends/arm/_passes/replace_inf_and_limit_values_pass.py:25
↓ 1 callersMethod_annotate
(self, graph_module: GraphModule)
backends/samsung/_passes/annotate_qparams.py:153
↓ 1 callersMethod_annotate
(self, gm: GraphModule)
backends/samsung/quantizer/quantizer.py:49
↓ 1 callersMethod_annotate
(self, gm: GraphModule)
backends/mediatek/quantizer/quantizer.py:41
↓ 1 callersMethod_annotate
(self, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/annotate_avg_pool1d.py:36
↓ 1 callersMethod_annotate
Annotates the nodes of the provided GraphModule in-place based on user defined quant configs during prepare_pt2e. For each node in t
backends/qualcomm/quantizer/quantizer.py:416
↓ 1 callersMethod_annotate_all_patterns
( self, model: torch.fx.GraphModule, quantization_config: Optional[QuantizationConfig]
backends/vulkan/quantizer/vulkan_quantizer.py:154
↓ 1 callersMethod_annotate_bypass
(self, node)
backends/qualcomm/_passes/fold_qdq.py:45
↓ 1 callersMethod_annotate_custom_annotation
(self, gm: GraphModule)
backends/samsung/quantizer/quantizer.py:60
↓ 1 callersMethod_annotate_custom_annotation
(self, gm: torch.fx.GraphModule)
backends/qualcomm/quantizer/quant_recipe.py:270
↓ 1 callersMethod_annotate_custom_annotation
(self, gm: GraphModule)
backends/qualcomm/quantizer/quantizer.py:430
↓ 1 callersFunction_annotate_external_ids
Assign deterministic output IDs to leaf outputs. Flattens the output structure and assigns the external ID based on the leaf position in the
backends/arm/tosa/backend.py:48
↓ 1 callersMethod_annotate_for_quantization_config
( self, model: torch.fx.GraphModule )
backends/xnnpack/quantizer/xnnpack_quantizer.py:428
↓ 1 callersMethod_annotate_for_quantization_config
( self, model: torch.fx.GraphModule )
backends/vulkan/quantizer/vulkan_quantizer.py:173
↓ 1 callersMethod_annotate_for_static_quantization_config
Match QuantizationConfigs to modules before annotating patterns. Args: model (GraphModule): Model whose modules are being matched
backends/arm/quantizer/arm_quantizer.py:969
↓ 1 callersFunction_annotate_fused_activation_pattern
( graph: Graph, quant_config: QuantizationConfig )
backends/samsung/quantizer/annotator.py:125
↓ 1 callersFunction_annotate_fused_activation_pattern
( graph: Graph, quant_config: QuantizationConfig )
backends/mediatek/quantizer/annotator.py:83
↓ 1 callersFunction_annotate_input
Annotate a node's input with the given qspec. Maps the specified input argument(s) to the provided quantization spec and optionally marks the
backends/arm/quantizer/quantization_annotator.py:332
↓ 1 callersMethod_annotate_input_params
( self, graph_module: GraphModule, node: Node, index: int, input_qpara
backends/arm/_passes/fold_qdq_with_annotated_qparams_pass.py:173
↓ 1 callersMethod_annotate_inputs
(self, model: fx.GraphModule)
backends/nxp/quantizer/neutron_quantizer.py:371
↓ 1 callersMethod_annotate_io
Annotate graph inputs and outputs with the provided configuration. Args: model (GraphModule): GraphModule being annotated.
backends/arm/quantizer/arm_quantizer.py:1005
↓ 1 callersFunction_annotate_output
Annotate a node's output with the given qspec. Args: node (Node): Node whose output should be annotated. quant_property (_QuantPr
backends/arm/quantizer/quantization_annotator.py:371
↓ 1 callersMethod_annotate_post_training_quantization
Annotates the model graph with post-training quantization configurations. :param model: The FX GraphModule to annotate. :par
backends/openvino/quantizer/quantizer.py:282
↓ 1 callersMethod_annotate_quant_attrs
( self, graph_module: torch.fx.GraphModule )
backends/qualcomm/_passes/annotate_quant_attrs.py:126
↓ 1 callersMethod_annotate_requant
(self, n)
backends/qualcomm/_passes/annotate_quant_attrs.py:82
↓ 1 callersMethod_annotate_requantize
(self, node: Node)
backends/samsung/_passes/annotate_qparams.py:120
↓ 1 callersFunction_annotate_rmsnorm_pattern
(graph: Graph, quant_config: QuantizationConfig)
backends/mediatek/quantizer/annotator.py:149
↓ 1 callersMethod_annotate_shared_cluster
(self, root_node: Node)
backends/arm/quantizer/arm_quantizer_utils.py:574
↓ 1 callersMethod_annotate_source_nodes
( self, quant_node: torch.fx.Node, quant_attrs: Dict[str, Any] )
backends/qualcomm/_passes/annotate_quant_attrs.py:46
↓ 1 callersMethod_annotate_stack
(self, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/annotate_stack.py:27
↓ 1 callersMethod_annotate_unbind
(self, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/annotate_unbind.py:27
↓ 1 callersMethod_annotate_weight_compression
Annotates the model graph with weight-only quantization specs. Identifies compressible nodes in the NNCF graph and attaches the corr
backends/openvino/quantizer/quantizer.py:241
↓ 1 callersFunction_api_kind
(obj: object)
backends/arm/scripts/generate_public_api_manifest.py:56
↓ 1 callersFunction_api_signature
(path: str, obj: object)
backends/arm/scripts/generate_public_api_manifest.py:62
↓ 1 callersMethod_append_dq
( self, graph_module: torch.fx.GraphModule, node: torch.fx.Node, qdq_node: tor
backends/qualcomm/_passes/convert_linear_to_conv2d.py:44
↓ 1 callersMethod_append_input_qspec
( self, user_node: Node, input_node: Node, adjacent_qspecs: list[Any] )
backends/arm/quantizer/arm_quantizer_utils.py:538
↓ 1 callersMethod_append_output_qspec
(self, node: Node, adjacent_qspecs: list[Any])
backends/arm/quantizer/arm_quantizer_utils.py:526
↓ 1 callersFunction_apply_algo_to_submodules
Apply algo to map/cond/while/scan nodes in the graph module. This method will popuate graph_module.meta["non_const_buffer_sizes"] for all sub
exir/memory_planning.py:1289
↓ 1 callersMethod_apply_causal_conv
(self, mixed_qkv: torch.Tensor)
examples/models/llama/attention.py:746
↓ 1 callersFunction_apply_chat_template
(text_processor, messages)
backends/mlx/examples/llm/run_llm_hf.py:77
↓ 1 callersFunction_apply_cuda_arg_defaults
Auto-set CUDA-specific defaults: tile_packed_to_4d packing + bf16 dtype. Both are required for the AOTI _weight_int4pack_mm kernel path. Promoted
examples/models/voxtral_tts/export_voxtral_tts.py:185
↓ 1 callersFunction_apply_debug_handles
Apply debug handles to the exported program nodes.
devtools/inspector/_inspector_utils.py:1182
↓ 1 callersMethod_apply_first_valid_axis_reduction
( cls, effective_shape: list[int], violating_combos: Sequence[tuple[int, ...]],
backends/arm/_passes/decompose_permute_for_u55_pass.py:242
↓ 1 callersMethod_apply_flat_inplace
(self, graph_module)
backends/transforms/permute_pass_utils.py:149
↓ 1 callersMethod_apply_hierarchical_inplace
(self, graph_module: torch.fx.GraphModule)
backends/transforms/permute_pass_utils.py:152
↓ 1 callersMethod_apply_patterns
Find and apply pattern handlers to the graph. Uses PatternMatcher to discover multi-node patterns and assigns handlers to ma
backends/mlx/builder/program_builder.py:492
↓ 1 callersMethod_apply_rope
Apply RoPE. For partial rotation, cos/sin are zero-padded to head_dim so rotate_half pairs dims correctly (matching HF).
examples/models/gemma4/text_decoder/gemma4_attention.py:247
↓ 1 callersMethod_apply_rope_single
Apply RoPE to Q only (for shared KV layers).
examples/models/gemma4/text_decoder/gemma4_attention.py:258
↓ 1 callersMethod_apply_split_permute_cat
Apply split -> permute -> concat decomposition. For each planned split axis, recursively emit ``slice_copy`` chunks. At the recursion
backends/arm/_passes/decompose_permute_for_u55_pass.py:265
↓ 1 callersMethod_apply_view_to_dims
Apply a squeeze or unsqueeze view to dimension mapping. Returns the updated dims, or None if the view cannot be mapped.
backends/transforms/fuse_cascaded_transpose_or_permute_ops.py:82
↓ 1 callersFunction_assert_all_transposes_shape_consistent
(tosa_path: Path)
backends/arm/test/misc/test_reshape_permute_5d_regression.py:108
↓ 1 callersFunction_assert_df_quality
For each row in the AOT-vs-runtime comparison DataFrame, assert quality. - FULL_TENSOR rows: SQNR (in dB) must exceed `sqnr_db_threshold`. -
devtools/intermediate_output_tap/tests/test_coreml_e2e.py:52
↓ 1 callersFunction_assert_nodes_form_a_view_copy_qdq_cluster
(graph: Graph, node_indices: list[int])
backends/nxp/tests/ir/edge_passes/test_edge_passes.py:76
↓ 1 callersMethod_assert_prepared_nodes_share_qparams
( self, module, sample_input, target_tokens )
backends/qualcomm/tests/test_qnn_delegate.py:4386
↓ 1 callersMethod_assert_valid_bundle
Check if the program and method_test_suites matches each other. Other checks not related to correspondence are done in config.py Arg
devtools/bundled_program/core.py:243
↓ 1 callersMethod_assert_within_int32
(self, tensor: torch.Tensor, node: torch.fx.Node)
backends/arm/_passes/cast_int64_pass.py:28
↓ 1 callersMethod_assign_io_tensor_indices
(self, inputs, outputs, allow_inputs_stripping: bool)
backends/nxp/backend/ir/converter/builder/model_builder.py:527
↓ 1 callersFunction_assign_new_tag
Assign new tag to the copied nodes. Before the pass constant_0 (tag_10) ------------------> op_b (tag_10) constant_0_copy (tag_10) -
exir/backend/utils.py:183
↓ 1 callersMethod_assign_operators_io_tensor_indices
(self, operators)
backends/nxp/backend/ir/converter/builder/model_builder.py:551
↓ 1 callersMethod_assign_tensor_and_buffer_indices
Correctly initialize all references via indices in all tensors and buffers.
backends/nxp/backend/ir/converter/builder/model_builder.py:559
↓ 1 callersFunction_atomic_download
Download URL into dest atomically: - Write to a temp file in the same dir - Move into place if successful
backends/qualcomm/scripts/download_qnn_sdk.py:156
↓ 1 callersMethod_auto_tune_calibration_threads
Find the optimal thread count for calibration via quick microbenchmark. AR1 decode calibration is SGEMV-dominated (memory-bandwidth-bound).
examples/qualcomm/oss_scripts/llama/wrappers/llm_wrappers.py:462
↓ 1 callersFunction_bare_class_name
Extract the bare class name from an `nn_module_stack` type entry.
devtools/intermediate_output_tap/_selectors.py:78
↓ 1 callersMethod_batch_encode_plus
( self, batch_text_or_text_pairs: Union[ List[TextInput], List[TextInp
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_fast.py:504
↓ 1 callersMethod_batch_encode_plus
( self, batch_text_or_text_pairs: Union[ List[TextInput], List[TextInp
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:3400
↓ 1 callersMethod_batch_prepare_for_model
Prepares a sequence of input id, or a pair of sequences of inputs ids so that it can be used by the model. It adds special tokens, truncates
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils.py:849
↓ 1 callersFunction_bench_ms
(fn, num_warmup, num_iters)
backends/cuda/benchmarks/benchmark_moe.py:261
↓ 1 callersFunction_bench_us
Return median latency in microseconds using triton.testing.do_bench.
backends/cuda/benchmarks/benchmark_sdpa.py:145
↓ 1 callersFunction_broadcast_shape
Compute the broadcasted shape (PyTorch/Numpy semantics) for a list of shapes. Requirements: - static shape only - shapes are righ
backends/arm/_passes/decompose_index_tensor_to_gather_pass.py:48
↓ 1 callersFunction_buck_version_path
()
tools/cmake/resolve_buck.py:44
↓ 1 callersMethod_build_add_graph
Build a simple graph with an add operation.
backends/cadence/aot/tests/test_quantizer_ops.py:396
↓ 1 callersMethod_build_add_relu_graph
Build a graph with an add followed by relu (fused pattern). Returns: A tuple of (graph_module, relu_node, add_node).
backends/cadence/aot/tests/test_quantizer_ops.py:532
↓ 1 callersMethod_build_addmm_graph
Build a simple graph with an addmm operation.
backends/cadence/aot/tests/test_quantizer_ops.py:462
↓ 1 callersFunction_build_attn_mask
Build additive causal attention mask for offline (non-streaming) mode. Metal AOTI doesn't support bool tensor allocation on MPS, so we use in
examples/models/voxtral_realtime/model.py:423
↓ 1 callersMethod_build_audio_dataset
This will process audio using the HuggingFace processor and save the processed audio for runtime evaluation. Args:
examples/qualcomm/oss_scripts/llama/dataset.py:49
↓ 1 callersMethod_build_bmm_graph
Build a simple graph with a bmm (batch matrix multiply) operation.
backends/cadence/aot/tests/test_quantizer_ops.py:418
↓ 1 callersFunction_build_causal_mask_bool
Build boolean causal attention mask for offline (non-streaming) mode. Returns [1, 1, seqlen, max_seq_len] for Triton SDPA compatibility.
examples/models/voxtral_realtime/model.py:444
↓ 1 callersFunction_build_causal_mask_bool
Bool causal mask for the CUDA Triton SDPA kernel. Shape: [1, 1, T_q, max_seq_len]. Position i in the query attends to cache positions [0, inp
examples/models/voxtral_tts/model.py:254
↓ 1 callersMethod_build_codebook_quantized_recipe
Build codebook/palettization quantization recipe
backends/apple/coreml/recipes/coreml_recipe_provider.py:328
↓ 1 callersMethod_build_compiler_flags
( *, target: str, config_ini: str, extra_flags: list[str] | None, syst
backends/arm/ethosu/compile_spec.py:64
↓ 1 callersMethod_build_conv1d_relu_graph
Build a graph with a conv1d followed by relu (fused pattern). Returns: A tuple of (graph_module, relu_node, conv_node).
backends/cadence/aot/tests/test_quantizer_ops.py:622
← previousnext →5,401–5,500 of 28,493, ranked by callers