MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 2 callersFunction_adjust_weight_qspec_for_conv_transpose
Adjust weight qspec axis/ctor for conv_transpose2d per-channel quantization. Use axis 1 for ungrouped ConvTranspose2d weights because the wei
backends/arm/quantizer/quantization_annotator.py:106
↓ 2 callersFunction_aligned_size
Returns input_size padded up to the next whole multiple of alignment.
backends/xnnpack/serialization/xnnpack_graph_serialize.py:255
↓ 2 callersFunction_annotate_placeholders_with_devices
(gm, device_map)
backends/arm/test/quantizer/test_tosa_quantizer_validate.py:14
↓ 2 callersMethod_apply
Override _apply to update self.dtype when the module is cast via .to(dtype).
examples/models/llama/source_transformation/quantize.py:757
↓ 2 callersMethod_apply_output_transforms
( self, output: torch.Tensor, x: torch.Tensor, gate, bsz: int, seqlen: int )
examples/models/llama/attention.py:634
↓ 2 callersFunction_apply_replace_quant_nodes
Apply the replace_quant_nodes pass to the edge graph module.
backends/arm/scripts/aot_arm_compiler.py:198
↓ 2 callersMethod_apply_rope
Apply RoPE to queries and keys. Args: qs (list): List of queries. ks (list, optional): List of keys. Defaults to None
examples/models/llama/static_attention.py:1109
↓ 2 callersMethod_apply_rotary
(x, cos, sin)
examples/models/qwen3_5_moe/model.py:177
↓ 2 callersFunction_apply_turboquant
Replace KV caches in full-attention layers with TurboQuantKVCache. Runs after _materialize_buffers so the new TQ4 buffers are created with co
examples/models/qwen3_5_moe/export.py:661
↓ 2 callersMethod_argument_mutates
( self, schema: torch._C.FunctionSchema, key: int | str )
backends/aoti/passes/replace_view_copy_with_view.py:104
↓ 2 callersFunction_assert_df_shape
Common shape assertions for both test paths.
devtools/intermediate_output_tap/tests/test_xnnpack_e2e.py:234
↓ 2 callersFunction_assert_one_delegate
(graph_module: GraphModule)
examples/arm/export_standalone_tosa_graph.py:27
↓ 2 callersMethod_assign_debug_handles
(self, gm: torch.fx.GraphModule)
examples/qualcomm/oss_scripts/llama/mix_precision_analyzer.py:130
↓ 2 callersFunction_atomic_write_binary
Atomically write binary data to a file. Writes to a temporary file in the same directory, then atomically replaces the target path. This
backends/mlx/test/test_utils.py:134
↓ 2 callersFunction_buffer_has_data
Determine if given buffer has any data in it.
backends/nxp/backend/ir/converter/tensor_utils.py:15
↓ 2 callersMethod_build_attn_mask
Combined causal + sliding-window mask for the current step.
examples/models/gemma4/text_decoder/gemma4_attention.py:324
↓ 2 callersMethod_build_conv1d_graph
Build a simple graph with a conv1d operation (no bias).
backends/cadence/aot/tests/test_quantizer_ops.py:302
↓ 2 callersMethod_build_conv2d_graph
Build a simple graph with a conv2d operation (no bias).
backends/cadence/aot/tests/test_quantizer_ops.py:326
↓ 2 callersMethod_build_direction
Build GRU cell computation for one direction. Returns (timestep_outputs, h_final) where timestep_outputs are unsqueezed hidden states
backends/arm/_passes/decompose_gru_pass.py:52
↓ 2 callersMethod_build_direction
Build RNN cell computation for one direction. Returns (timestep_outputs, h_final) where timestep_outputs are unsqueezed hidden states
backends/arm/_passes/decompose_rnn_pass.py:48
↓ 2 callersMethod_build_direction
Build LSTM cell computation for one direction. Returns (timestep_outputs, h_final, c_final).
backends/arm/_passes/decompose_lstm_pass.py:53
↓ 2 callersFunction_build_dq_q_graph
( input_tensor: torch.Tensor, dq_dtype: torch.dtype, q_dtype: torch.dtype, dq_scale: float,
backends/arm/test/passes/test_ioquantization_pass.py:88
↓ 2 callersMethod_build_fp_recipe
Build FP32/FP16 recipe
backends/apple/coreml/recipes/coreml_recipe_provider.py:236
↓ 2 callersMethod_build_linear_graph
Build a simple graph with a linear operation (no bias).
backends/cadence/aot/tests/test_quantizer_ops.py:280
↓ 2 callersMethod_build_matmul_graph
Build a simple graph with a matmul operation.
backends/cadence/aot/tests/test_quantizer_ops.py:258
↓ 2 callersMethod_build_op_wrappers
( edge_program: ExportedProgram, enable_tensor_dump: bool, op_package_infos: List[QnnE
backends/qualcomm/qnn_preprocess.py:48
↓ 2 callersMethod_build_pt2e_quantized_recipe
Build PT2E-based quantization recipe
backends/apple/coreml/recipes/coreml_recipe_provider.py:253
↓ 2 callersMethod_build_quantized_graph
Build a quantized graph through AnnotateQuantAttrs + FoldQDQ.
backends/qualcomm/tests/test_passes.py:28
↓ 2 callersFunction_build_rules
Two-rule selection: FULL_TENSOR on `l1`, STATS on `l2`.
devtools/intermediate_output_tap/tests/test_xnnpack_e2e.py:161
↓ 2 callersMethod_build_slot_variant
( self, builder: flatbuffers.Builder, slot: SlotVariant )
backends/mlx/serialization/mlx_graph_serialize.py:270
↓ 2 callersMethod_build_tensor_constant
( self, gm: torch.fx.GraphModule, node: fx.Node, const_val )
backends/qualcomm/_passes/lift_constant_scalar_operands.py:85
↓ 2 callersFunction_build_tensor_to_operators
( plan: ExecutionPlan, )
devtools/pte_tool/diff_pte.py:206
↓ 2 callersMethod_build_torchao_quantized_recipe
( self, recipe_type: RecipeType, is_per_channel: bool = True, weight_dtype: to
backends/xnnpack/recipes/xnnpack_recipe_provider.py:143
↓ 2 callersFunction_calculate_effective_kernel_shape
Calculate the reach of a kernel with respect to its shape and dilations. For example a [3, 3] kernel with dilations [2, 2] has effective shape of
backends/nxp/backend/ir/converter/conversion/translator.py:134
↓ 2 callersMethod_calibrate
Calibrate the model using either task-based evaluation or prompt-based inference. This method performs Post-Training Quantization (P
examples/qualcomm/oss_scripts/llama/wrappers/llm_wrappers.py:519
↓ 2 callersMethod_call_one
( self, text: Union[ TextInput, PreTokenizedInput, List[TextInput], List[PreTokeni
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:3087
↓ 2 callersFunction_can_skip_using_EDGE_DO_NOT_DECOMP
( partitioner: Partitioner, program: ExportedProgram )
exir/program/_program.py:1163
↓ 2 callersMethod_can_use_fused_rope
(params: ModelArgs)
backends/mlx/llm/et_attention.py:110
↓ 2 callersMethod_canonical_key
Returns a new Tosa_1_00 instance with only major.minor version and profiles (no extensions). Patch version is set to zero for normali
backends/arm/tosa/specification.py:371
↓ 2 callersFunction_canonicalize_graph_with_lowered_module
(gm, subgm_tag, compiler_specs)
backends/qualcomm/utils/utils.py:565
↓ 2 callersMethod_capture
Executes the graph module using IntermediateOutputCapturer and returns a mapping from debug_handle to a tuple of (module_path, output
examples/qualcomm/oss_scripts/llama/mix_precision_analyzer.py:159
↓ 2 callersMethod_capture_intermediate_outputs_and_check
( self, inputs: Tuple[torch.Tensor], ep: ExportedProgram, expected_intermediat
devtools/inspector/tests/intermediate_output_capturer_test.py:31
↓ 2 callersMethod_cast_to_float
Insert a cast from integer to float if the input is not floating-point.
backends/qualcomm/_passes/decompose_atan2.py:54
↓ 2 callersMethod_change_nchw_to_nhwc
Convert NCHW format to NHWC format.
backends/cadence/aot/replace_ops.py:1056
↓ 2 callersMethod_check
(self, out, ref, tol=0.15)
backends/cuda/tests/test_int4_dispatch.py:111
↓ 2 callersMethod_check_fully_partitioned
Check if the graph is fully partitioned (all operators have the same tag).
backends/apple/metal/tests/test_metal_partitioner.py:47
↓ 2 callersFunction_check_libs_in_ld
Check if each lib in `libnames` exists in LD_LIBRARY_PATH directories. Returns: all_present: True iff every lib was found lo
backends/qualcomm/scripts/download_qnn_sdk.py:646
↓ 2 callersFunction_check_math_invariant
(qspec: QuantizationSpecBase)
backends/qualcomm/quantizer/validators.py:314
↓ 2 callersMethod_check_named_data_entries
( self, reference: Dict[str, DataEntry], actual: Dict[str, DataEntry] )
extension/flat_tensor/test/test_serialize.py:97
↓ 2 callersFunction_check_scale_and_offset
( qspec: QuantizationSpecBase, scale: float, offset: int )
backends/qualcomm/quantizer/validators.py:318
↓ 2 callersFunction_check_shape_compatible
Check shape compatibility. Returns True if compatible, False if skipped. Raises RuntimeError if incompatible and skip_incompatible_shapes is Fals
extension/llm/export/quantize.py:106
↓ 2 callersFunction_check_symmetric
(qspec: QuantizationSpecBase)
backends/qualcomm/quantizer/validators.py:274
↓ 2 callersFunction_coerce_bytes
(data: Any)
exir/_serialize/_flatbuffer_program.py:77
↓ 2 callersFunction_collate_word_timestamps
( tokenizer, tokens, token_timestamps, language, return_language )
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_whisper.py:1360
↓ 2 callersFunction_collect_cast_dtypes
( pipeline: PassPipeline[tuple[torch.Tensor, ...]], )
backends/arm/test/passes/test_insert_data_layout_casts_pass.py:13
↓ 2 callersFunction_collect_cast_dtypes
(pipeline: PassPipeline[tensor_pair_t])
backends/arm/test/passes/test_promote_bool_operands_pass.py:19
↓ 2 callersFunction_collect_image_map
(root: Path)
examples/arm/super_resolution_example_vgf/model_export/common.py:126
↓ 2 callersFunction_compare_node_and_schema
(debug_event: DebugSchema, mocked_node)
backends/arm/test/misc/test_debug_hook.py:111
↓ 2 callersFunction_compile_spec_int16
()
backends/arm/test/passes/test_rewrite_conv_pass.py:68
↓ 2 callersMethod_compress
Compress ``(1, H, T, D)`` tensor to nibble-packed uint8 + bf16 norms. All ops are torch.export-compatible: norm, matmul, bucketize, bitwise.
extension/llm/modules/turboquant/kv_cache.py:101
↓ 2 callersMethod_compute_attention
Compute attention. Args: q (torch.Tensor): Query. k (torch.Tensor): Key. v (torch.Tensor): Value.
examples/models/llama/static_attention.py:1145
↓ 2 callersMethod_compute_inv_freq
Compute RoPE inverse-frequency table for this layer.
examples/models/gemma4_31b/model.py:274
↓ 2 callersFunction_compute_post_pad
( size: int, kernel: int, stride: int, pad: int, ceil_mode: bool, divisor_override, )
backends/arm/_passes/decompose_avg_pool2d_pass.py:40
↓ 2 callersFunction_concat_shape_nodes
(graph_module)
backends/arm/test/passes/test_fuse_consecutive_concat_shapes.py:64
↓ 2 callersFunction_concrete_int_values
(values: Sequence[int | torch.SymInt])
backends/arm/tosa/resize_utils.py:26
↓ 2 callersFunction_const_shape_values
(shape_list_nodes)
backends/arm/test/passes/test_fuse_consecutive_concat_shapes.py:73
↓ 2 callersFunction_convert_dataclass
(val: Any)
exir/_serialize/_flatbuffer_program.py:166
↓ 2 callersMethod_convert_id_to_token
(self, index: int)
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils.py:1010
↓ 2 callersMethod_convert_scalar_args
Convert scalar literal args of targeted_ops in node n of graph_module into attribute get_attr nodes with registered buffers.
backends/arm/_passes/scalars_to_attribute_pass.py:38
↓ 2 callersMethod_convert_to_mlmodel
Convert an ExportedProgram to a CoreML MLModel. Args: edge_program: The edge program to convert compile_spec
backends/apple/coreml/compiler/coreml_preprocess.py:513
↓ 2 callersMethod_convert_token_to_id_with_added_voc
(self, token: str)
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_fast.py:356
↓ 2 callersMethod_convert_token_to_id_with_added_voc
(self, token)
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils.py:645
↓ 2 callersMethod_convert_unpadded_2D
Convert the `aten.convolution` into TFLite. The `padding` and `builtin_options` must be converted by the caller.
backends/nxp/backend/ir/converter/node_converters/ops_converters/convolution_converter.py:190
↓ 2 callersFunction_core_aten_to_edge
( core_aten_exir_ep: ExportedProgram, edge_constant_methods: Optional[Dict[str, Any]] = None, edge
extension/export_util/utils.py:54
↓ 2 callersFunction_count_fake_quantize_modules
Count the number of FakeQuantizeBase modules in a model.
backends/apple/coreml/test/test_coreml_quantizer.py:42
↓ 2 callersFunction_count_nodes
(graph_module: torch.fx.GraphModule, target)
backends/arm/test/passes/test_remove_permutes_around_elementwise_tosa_ops.py:22
↓ 2 callersFunction_count_ops
(program: ExportedProgram)
backends/test/suite/reporting.py:283
↓ 2 callersFunction_create_aligned_byte_vector
(builder: Any, data: bytes, alignment: int)
exir/_serialize/_flatbuffer_program.py:67
↓ 2 callersMethod_create_builder
(self, config_name, calibration_data=None)
backends/openvino/tests/quantizer/test_llm_compression.py:109
↓ 2 callersFunction_create_causal_mask_for_attention_sink
Create causal mask for attention sink. Unlike regular ring buffer mask, this mask: 1. ALWAYS allows attending to sink tokens (positions
examples/models/llama/source_transformation/attention_sink.py:97
↓ 2 callersFunction_create_coreml_flow
( name: str, quantize: bool = False, minimum_deployment_target: Any = coremltools.target.iOS15, )
backends/test/suite/flows/coreml.py:10
↓ 2 callersFunction_create_default_partitioner
( compile_specs: List[CompileSpec] | None = None, )
backends/mlx/test/tester.py:22
↓ 2 callersFunction_create_default_partitioner
( minimum_deployment_target: Any = ct.target.iOS15, )
backends/apple/coreml/test/tester.py:24
↓ 2 callersMethod_create_emitter_output_with_external_tensor
Creates an EmitterOutput with an external tensor for testing.
exir/_serialize/test/test_serialize.py:76
↓ 2 callersFunction_create_empty_etrecord
()
exir/program/_program.py:317
↓ 2 callersFunction_create_example_inputs
Helper function to create random int8 example inputs.
backends/nxp/tests/ir/edge_passes/test_convert_reshaping_nodes_to_view.py:23
↓ 2 callersMethod_create_fake_tensor_for_node_args
( self, node_args: list[Node | None], mode: FakeTensorMode )
backends/nxp/aten_passes/convert_1d_conv_to_2d.py:233
↓ 2 callersMethod_create_map_impl_graph
Wrap a map body function in a map_impl graph.
backends/cadence/aot/tests/test_fusion_ops_passes.py:1303
↓ 2 callersMethod_create_mock_stage
(self, stage_type: StageType)
export/tests/test_export_session.py:41
↓ 2 callersMethod_create_node
( self, graph_module: torch.fx.GraphModule, node: torch.fx.node, target: torch
backends/qualcomm/_passes/insert_io_qdq.py:71
↓ 2 callersFunction_create_openvino_flow_base
( name: str, quantize_stage_factory: Optional[Callable[..., Quantize]] = None, )
backends/test/suite/flows/openvino.py:17
↓ 2 callersMethod_create_parameter_node_for_data
Create a parameter node in the graph, which contains the provided `data`.
backends/nxp/aten_passes/split_group_convolution.py:165
↓ 2 callersFunction_create_pt_model
( gguf_model_args: GGUFModelArgs, )
extension/gguf_util/converters/llama_converter.py:19
↓ 2 callersFunction_create_target_recipe
Create a combined recipe for a target. Args: target_config: Human-readable hardware configuration name recipes: List of back
export/target_recipes.py:25
↓ 2 callersFunction_create_vulkan_flow_base
( name: str, quantize_stage_factory: Callable[..., Quantize] | None = None )
backends/test/suite/flows/vulkan.py:14
↓ 2 callersFunction_dataclass_to_dict
(obj)
exir/serde/export_serialize.py:2320
↓ 2 callersMethod_decompose_sdpa_node
( self, graph_module: torch.fx.GraphModule, node: torch.fx.Node, allow_non_fak
backends/transforms/decompose_sdpa.py:150
↓ 2 callersFunction_dequant_matmul
Dequant INT4 weights to input dtype and call F.linear.
backends/cuda/int4_dispatch.py:56
↓ 2 callersMethod_dequeue_and_get_matches
Dequeues the longest accepted match starting at the first node of the queue, and returns all potential matches that were checked (rejected
backends/cortex_m/quantizer/pattern_matcher.py:148
↓ 2 callersMethod_detag_boundary_nodes
De-tag nodes at the partition boundary. Remove delegation tags from quantize nodes with inputs outside the partition and from dequant
backends/arm/tosa/partitioner.py:198
← previousnext →2,601–2,700 of 28,493, ranked by callers