MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 1 callersMethod_trace
( self, root: Callable[..., Value], concrete_args: Tuple[Value, ...], in_spec:
exir/tracer.py:493
↓ 1 callersMethod_translate_state_dict_for_text_model
(self)
examples/models/llava/model.py:106
↓ 1 callersMethod_transpose_dims
Helper function to transpose dims of a node.
backends/cadence/aot/replace_ops.py:1040
↓ 1 callersMethod_traverse
(self, node)
backends/qualcomm/_passes/fuse_consecutive_transpose.py:58
↓ 1 callersMethod_traverse
(self, node)
backends/qualcomm/_passes/fuse_consecutive_cast.py:83
↓ 1 callersMethod_traverse_binary_node
(self, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/reduce_dynamic_range.py:39
↓ 1 callersFunction_try_bench
Benchmark a backend, returning median us or None on failure.
backends/cuda/benchmarks/benchmark_sdpa.py:159
↓ 1 callersFunction_try_bench
(run_fn, args, num_warmup, num_iters)
backends/cuda/benchmarks/benchmark_moe.py:265
↓ 1 callersFunction_try_fuse_identity_pair
Try to fuse an R1->R2 identity pair. Returns True if fused.
backends/arm/_passes/fuse_consecutive_rescales_pass.py:135
↓ 1 callersMethod_try_remove_quantized_redundant_to_copy
Try to remove redundant to_copy operations in quantized graphs with pattern dq1 -> to_copy1 -> q1 -> dq2 -> to_copy2 -> q2
backends/xnnpack/_passes/remove_redundant_copy_pass.py:63
↓ 1 callersMethod_try_remove_regular_redundant_to_copy
Try to remove redundant regular to_copy operations with pattern to_copy1 -> to_copy2 with opposite memory formats
backends/xnnpack/_passes/remove_redundant_copy_pass.py:22
↓ 1 callersFunction_try_run
Run a backend, returning output or None on failure.
backends/cuda/benchmarks/benchmark_sdpa.py:151
↓ 1 callersFunction_typed_parametrize
(test_data: Dict[str, T])
backends/arm/test/passes/test_fuse_equal_placeholders_ops_pass.py:35
↓ 1 callersFunction_unlift
(gm, inp_pos_to_param_buffer_name, in_spec, out_spec, state_dict)
exir/capture/_unlift.py:19
↓ 1 callersMethod_unpack_conv_weights
Unpack quantized conv's packed arguments. Returns (weight_tensor, bias_tensor, packed_args).
backends/cadence/aot/fuse_ops.py:415
↓ 1 callersFunction_unpack_header
(header_bytes)
backends/mediatek/preprocess.py:57
↓ 1 callersFunction_unpack_q4_k
Unpack Q4_K super-blocks into an ``Int4Tensor``. Q4_K block layout (144 bytes per 256 values): - d (2B, fp16): super-block scale
examples/models/gemma4_31b/quant/gguf.py:39
↓ 1 callersFunction_unpack_q6_k
Unpack Q6_K super-blocks into an ``IntxUnpackedToInt8Tensor``. Q6_K block layout (210 bytes per 256 values): - ql (128B): lower 4 bits o
examples/models/gemma4_31b/quant/gguf.py:111
↓ 1 callersFunction_unravel_index
(flat_idx: int, sizes: List[int])
devtools/pte_tool/diff_pte.py:247
↓ 1 callersFunction_unsafe_adjust_original_program
Directly modify the original exported program's signature and state dict based on the consumed params/buffers in the delegate.
exir/lowered_backend_module.py:962
↓ 1 callersFunction_unstack_pytree
(xs)
exir/pass_base.py:76
↓ 1 callersMethod_update_and_return_float_values
(self, input_pos, k_val, v_val, indices=None)
examples/models/llama/source_transformation/custom_kv_cache.py:163
↓ 1 callersMethod_update_and_return_quantized_values
( self, input_pos, k_val, v_val, indices=None )
examples/models/llama/source_transformation/custom_kv_cache.py:205
↓ 1 callersFunction_update_attention_module_with_quantized_sdpa
( module: torch.nn.Module, kv_cache: QuantizedKVCache )
examples/models/llama/source_transformation/sdpa.py:204
↓ 1 callersMethod_update_graph_with_fused_params
Register fused params and update the graph to use them.
backends/cadence/aot/fuse_ops.py:294
↓ 1 callersMethod_update_k
(self, start_pos, value, scales, zero_points)
extension/llm/custom_ops/test_update_cache.py:65
↓ 1 callersMethod_update_kv_cache
Update KV cache. Args: new_ks (list): List of new keys. new_vs (list): List of new values. in_cache_state
examples/models/llama/static_attention.py:1123
↓ 1 callersMethod_update_lookahead_branches
Update the lookahead branches with new predictions.
examples/apple/coreml/llama/llama_transformer.py:785
↓ 1 callersMethod_update_meta
(self, node: torch.fx.node)
backends/qualcomm/_passes/i64_to_i32.py:112
↓ 1 callersMethod_update_node
(self, node: fx.Node, tensor_args: Dict)
backends/qualcomm/_passes/lift_constant_scalar_operands.py:118
↓ 1 callersFunction_update_output_node_and_specs
Update the output node and output specs in the exported program. In case a constant node is used as output, we replace it with a clone of the
exir/passes/constant_prop_pass.py:308
↓ 1 callersMethod_update_qparams_hardsigmoid
Returns quant_dict with scale and zp updated to match hardsigmoid activation. The quantized output from the hard sigmoid is defined
backends/cortex_m/passes/activation_fusion_pass.py:127
↓ 1 callersMethod_update_requantize_user
(self, node)
backends/qualcomm/_passes/convert_mha_to_sha.py:156
↓ 1 callersMethod_update_trie
(self, unique_no_split_tokens: Optional[str] = [])
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils.py:493
↓ 1 callersMethod_update_v
(self, start_pos, value, scales, zero_points)
extension/llm/custom_ops/test_update_cache.py:71
↓ 1 callersMethod_val_to_idtype
(self, v)
backends/mlx/builder/slot_manager.py:98
↓ 1 callersMethod_validate
Validate the configuration against supported Ethos-U settings.
backends/arm/ethosu/compile_spec.py:135
↓ 1 callersMethod_validate
Throws an error if the compile spec is not valid.
backends/arm/common/arm_compile_spec.py:174
↓ 1 callersMethod_validate
Ensure that no unsupported compiler flags were supplied.
backends/arm/tosa/compile_spec.py:25
↓ 1 callersMethod_validate_attention_sink
(self)
extension/llm/export/config/llm_config.py:219
↓ 1 callersMethod_validate_base_parameters
Validate minimum_deployment_target and compute_unit parameters
backends/apple/coreml/recipes/coreml_recipe_provider.py:154
↓ 1 callersFunction_validate_border
( border: Sequence[int | torch.SymInt], scale_ints: list[int], )
backends/arm/tosa/resize_utils.py:141
↓ 1 callersFunction_validate_calibration_sample
( calibration_sample: Tuple[torch.Tensor, ...], example_inputs: Tuple[torch.Tensor, ...], )
backends/arm/scripts/aot_arm_compiler.py:308
↓ 1 callersMethod_validate_codebook_parameters
Validate bits and block_size parameters for codebook recipe type
backends/apple/coreml/recipes/coreml_recipe_provider.py:192
↓ 1 callersFunction_validate_dimensions
( input_hw: Sequence[int | torch.SymInt], output_hw: Sequence[int | torch.SymInt] | None, )
backends/arm/tosa/resize_utils.py:42
↓ 1 callersFunction_validate_graph_signature
Validates that the graph signature is up to date with the graph.
backends/transforms/utils.py:224
↓ 1 callersMethod_validate_group_size_parameter
Validate group_size parameter for applicable recipe types
backends/apple/coreml/recipes/coreml_recipe_provider.py:170
↓ 1 callersFunction_validate_inplace_mapping
Validate that `inplace_op` is a plausible in-place form of `functional_op`. Raises `ValueError` on misregistration. Two checks: 1. **Sc
exir/passes/reinplace.py:156
↓ 1 callersFunction_validate_inputs
(q, k, v, g, beta, initial_state)
backends/cuda/triton/kernels/chunk_gated_delta_rule.py:53
↓ 1 callersFunction_validate_ios_version
()
extension/llm/export/partitioner_lib.py:106
↓ 1 callersMethod_validate_lookahead_config
Validate the lookahead decoding configuration.
examples/apple/coreml/llama/llama_transformer.py:693
↓ 1 callersMethod_validate_low_bit
(self)
extension/llm/export/config/llm_config.py:875
↓ 1 callersMethod_validate_match
Returns a PatternMatchResult when the pattern structurally matches, with status indicating accept/reject. Returns None if there is no
backends/cortex_m/quantizer/pattern_matcher.py:55
↓ 1 callersFunction_validate_memory_planning_is_done
Validate whether the memory planning has been done on the given program.
util/activation_memory_profiler.py:100
↓ 1 callersFunction_validate_module_name
Validate that module name is not a reserved name.
devtools/etrecord/_etrecord.py:636
↓ 1 callersFunction_validate_no_meta
Ensure all parameters have been loaded.
examples/models/gemma4_31b/gguf_loader.py:85
↓ 1 callersFunction_validate_offset
( offset: Sequence[int | torch.SymInt], scale_ints: list[int], )
backends/arm/tosa/resize_utils.py:118
↓ 1 callersFunction_validate_output_shape
( input_hw: Sequence[int | torch.SymInt], output_hw: Sequence[int | torch.SymInt] | None, scale: S
backends/arm/tosa/resize_utils.py:173
↓ 1 callersFunction_validate_pair_shapes
( lr_tensor: torch.Tensor, hr_tensor: torch.Tensor, upscale: int, )
examples/arm/super_resolution_example_vgf/model_export/common.py:169
↓ 1 callersMethod_validate_partitioner_parameters
Validate partitioner parameters
backends/qualcomm/recipes/qnn_recipe_provider.py:99
↓ 1 callersMethod_validate_pattern
Make sure the `pattern` is valid according to the limitations of the `PatternMatcher`. If it isn't, exit with error and a corresponding messag
backends/nxp/backend/ir/neutron_ir_post_processing/pattern_matcher.py:569
↓ 1 callersMethod_validate_preprocessing_output
Validate the output format of preprocessing(). Ensures the preprocessed mapping follows the expected format: Dict[Tuple[DebugHandle,
devtools/inspector/numerical_comparator/numerical_comparator_base.py:113
↓ 1 callersMethod_validate_qmode
(self)
extension/llm/export/config/llm_config.py:440
↓ 1 callersFunction_validate_quantized_sdpa_params
( query, key, value, start_pos, seq_len, attn_mask, drpout_p, is_causal, s
extension/llm/custom_ops/custom_ops.py:274
↓ 1 callersMethod_validate_recipe_kwargs
(self, recipe_type: RecipeType, **kwargs: Any)
backends/xnnpack/recipes/xnnpack_recipe_provider.py:176
↓ 1 callersMethod_validate_recipe_kwargs
Validate kwargs for each recipe type
backends/apple/coreml/recipes/coreml_recipe_provider.py:114
↓ 1 callersMethod_validate_recipe_kwargs
Validate kwargs for each recipe type
backends/qualcomm/recipes/qnn_recipe_provider.py:56
↓ 1 callersFunction_validate_ref_impl_exists
Validates that all registered meta kernels have corresponding reference implementations. This is called at module initialization time after b
backends/cadence/aot/ops_registrations.py:35
↓ 1 callersFunction_validate_resize_mode
(resize_mode: str)
backends/arm/tosa/dialect/ops/resize.py:22
↓ 1 callersFunction_validate_scale
( scale: Sequence[int | torch.SymInt], tosa_spec: TosaSpecification, )
backends/arm/tosa/resize_utils.py:70
↓ 1 callersMethod_validate_soc_parameter
Validate soc_model parameter
backends/qualcomm/recipes/qnn_recipe_provider.py:80
↓ 1 callersMethod_validate_tensor_indices
(indices)
backends/arm/_passes/decompose_index_tensor_to_gather_pass.py:184
↓ 1 callersFunction_validate_tq4_inputs
Validate tensor shapes, dtypes, and device for tq4_sdpa.
backends/cuda/triton/kernels/tq4_sdpa.py:568
↓ 1 callersFunction_validate_tq4_mask
Validate attention mask for tq4_sdpa.
backends/cuda/triton/kernels/tq4_sdpa.py:603
↓ 1 callersMethod_verify_build
(self)
backends/mlx/builder/program_builder.py:636
↓ 1 callersMethod_verify_cat_nop_memory_alloc
(self, node: torch.fx.Node)
backends/cadence/aot/tests/test_memory_passes.py:160
↓ 1 callersFunction_verify_extraction
Check if extraction succeeded and log contents.
backends/qualcomm/scripts/download_qnn_sdk.py:322
↓ 1 callersFunction_verify_graph_match
Verify if every debug handle in edge dialect program has a corresponding node.
devtools/inspector/_inspector_utils.py:1165
↓ 1 callersMethod_verify_select_nop_memory_alloc
(self, node: torch.fx.Node)
backends/cadence/aot/tests/test_memory_passes.py:210
↓ 1 callersMethod_verify_slice_nop_memory_alloc
(self, node: torch.fx.Node)
backends/cadence/aot/tests/test_memory_passes.py:185
↓ 1 callersMethod_violates_exact_constraint
Performs a Vela compilation of a permute with given shape, permutation and dtype to check wheter it is supported.
backends/arm/_passes/decompose_permute_for_u55_pass.py:107
↓ 1 callersFunction_walk_to_downstream_quants
Walk forward through transparent ops collecting downstream quant nodes. Returns True if all paths end at a quant node.
backends/cadence/aot/compiler_funcs.py:470
↓ 1 callersMethod_weights_are_params
Check that the weights for conv and batchnorm are both get_attr nodes.
backends/cadence/aot/fuse_ops.py:253
↓ 1 callersMethod_write_identifier
Write the magic file identifier.
devtools/etrecord/_etrecord.py:177
↓ 1 callersFunction_write_init_files
(repo_root: Path)
exir/_serialize/generate_program.py:110
↓ 1 callersFunction_write_param_or_buffer
Overwrite the placeholder backing `node` with `value`. Returns True on success. Handles the three writable placeholder kinds: parameters, lif
backends/cadence/aot/quantizer/passes/fuse_ops.py:52
↓ 1 callersFunction_yarn_find_correction_range
( low_rot, high_rot, dim, base, max_position_embeddings )
examples/mediatek/aot_utils/llm_utils/utils.py:655
↓ 1 callersFunction_yarn_get_softmax_scale
(config, scaling_factor)
examples/mediatek/aot_utils/llm_utils/utils.py:679
↓ 1 callersFunction_yarn_linear_ramp_mask
(min_val, max_val, dim)
examples/mediatek/aot_utils/llm_utils/utils.py:670
↓ 1 callersFunctionadapt_return_value
Adapt return value from a ScratchTensorMetadata to a TensorSpec
exir/operator/manip.py:56
↓ 1 callersMethodaddSrcAndYamlFiles
(self, src_dir_paths: List[str])
backends/vulkan/runtime/gen_vulkan_spv.py:698
↓ 1 callersFunctionadd_custom_pattern
Add a custom regex pattern to the pattern map.
examples/raspberry_pi/pico2/pte_to_array.py:99
↓ 1 callersMethodadd_discard_ops
Specifies OpOverloads to exclude from quantization.
backends/qualcomm/quantizer/quantizer.py:528
↓ 1 callersFunctionadd_export_args
Add common export arguments for Whisper scripts.
backends/mlx/examples/whisper/args.py:22
↓ 1 callersFunctionadd_fake_tensor_to_node
(padding_node, input_shape, padding_args, dtype)
backends/qualcomm/_passes/recompose_pad_maxpool2d.py:19
↓ 1 callersFunctionadd_hydra_config_args
Breaks down the config file path into directory and filename, resolves the directory to an absolute path, and adds the --config_path and
extension/llm/export/export_llm.py:67
↓ 1 callersFunctionadd_model_info_to_auto_map
Adds the information of the repo_id to a given auto map.
examples/mediatek/aot_utils/llm_utils/tokenizers_/utils.py:55
↓ 1 callersFunctionadd_model_info_to_custom_pipelines
Adds the information of the repo_id to a given custom pipeline.
examples/mediatek/aot_utils/llm_utils/tokenizers_/utils.py:69
↓ 1 callersFunctionadd_qnn_python_path
()
backends/qualcomm/quantizer/backend_opinfo_adapter.py:26
↓ 1 callersMethodadd_quantizer
Insert a quantizer with highest precedence.
backends/arm/quantizer/arm_quantizer.py:1154
← previousnext →6,801–6,900 of 28,493, ranked by callers