Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/executorch
/ functions
Functions
28,493 in github.com/pytorch/executorch
⨍
Functions
28,493
◇
Types & classes
6,584
↳
Endpoints
346
↓ 1 callers
Method
_get_slice_sizes
(weight_node, groups, transposed)
backends/arm/_passes/decompose_grouped_conv_pass.py:90
↓ 1 callers
Method
_get_slices_args
(self, split_node: Node)
backends/nxp/aten_passes/decompose_split_to_slices_pass.py:108
↓ 1 callers
Method
_get_softmax_replacement
(self, args, meta)
backends/cortex_m/passes/quantized_op_fusion_pass.py:149
↓ 1 callers
Function
_get_source_transforms
Return a list of functions that transform a graph. Args: dtype_override: The dtype to use for the model. checkpoint: Path to
examples/models/llama/export_llama_lib.py:1666
↓ 1 callers
Method
_get_spatial_dims
Extract spatial dimensions from the node's input shape. Returns a list with [N, H, W] (or equivalent for other ranks).
backends/nxp/backend/ir/converter/node_converters/ops_converters/softmax_converter.py:32
↓ 1 callers
Function
_get_special_dtype
(qspec: QuantArgs)
backends/arm/_passes/fold_qdq_with_annotated_qparams_pass.py:36
↓ 1 callers
Method
_get_split_sizes
For split_with_sizes, return the slice dim and extent for each split.
backends/cadence/aot/replace_ops.py:2180
↓ 1 callers
Function
_get_static_int8_linear_qconfig
()
backends/apple/coreml/test/tester.py:34
↓ 1 callers
Function
_get_strided_slice_copy_decomposition
Return the operator overloads used by this decomposition.
backends/arm/_passes/decompose_strided_slice_copy_pass.py:14
↓ 1 callers
Function
_get_subclass_inserter
( weight_map: Dict[str, ReaderTensor] )
examples/models/llama/experimental/load_gguf_q4_0.py:62
↓ 1 callers
Method
_get_submod
( self, gm: torch.fx.GraphModule, node: torch.fx.Node )
backends/qualcomm/_passes/decompose_wrap_with_autocast.py:25
↓ 1 callers
Method
_get_submodule_qconfig
Retrieves the `ModuleQConfig` for a given node by matching the first applicable callable function in the `submodule_qconfig_list`. Yo
backends/qualcomm/quantizer/quantizer.py:495
↓ 1 callers
Function
_get_sum_decomp
(op)
backends/arm/_passes/decompose_sum_pass.py:14
↓ 1 callers
Function
_get_supported_avg_pool2d_acc_types
( tosa_spec: TosaSpecification, )
backends/arm/tosa/dialect/ops/avg_pool2d.py:36
↓ 1 callers
Function
_get_supported_config_and_operators
()
backends/xnnpack/quantizer/xnnpack_quantizer.py:191
↓ 1 callers
Function
_get_supported_symmetric_config_and_operators
()
backends/xnnpack/quantizer/xnnpack_quantizer.py:89
↓ 1 callers
Function
_get_target_name
Retrieve a string representation of a node target.
backends/test/suite/reporting.py:271
↓ 1 callers
Function
_get_test_seed
(test_base_name: str)
backends/test/suite/runner.py:68
↓ 1 callers
Method
_get_to_kwargs
(self, *args, **kwargs)
examples/models/llama/experimental/subclass.py:190
↓ 1 callers
Method
_get_topologically_last_node
Return the node from `nodes` which appears last in the graph.
backends/nxp/aten_passes/split_gru_based_on_num_layers.py:63
↓ 1 callers
Method
_get_torch_ao_qspec_from_nncf_config_for_ptq
Returns a TorchAO QuantizationSpec based on NNCF quantization point. :param qp: Quantization point from NNCF. :return: A Tor
backends/openvino/quantizer/quantizer.py:550
↓ 1 callers
Method
_get_torch_ao_qspec_from_nncf_config_for_wc
Returns a TorchAO QuantizationSpec based on NNCF weight compression parameter. :param wc_param: NNCF Weight compression parameters f
backends/openvino/quantizer/quantizer.py:498
↓ 1 callers
Function
_get_tosa_avg_pool2d_node
( pipeline: PassPipeline[input_t], )
backends/arm/test/passes/test_rewrite_avg_pool2d_pass.py:90
↓ 1 callers
Function
_get_tosa_max_pool2d_node
( pipeline: PassPipeline[input_t], )
backends/arm/test/passes/test_rewrite_max_pool2d_pass.py:82
↓ 1 callers
Method
_get_tosa_op
(self)
backends/arm/operators/op_tosa_conv2d.py:34
↓ 1 callers
Method
_get_tosa_op
(self)
backends/arm/operators/op_tosa_transpose_conv2d.py:33
↓ 1 callers
Method
_get_total_spatial_size
Calculate total spatial size (product of all spatial dimensions).
backends/nxp/backend/ir/converter/node_converters/ops_converters/softmax_converter.py:45
↓ 1 callers
Function
_get_training_metadata
(methods: Dict[str, ExportedProgram])
exir/emit/_emit_program.py:92
↓ 1 callers
Function
_get_transformed_op
(op_aten)
exir/program/_program.py:994
↓ 1 callers
Function
_get_transparent_ops
Ops that only reshape/index data without changing values. Safe to pass uint8 data through these.
backends/cadence/aot/compiler_funcs.py:431
↓ 1 callers
Method
_get_transpose_conv2d_replacement
Transform aten.convolution with transposed=True to cortex_m.quantized_transpose_conv2d
backends/cortex_m/passes/convert_to_cortex_m_pass.py:286
↓ 1 callers
Method
_get_type_tuples
( self, inputs: Dict[str, List[BaseArg]] )
exir/dialects/edge/dtype/runner.py:52
↓ 1 callers
Method
_get_types
Given inputs, return a list of argument types.
exir/dialects/edge/dtype/runner.py:26
↓ 1 callers
Function
_get_unfold_copy_decomposition
Returns the decomposition of the given aten.unfold_copy operation into its equivalent TOSA-supported operations. Returns: A tuple of
backends/arm/_passes/decompose_unfold_to_gather_pass.py:20
↓ 1 callers
Method
_get_unified_scales_root_quantizer_id
Identifies the earliest quantizer node ID based on the corresponding `nncf_node.node_id` in the given NNCFGraph. This is required by
backends/openvino/quantizer/quantizer.py:370
↓ 1 callers
Function
_get_updated_range_constraints
(gm)
exir/program/_program.py:134
↓ 1 callers
Method
_get_val_dataset
(self, dataset_path, data_size, tokenizer)
examples/mediatek/aot_utils/oss_utils/utils.py:87
↓ 1 callers
Method
_get_val_dataset
(self, dataset_path, data_size, tokenizer)
examples/qualcomm/utils.py:218
↓ 1 callers
Method
_get_validated_qparams
(self, node, input_node)
backends/cortex_m/passes/activation_fusion_pass.py:56
↓ 1 callers
Method
_get_violating_combinations
( cls, effective_shape: Sequence[int], rank: int, combination_len: int )
backends/arm/_passes/decompose_permute_for_u55_pass.py:196
↓ 1 callers
Function
_get_vkml_runtime_env
Return an environment with the Vulkan runtime variables needed for VKML.
backends/arm/test/runner_utils.py:641
↓ 1 callers
Method
_get_voice_dataset
( cls, data_size: int, data_dir: str, labels: List[str], fixed_token_num: int )
examples/samsung/scripts/wav2letter.py:39
↓ 1 callers
Method
_get_weight_deps
( self, node: torch.fx.Node, ep: ExportedProgram, precision: ConfigPrecisionType )
backends/xnnpack/partition/config/gemm_configs.py:147
↓ 1 callers
Method
_get_weight_qargs
(self, node: fx.Node)
backends/arm/operator_support/convolution_support.py:62
↓ 1 callers
Function
_get_weight_qspec
( dtype, is_symmetric, is_per_channel, is_qat, quant_min=None, quant_max=None )
backends/samsung/quantizer/qconfig.py:82
↓ 1 callers
Method
_get_weight_quant_params
Extract quantization parameters from the weight tensor. Returns (per_tensor_quantization, dtype, scale, zero_point, axis).
backends/cadence/aot/fuse_ops.py:433
↓ 1 callers
Function
_get_where_scalar_other_decomposition
Return the operator overloads used to decompose where.ScalarOther to where.self. Raises: RuntimeError: If the provided operator is no
backends/arm/_passes/decompose_where_scalar_other_pass.py:13
↓ 1 callers
Function
_get_xnnpack_partitioners
Get XNNPACK partitioners for multimethod export.
examples/models/llama/export_llama_lib.py:1287
↓ 1 callers
Function
_graph_has_unsupported_patterns
(program: torch.export.ExportedProgram)
backends/test/suite/runner.py:50
↓ 1 callers
Function
_graph_module_with_flat_concat
()
backends/arm/test/passes/test_fuse_consecutive_concat_shapes.py:45
↓ 1 callers
Function
_graph_module_with_nested_concat
()
backends/arm/test/passes/test_fuse_consecutive_concat_shapes.py:20
↓ 1 callers
Method
_graph_uses_edge_ops
(self, graph: torch.fx.Graph)
backends/arm/_passes/insert_int32_casts_after_int64_placeholders.py:72
↓ 1 callers
Method
_handle_channels_first_input_and_formatless_output
( self, perm_dict, node, t_op, ops )
backends/nxp/backend/ir/converter/node_converters/ops_converters/permute_copy_converter.py:152
↓ 1 callers
Method
_handle_channels_first_input_and_output
( self, perm_dict, node, t_op, ops )
backends/nxp/backend/ir/converter/node_converters/ops_converters/permute_copy_converter.py:222
↓ 1 callers
Method
_handle_control_flow_node
Fold outmost quant nodes inside submodule. placeholders => qs => dqs => ... => qs => dqs => output becomes placeholders => dq
backends/arm/_passes/fold_qdq_with_annotated_qparams_pass.py:204
↓ 1 callers
Method
_handle_formatless_input_and_channels_first_output
( self, perm_dict, node, t_op, ops )
backends/nxp/backend/ir/converter/node_converters/ops_converters/permute_copy_converter.py:187
↓ 1 callers
Method
_handle_formatless_input_and_output
( self, perm_dict, node, t_op, ops )
backends/nxp/backend/ir/converter/node_converters/ops_converters/permute_copy_converter.py:288
↓ 1 callers
Function
_handle_int_enum
(name, ty)
exir/serde/schema_check.py:85
↓ 1 callers
Method
_handle_node_which_can_use_any_node_format
Function for assigning format to nodes that don't care about format (Softmax, Abs). It stays formatless if there is no surrounding ch
backends/nxp/backend/node_format_inference.py:246
↓ 1 callers
Method
_handle_node_which_uses_channels_first_format
Function for assigning format to nodes that require channels first input (Conv, MaxPool etc.)
backends/nxp/backend/node_format_inference.py:209
↓ 1 callers
Function
_handle_struct
(name, ty)
exir/serde/schema_check.py:88
↓ 1 callers
Function
_handle_submodule
Apply algo to nodes in a submodule of the graph module.
exir/memory_planning.py:1263
↓ 1 callers
Function
_handle_union
(name, ty)
exir/serde/schema_check.py:91
↓ 1 callers
Method
_has_blocking_user
(self, node: fx.Node, users: Iterable[fx.Node])
backends/aoti/passes/replace_view_copy_with_view.py:53
↓ 1 callers
Method
_has_duplicate_resolved_sources
Return True if two cat inputs resolve to the same underlying tensor.
backends/cadence/aot/memory_constraints.py:455
↓ 1 callers
Method
_has_int32_rescale_user
(self, node: torch.fx.Node)
backends/arm/_passes/rewrite_conv_pass.py:331
↓ 1 callers
Method
_has_multi_node_pattern
(self)
backends/cortex_m/quantizer_reporter.py:251
↓ 1 callers
Method
_has_rsqrt_ancestor
Check if one of mul_node's args is an rsqrt node (possibly through casts).
backends/vulkan/patterns/rms_norm.py:191
↓ 1 callers
Function
_has_supported_memory_format
The node can either represent an `aten.clone` or a `dim_order_ops._clone_dim_order` operator.
backends/nxp/backend/ir/converter/node_converters/ops_converters/clone_converter.py:23
↓ 1 callers
Method
_has_unaligned_cat_tensors
Return True if any non-placeholder cat tensor has misaligned offset.
backends/cadence/aot/memory_constraints.py:476
↓ 1 callers
Function
_hash_schema
(s)
exir/serde/schema_check.py:193
↓ 1 callers
Function
_hf_to_model_key
(hf_key: str)
examples/models/gemma4_31b/model.py:587
↓ 1 callers
Method
_identify_norm_mul_and_weight
From mul(norm_cast, weight_cast), unwrap casts and find the underlying norm-mul node and the weight source node.
backends/vulkan/patterns/rms_norm.py:170
↓ 1 callers
Method
_identify_rsqrt_and_input
From mul(x, rstd), find the rsqrt node and the input x. The rsqrt may be wrapped in a cast node.
backends/vulkan/patterns/rms_norm.py:200
↓ 1 callers
Function
_import_cmsis_nn
()
backends/cortex_m/test/misc/test_cmsis_pybind.py:12
↓ 1 callers
Function
_import_fused_deltanet_decode
()
backends/cuda/tests/test_fused_deltanet_decode.py:28
↓ 1 callers
Function
_import_sdpa
()
backends/cuda/tests/test_triton_sdpa_splitk.py:33
↓ 1 callers
Function
_import_sdpa
()
backends/cuda/tests/test_triton_sdpa.py:30
↓ 1 callers
Function
_import_splitk
()
backends/cuda/tests/test_triton_sdpa_splitk.py:27
↓ 1 callers
Method
_include_sym_size_nodes_in_partitions
Include sym_size nodes in partitions when any of their users are in the partition. This is a workaround for the dynamic shapes bug w
backends/mlx/partitioner.py:191
↓ 1 callers
Method
_indent_block
(self, text: str, prefix: str)
backends/cortex_m/quantizer_reporter.py:261
↓ 1 callers
Function
_infer_w4_group_size
Infer quantization group size from the weight's metadata. For prequantized bundles, the weight may be a torchao AffineQuantizedTensor whose b
examples/models/qwen3_5_moe/export.py:469
↓ 1 callers
Method
_init_cache
(self)
examples/models/llama/source_transformation/test_quantized_kv_cache.py:20
↓ 1 callers
Method
_init_cache
(self)
examples/models/llama/source_transformation/test_sdpa_with_quantized_kv_cache.py:23
↓ 1 callers
Method
_init_kv_cache
Initialize KV cache (only for non-shared layers).
examples/models/llama/attention.py:472
↓ 1 callers
Method
_init_missing_parameters
Initialize any parameters that weren't loaded from checkpoint. Note: RMSNorm weights are initialized to zeros (offset convention) and
examples/models/gemma4/text_decoder/gemma4_model.py:86
↓ 1 callers
Method
_init_norms
Initialize QK normalization layers.
examples/models/llama/attention.py:424
↓ 1 callers
Method
_init_projections
Initialize Q/K/V/O projection layers.
examples/models/llama/attention.py:448
↓ 1 callers
Method
_init_qk_norms
(self, config: ModelArgs, is_kv_shared_layer: bool)
examples/models/llama/static_attention.py:899
↓ 1 callers
Method
_init_random_weights
Initialize model with random weights for testing.
examples/models/gemma4/text_decoder/gemma4_model.py:94
↓ 1 callers
Method
_init_runner_base_cmd
If a runner cmd could be shared across all EvalBase class, place it here to reduce redundant code.
examples/qualcomm/oss_scripts/llama/decoder_runtime_evaluator.py:126
↓ 1 callers
Function
_init_subclass_registry
Lazily populate the registry on first use.
examples/models/qwen3_5_moe/quantize_and_save.py:50
↓ 1 callers
Method
_init_wo
(self, config: ModelArgs)
examples/models/llama/static_attention.py:879
↓ 1 callers
Function
_inject_fast_hadamard_transform_cuda_for_spin_quant
SpinQuant needs two Hadmard matrixes: R3 and R4. Here we are only injecting R4 in the feed forward layer. R3 needs to be injected as well whe
examples/models/llama/source_transformation/spin_quant.py:21
↓ 1 callers
Function
_inject_fast_hadamard_transform_native_for_spin_quant
SpinQuant needs two Hadmard matrixes: R3 and R4. Here we are only injecting R4 in the feed forward layer. R3 needs to be injected as well whe
examples/models/llama/source_transformation/spin_quant.py:59
↓ 1 callers
Function
_inplace_lineage
Walk the graph backwards to see if output_arg is ultimately the same as an input.
exir/passes/insert_write_back_for_buffers_pass.py:82
↓ 1 callers
Method
_insert
(self, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/insert_requantize.py:96
↓ 1 callers
Function
_insert_bias_add_after_denorm
Inserts linear bias application after the denormalization node.
backends/nxp/aten_passes/simulated_linear_bn_fusion_passes/add_simulated_linear_bn_fusion_qat_pass.py:121
↓ 1 callers
Method
_insert_callsite_i32_to_i64_casts
If an operator requires int64 inputs but dtype propagation (via call_operator) produced int32, insert a local int32→int64 cast at the
backends/arm/_passes/insert_int32_casts_after_int64_placeholders.py:41
↓ 1 callers
Method
_insert_clone
( self, graph_module: torch.fx.GraphModule )
backends/qualcomm/tests/utils.py:878
← previous
next →
6,101–6,200 of 28,493, ranked by callers