MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 1 callersFunction_replace_kv_cache_with_ring_kv_cache
(attention, layer_size)
examples/models/llama/source_transformation/custom_kv_cache.py:649
↓ 1 callersFunction_replace_layer_forward
Replace Gemma4DecoderLayer's forward to remove mask parameters.
examples/models/gemma4_31b/mlx_source_transformations.py:102
↓ 1 callersFunction_replace_linear_8da4w_for_lora
( module: torch.nn.Module, checkpoint: Any, lora_rank: int, )
examples/models/llama/source_transformation/lora.py:88
↓ 1 callersFunction_replace_linear_with_linear_8da4w_for_pre_quantization
( module: torch.nn.Module, checkpoint: Any, group_size: int, precision: torch.dtype, scale
examples/models/llama/source_transformation/pre_quantization.py:25
↓ 1 callersFunction_replace_maskdecoder_with_custom_op
(module: torch.nn.Module)
examples/qualcomm/oss_scripts/efficientSAM/source_transformation/mask_decoder.py:109
↓ 1 callersFunction_replace_mha_with_inference_mha
(module: torch.nn.Module)
extension/llm/modules/attention.py:379
↓ 1 callersFunction_replace_model_forward
Replace the top-level Gemma4_31B forward with a sampler-free, mask-free ``(tokens, input_pos) → (B, 1, V)`` variant. MLX samples on the host,
examples/models/gemma4_31b/mlx_source_transformations.py:126
↓ 1 callersMethod_replace_node_with_triton
Replace an edge dialect node with a Triton kernel call. Args: graph_module: The graph module containing the node
backends/cuda/triton/replacement_pass.py:144
↓ 1 callersFunction_replace_output_linear_with_linear_int8_for_pre_quantization
( module: torch.nn.Module, checkpoint: Any, dtype: torch.dtype, )
examples/models/llama/source_transformation/pre_quantization.py:89
↓ 1 callersFunction_replace_pos_emb_with_custom_op
(module: torch.nn.Module)
examples/qualcomm/oss_scripts/efficientSAM/source_transformation/pos_emb.py:44
↓ 1 callersFunction_replace_rope
( module: torch.nn.Module, rope_with_attention_sink: RopeWithAttentionSink )
examples/models/llama/source_transformation/attention_sink.py:299
↓ 1 callersFunction_replace_sdpa_with_custom_op
( module: torch.nn.Module, use_attention_mask: bool = False )
examples/models/llama/source_transformation/sdpa.py:75
↓ 1 callersFunction_replace_sdpa_with_quantized_sdpa
(module: torch.nn.Module)
examples/models/llama/source_transformation/sdpa.py:214
↓ 1 callersMethod_replace_split_with_slices
(self, input_node, split_node, starts, ends, dim)
backends/nxp/aten_passes/decompose_split_to_slices_pass.py:131
↓ 1 callersFunction_replicate_chose_qparam_nodes_for_q_dq
( gm: torch.fx.GraphModule, chose_qparams_node, get_item_node_1, get_item_node_2 )
backends/transforms/duplicate_dynamic_quant_chain.py:51
↓ 1 callersFunction_replicate_node_for_each_user
(gm: torch.fx.GraphModule, node: torch.fx.Node)
backends/transforms/duplicate_dynamic_quant_chain.py:108
↓ 1 callersFunction_repo_root
()
exir/_serialize/generate_program.py:33
↓ 1 callersMethod_requantize_fused_weight
Requantize the fused weight with the original quantization params.
backends/cadence/aot/fuse_ops.py:484
↓ 1 callersFunction_require_cuda
(tc: unittest.TestCase)
backends/cuda/tests/test_sdpa_splitk_replacement.py:22
↓ 1 callersMethod_require_ptq_algo
(self)
backends/openvino/quantizer/quantizer.py:146
↓ 1 callersMethod_rescale_cond_submodules
(self, node: Node, graph_module: GraphModule)
backends/arm/_passes/insert_rescales_pass.py:604
↓ 1 callersMethod_rescale_inputs
(self, graph, node, rescale_qargs: Dict[int, QuantArgs])
backends/arm/_passes/insert_rescales_pass.py:309
↓ 1 callersMethod_rescale_outputs
(self, graph, node, rescale_qargs: Optional[QuantArgs])
backends/arm/_passes/insert_rescales_pass.py:347
↓ 1 callersMethod_rescale_while_submodules
(self, node: Node, graph_module: GraphModule)
backends/arm/_passes/insert_rescales_pass.py:619
↓ 1 callersMethod_reset_parameters
(self)
examples/models/efficient_sam/efficient_sam_core/two_way_transformer.py:222
↓ 1 callersFunction_reshape_add_singleton
(rng: random.Random, shape: list[int])
backends/arm/test/misc/test_high_rank_permute_view_invariants.py:67
↓ 1 callersMethod_reshape_w_node_to_2d
(self, node: Node)
backends/nxp/aten_passes/convert_1d_conv_to_2d.py:207
↓ 1 callersMethod_reshape_weight
(self, graph_module, weight_node, dq_node)
backends/qualcomm/_passes/convert_linear_to_conv2d.py:80
↓ 1 callersMethod_resize_global_position_embedding
Interpolates the global position embedding for a vision encoder to accommodate new grid dimensions. The embedding dimension is not ch
extension/llm/modules/_position_embeddings.py:487
↓ 1 callersMethod_resize_local_position_embedding
Interpolates the local position embedding for a vision encoder to accommodate a different number of tokens per tile. This is the only
extension/llm/modules/_position_embeddings.py:419
↓ 1 callersMethod_resize_position_embedding
Interpolates positional embeddings to accomodate a different max_num_tiles. These are the only dimensions that changes during interpo
extension/llm/modules/_position_embeddings.py:131
↓ 1 callersMethod_resolve_artifact_dir
(self)
backends/test/suite/conftest.py:67
↓ 1 callersFunction_resolve_cache_layer_idx
Map a transformer layer index to the backing cache slot index. Hybrid/shared-KV models like Gemma 4 only allocate cache entries for
backends/mlx/llm/hf_attention.py:144
↓ 1 callersFunction_resolve_existing_elf_path
(elf_candidates: Iterable[Path])
backends/arm/test/runner_utils.py:930
↓ 1 callersFunction_resolve_glibc_loader
Return staged ld.so path if available.
backends/qualcomm/scripts/download_qnn_sdk.py:455
↓ 1 callersFunction_resolve_tied_lm_head
Handle tied embed/lm_head after streaming all tensors.
examples/models/gemma4_31b/gguf_loader.py:67
↓ 1 callersFunction_resolve_w4_group_size
(linear, group_size)
examples/models/qwen3_5_moe/export.py:483
↓ 1 callersFunction_restore_delegates
Find and replace the Program's references to these segments, inlining the data. Args: program: The Program holding non-inlined delega
exir/_serialize/_program.py:595
↓ 1 callersFunction_restore_named_data
Moves named data from `segments` and `program` into the NamedDataStoreOutput class. Args: program: The Program holding named data ref
exir/_serialize/_program.py:652
↓ 1 callersFunction_restore_segments
Moves segments from `segment_data` into `program`. This should recreate the original Program that the segments were extracted from. Args
exir/_serialize/_program.py:679
↓ 1 callersFunction_restore_transformed_ops_to_aten_ops
(program: ExportedProgram)
exir/program/_program.py:977
↓ 1 callersMethod_rewire_and_collect_erase
Replace BN output with the dequantized conv output and queue the intermediate ops for deletion.
backends/cadence/aot/quantizer/passes/fuse_ops.py:359
↓ 1 callersFunction_rewrite_imports
Rewrite flatc imports to the in-tree package path. flatc derives the import path from the namespace declaration (executorch_flatbuffer). Modi
exir/_serialize/generate_program.py:54
↓ 1 callersMethod_rewrite_non_constant_pad
( self, input_tensor, pad: Sequence[int], mode: str, meta, )
backends/arm/_passes/rewrite_pad.py:124
↓ 1 callersMethod_rewrite_output_arg
( self, arg: Any, graph_module: torch.fx.GraphModule )
backends/arm/_passes/normalize_delegate_io_layout_pass.py:79
↓ 1 callersFunction_run_audio_pipeline
Run speech_transform + audio_encoder. Returns (audio_out, num_tokens, t_st_ms, t_ae_ms, audio_duration_s).
examples/models/gemma4/run_gemma4.py:108
↓ 1 callersFunction_run_cpp_runner
(runner_path, pte_path, ptd_path, input_files, output_base)
backends/cuda/tests/test_tq4_sdpa.py:790
↓ 1 callersFunction_run_cpp_runner
(runner_path, pte_path, ptd_path, input_files, output_base)
backends/cuda/tests/test_fused_moe.py:204
↓ 1 callersFunction_run_cpp_runner
Run executor_runner and return subprocess result.
backends/cuda/tests/test_chunk_gated_delta_rule.py:173
↓ 1 callersFunction_run_cpp_runner
Run executor_runner and return subprocess result.
backends/cuda/tests/test_topk.py:129
↓ 1 callersMethod_run_custom
Run our speech transform model.
examples/models/gemma4/tests/test_speech_transform.py:43
↓ 1 callersFunction_run_eager
Loop-based eager MoE — correctness reference only (not benchmarked).
backends/cuda/benchmarks/benchmark_moe.py:90
↓ 1 callersFunction_run_flatc
(repo_root: Path)
exir/_serialize/generate_program.py:41
↓ 1 callersFunction_run_flatc
Runs the `flatc` command with the provided args. If a resource matching _FLATC_RESOURCE_NAME exists, uses that executable. Otherwise, expects
backends/arm/test/runner_utils.py:700
↓ 1 callersMethod_run_guards
(self)
exir/passes/replace_view_copy_with_view_pass.py:196
↓ 1 callersMethod_run_hf
Run HF _extract_spectrogram directly and return spectrogram as tensor.
examples/models/gemma4/tests/test_speech_transform.py:30
↓ 1 callersFunction_run_model
(model: torch.nn.Module, out_dir: str)
backends/arm/test/misc/test_reshape_permute_5d_regression.py:73
↓ 1 callersMethod_run_model_with_recipe
( self, model_name: str, recipe_key: str, eager_model: nn.Module, exam
export/tests/test_target_recipes.py:415
↓ 1 callersFunction_run_non_delegated_executorch_program
( model, test_dir, test_name, calibration_dataset_dir, testing_dataset_dir, input_spec
backends/nxp/tests/nsys_testing.py:147
↓ 1 callersFunction_run_pte
(et_program, example_inputs: tuple[Any, ...])
devtools/intermediate_output_tap/_convenience.py:98
↓ 1 callersFunction_run_test_in_subprocess
Run a single test in an isolated subprocess. Each test gets its own Python interpreter so torch/MLX/Metal memory is fully released betwe
backends/mlx/test/run_all_tests.py:160
↓ 1 callersFunction_run_triton
( hidden_states, w1, w1_scale, w2, w2_scale, topk_weights, topk_ids, top_k,
backends/cuda/benchmarks/benchmark_moe.py:189
↓ 1 callersFunction_run_vision_pipeline
Run vision_encoder. Returns (vision_out, num_tokens, t_ve_ms).
examples/models/gemma4/run_gemma4.py:155
↓ 1 callersMethod_sa_block
( self, x: torch.Tensor, k_cache: torch.Tensor, v_cache: torch.Tensor,
examples/qualcomm/oss_scripts/moshi/model/static_mimi.py:324
↓ 1 callersFunction_sanity_check_graph_for_non_decomp_ops
( name: str, program: ExportedProgram, ops_set_to_not_decompose, check_op_support, generat
exir/program/_program.py:1031
↓ 1 callersFunction_save_bpte_program
( exec_prog, original_model: torch.nn.Module, output_name: str, example_inputs: Tuple[torch.Te
backends/arm/scripts/aot_arm_compiler.py:714
↓ 1 callersFunction_save_bundled_program
Serialize a bundled program to disk.
backends/arm/scripts/aot_arm_compiler.py:75
↓ 1 callersMethod_save_edge_dialect_program
Save the edge dialect program to the ETRecord zip file.
devtools/etrecord/_etrecord.py:297
↓ 1 callersMethod_save_graph_map
Save graph map if present.
devtools/etrecord/_etrecord.py:195
↓ 1 callersMethod_save_logits_quant_attrs
(self)
examples/qualcomm/oss_scripts/llama/wrappers/llm_wrappers.py:353
↓ 1 callersMethod_save_metadata
Save debug maps, reference outputs, and other metadata.
devtools/etrecord/_etrecord.py:210
↓ 1 callersMethod_save_model_and_expected_output
( self, module: torch.nn.Module, buffer: exir.ExirExportedProgram, inputs: Tup
backends/qualcomm/tests/utils.py:276
↓ 1 callersMethod_save_model_and_inputs
(self, save_dir)
backends/samsung/test/utils/runtime_executor.py:174
↓ 1 callersFunction_save_model_as_json
Save the graphs stored in the `cur_config` in JSON format, which can be loaded by the Model Explorer GUI. :param cur_config: ModelExplorerConfig
devtools/visualization/visualization_utils.py:150
↓ 1 callersMethod_save_new_const_tensor
Saves a new constant tensor to the constant buffer and returns the buffer idx
exir/emit/_emitter.py:389
↓ 1 callersMethod_save_output_kv_cache_quant_attrs
(self)
examples/qualcomm/oss_scripts/llama/wrappers/llm_wrappers.py:367
↓ 1 callersMethod_save_pretrained
Save a tokenizer using the slow-tokenizer/legacy format: vocabulary + added tokens. Fast tokenizers can also be saved in a unique JSON file c
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:2683
↓ 1 callersMethod_save_programs
Save exported program and edge dialect program(s).
devtools/etrecord/_etrecord.py:181
↓ 1 callersFunction_save_tensor
(t, path)
backends/cuda/tests/test_tq4_sdpa.py:779
↓ 1 callersFunction_save_tensor
(t, path)
backends/cuda/tests/test_fused_moe.py:152
↓ 1 callersFunction_save_tensor
(t, path)
backends/cuda/tests/test_chunk_gated_delta_rule.py:121
↓ 1 callersFunction_save_tensor
(t, path)
backends/cuda/tests/test_topk.py:77
↓ 1 callersFunction_scalar_type_str
(scalar_type: ScalarType)
exir/print_program.py:46
↓ 1 callersFunction_selected_ops_model_dict_is_empty
(model_dict: Dict[str, Any])
codegen/tools/gen_all_oplist.py:75
↓ 1 callersMethod_serialize
( self, executorch_program: Union[ ExecutorchProgram, ExecutorchProgra
backends/cadence/runtime/executor.py:193
↓ 1 callersFunction_serialize_from_etdump_to_json
(etdump: ETDumpFlatCC)
devtools/etdump/serialize.py:31
↓ 1 callersMethod_serialize_int48
(values: np.ndarray)
backends/arm/test/misc/test_process_node.py:46
↓ 1 callersFunction_serialize_params
(params: dict[str, Any] | None)
backends/test/suite/reporting.py:351
↓ 1 callersFunction_serialize_to_flatbuffer
Serializes a FlatTensor to a flatbuffer and returns the serialized data.
extension/flat_tensor/serialize/serialize.py:49
↓ 1 callersFunction_set_8da4w_computation_dtype
Recursively iterate through the module and set the precision attributes of all Int8DynActInt4WeightLinears.
examples/models/llama/source_transformation/quantize.py:888
↓ 1 callersMethod_set_alloc_node_spec
Pass for setting all of the alloc node's specs. These nodes are created in the ToOutVarPass but do not have a spec. TODO(shu
exir/passes/memory_planning_pass.py:180
↓ 1 callersMethod_set_disallow_tfa_for_nodes
Populate `disallow_tfa` metadata for each FX node. Transform-for-annotation passes inspect this flag to decide whether they may trans
backends/arm/quantizer/arm_quantizer.py:906
↓ 1 callersMethod_set_model_specific_special_tokens
Sets model specific tokens. Adds new special tokens to the "SPECIAL_TOKENS_ATTRIBUTES" list which will be part of "self.special_token
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:1236
↓ 1 callersFunction_set_pack_alignments
(tensor_alignment: int, delegate_alignment: int)
exir/_serialize/_flatbuffer_program.py:122
↓ 1 callersFunction_set_param_gm
Set or create a parameter on a GraphModule using get_attr nodes. If node_or_name is a Node, updates the existing parameter tensor. If node_or
backends/transforms/quantize_fused_convbn_bias_pass.py:109
↓ 1 callersMethod_set_requires_grad_false
(self, model: torch.nn.Module)
examples/models/llama3_2_vision/text_decoder/test/test_text_decoder.py:45
↓ 1 callersMethod_setup_cuda_environment_for_fatbin
Configure CUDA environment variables based on detected CUDA version and GPU architecture. These are needed to compile fatbin kernels
backends/cuda/cuda_backend.py:176
↓ 1 callersMethod_setup_lookahead_mask
Set up the attention mask for lookahead decoding and log debug information.
examples/apple/coreml/llama/llama_transformer.py:708
↓ 1 callersFunction_shape_label
(shape)
backends/cuda/benchmarks/benchmark_sdpa.py:172
↓ 1 callersMethod_shape_to_stride
( values_shape: Sequence[int], )
backends/arm/_passes/decompose_index_tensor_to_gather_pass.py:173
← previousnext →6,601–6,700 of 28,493, ranked by callers