MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 3 callersMethod_prepare_dummy_model
(self)
examples/models/llama/tests/test_pre_quantization_transforms.py:29
↓ 3 callersFunction_prepare_schema
Returns the path to the program schema file after copying it and its deps into out_dir. May patch the schema contents depending on the parameters
exir/_serialize/_flatbuffer.py:174
↓ 3 callersMethod_preprocess
Lower an exported program to a TOSA flatbuffer. Apply Arm transformation passes to ``edge_program``, then walk the transformed FX gra
backends/arm/tosa/backend.py:172
↓ 3 callersFunction_print_slot_map
Print a list of slot-variant dicts with their type names.
backends/mlx/pte_inspector.py:535
↓ 3 callersFunction_program_to_json
Returns the JSON representation of the given Program.
exir/_serialize/_program.py:84
↓ 3 callersFunction_read_f16
Read fp16 field from block bytes, return float32.
examples/models/gemma4_31b/quant/gguf.py:34
↓ 3 callersFunction_reference_moe
Reference MoE implementation in eager PyTorch (no quantization).
backends/cuda/tests/test_fused_moe.py:77
↓ 3 callersMethod_remove_tensor_with_name_from_collection
Find and remove a tensor with given 'name' from given 'collection'.
backends/nxp/backend/ir/converter/builder/model_builder.py:780
↓ 3 callersFunction_rename
(arg_name, values)
exir/serde/export_serialize.py:2592
↓ 3 callersFunction_render_manifest
(entries: dict[str, dict[str, str]])
backends/arm/scripts/generate_public_api_manifest.py:112
↓ 3 callersMethod_rescale_submodule_outputs
Insert rescales at the outputs of `submodule` to match the qparams outside the submodule. Matching the correct qparams gets a bit tricky:
backends/arm/_passes/insert_rescales_pass.py:532
↓ 3 callersMethod_resolve_reference_graph
Resolve the reference graph module to use for AOT operations. This method centralizes the logic for determining which graph module t
devtools/inspector/_inspector.py:1172
↓ 3 callersFunction_reverse_map
(d: Dict[Any, Enum])
exir/serde/export_serialize.py:128
↓ 3 callersFunction_roundtrip_cosine
Update cache and measure roundtrip quality via cosine similarity. Reconstructs from the returned packed/norms using the test's own decompress
extension/llm/modules/test/test_turboquant_kv_cache.py:35
↓ 3 callersFunction_run
(cmd, cwd=None)
examples/qualcomm/custom_op/custom_ops_1.py:73
↓ 3 callersFunction_run
(cmd, cwd=None)
examples/qualcomm/custom_op/custom_ops_2.py:79
↓ 3 callersFunction_run_delegated_executorch_program
( model, test_dir, test_name, calibration_dataset_dir, testing_dataset_dir, input_spec
backends/nxp/tests/nsys_testing.py:64
↓ 3 callersMethod_run_mem_planning
( self, program: ExportedProgram, memory_planning: MemoryPlanningAlgo, state:
backends/cadence/aot/tests/test_memory_passes.py:1212
↓ 3 callersMethod_run_once
( self, model: Callable[..., Any], tokens: Union[List[int], torch.Tensor], non
examples/models/llama/static_attention.py:617
↓ 3 callersFunction_run_pre_rewrite_passes
(exported_program: torch.export.ExportedProgram)
backends/arm/test/passes/test_rewrite_conv_pass.py:101
↓ 3 callersFunction_run_pybind
Run loaded pybind module with CUDA inputs (automatically moved to CPU).
backends/cuda/tests/test_triton_sdpa_nan.py:135
↓ 3 callersFunction_run_uint8_io_numeric_pipeline
( # noqa: C901 pipeline, model, calib_input, calib_other )
backends/arm/test/passes/test_ioquantization_pass.py:459
↓ 3 callersMethod_save_exported_program
Save an exported program to the ETRecord zip file.
devtools/etrecord/_etrecord.py:276
↓ 3 callersFunction_save_to_pte
Lower and save an ExportedProgram to a .pte file.
backends/mlx/examples/whisper/export_whisper.py:558
↓ 3 callersMethod_scale_tensor
(self, tensor, min_value, max_value, scale=True)
extension/llm/custom_ops/test_quantized_sdpa.py:50
↓ 3 callersMethod_separate_heads
(self, x: Tensor, num_heads: int)
examples/models/efficient_sam/efficient_sam_core/two_way_transformer.py:238
↓ 3 callersMethod_serialize_with_alignment
(self, config: FlatTensorConfig)
extension/flat_tensor/test/test_serialize.py:113
↓ 3 callersFunction_set_branch_calibration_samples
( pipeline, module: torch.nn.Module, example_inputs: tuple )
backends/arm/test/ops/test_cond.py:219
↓ 3 callersFunction_set_device_on_spec
Set the device attribute on a TensorSpec.
exir/passes/propagate_device_pass.py:87
↓ 3 callersFunction_set_param_ep
Set or create a parameter in an exported program. If node_or_name is a Node, updates the existing parameter or constant value. If node_or_nam
backends/transforms/quantize_fused_convbn_bias_pass.py:25
↓ 3 callersFunction_sig_decl_wrapper
A wrapper function to basically get `sig.decl(include_context=True)`. For ATen kernel, the codegen has no idea about ET contextArg, so we
codegen/gen.py:82
↓ 3 callersFunction_slopes_power_of_2
(n: int)
examples/models/voxtral_tts/model.py:1020
↓ 3 callersFunction_spec_str
(type_char, n: int)
extension/pytree/test/test.py:33
↓ 3 callersFunction_sqrt
(graph: "fx.Graph", x: "fx.Node")
devtools/intermediate_output_tap/_reducers.py:113
↓ 3 callersFunction_submodules_fully_partitioned
Returns whether the submodule arguments to a cond node were fully partitioned. Updates "val" meta of the submodules if they are.
backends/arm/operator_support/control_flow_support.py:59
↓ 3 callersMethod_switch_to_input_mode
Private method to put the tokenizer in input mode (when it has different modes for input/outputs).
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:4225
↓ 3 callersFunction_table_name_to_opcode
Convert table name like 'AddNode' to opcode like 'ADD'. Uses regex-based camelCase → UPPER_SNAKE_CASE conversion with a small override dict f
backends/mlx/serialization/generate.py:1050
↓ 3 callersFunction_tensor
(values)
backends/arm/test/ops/test_log1p.py:22
↓ 3 callersFunction_tensor_to_numpy
(tensor: torch.Tensor)
backends/arm/process_node.py:31
↓ 3 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_mul.py:37
↓ 3 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_avg_pool2d.py:40
↓ 3 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_add.py:37
↓ 3 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_permute.py:29
↓ 3 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_sub.py:37
↓ 3 callersMethod_test_check_quant_message
(self, ep_modifier, expected_message)
backends/xnnpack/test/ops/test_check_quant_params.py:51
↓ 3 callersMethod_test_duplicate_chain
( self, model, example_inputs, quantizer, before_node_occurrences,
backends/transforms/test/test_duplicate_dynamic_quant_chain.py:49
↓ 3 callersMethod_test_linear_overwrite_precision
This test is to test the overwrite precision of linear op. We will test partitioning, lowering, and running the quantized linear mode
backends/xnnpack/test/ops/test_linear.py:446
↓ 3 callersMethod_test_manual_dq_linear
( self, mod: torch.nn.Module, inputs: Tuple[torch.Tensor], weight_groupwise: b
backends/apple/mps/test/test_mps_linear.py:493
↓ 3 callersMethod_test_mean_dim
(self, inputs, dims=(-1, -2))
backends/xnnpack/test/ops/test_mean_dim.py:33
↓ 3 callersMethod_test_tile_crop
(self, image: torch.Tensor, expected_shape: Tuple[int])
extension/llm/custom_ops/test_preprocess_custom_ops.py:23
↓ 3 callersMethod_to_backend_index
WARNING: this will be deprecated once all the codegen places know how to handle ETKernelIndex.
codegen/model.py:189
↓ 3 callersMethod_to_bool
(self, value: Argument, default: bool)
backends/cortex_m/passes/quantized_op_fusion_pass.py:217
↓ 3 callersMethod_transform
(self, graph_module: GraphModule)
backends/qualcomm/_passes/qnn_pass_manager.py:155
↓ 3 callersFunction_unpack_two_uint8
( tensor: torch.Tensor, )
examples/models/llama/experimental/subclass.py:64
↓ 3 callersMethod_unwrap_argument
(self, arg: Argument)
backends/cortex_m/passes/quantized_op_fusion_pass.py:212
↓ 3 callersFunction_update_exported_program_graph_module
( exported_program: ExportedProgram, gm: torch.fx.GraphModule, override_verifiers: None | list[Typ
exir/program/_program.py:279
↓ 3 callersMethod_validate_new_tensor_name
Take tensor name 'name' and make it unique in the model. Returns a unique tensor name.
backends/nxp/backend/ir/converter/builder/model_builder.py:732
↓ 3 callersFunctionactivation_supported_on_target
This function determines if the current NeutronSoftware properly supports an activation operator represented by the given node. :param node: The
backends/nxp/backend/neutron_operator_support.py:88
↓ 3 callersFunctionadd_constant_data
Adds the provided constant data blobs to the program.
exir/_serialize/test/test_program.py:54
↓ 3 callersMethodadd_context
(self, key: str, value: Any)
export/stages.py:42
↓ 3 callersFunctionadd_delegate_data
Adds the provided delegate data blobs to the execution plan.
exir/_serialize/test/test_program.py:60
↓ 3 callersFunctionadd_quantization_args
(parser: argparse.ArgumentParser)
backends/mlx/llm/quantization.py:22
↓ 3 callersMethodadd_tokens
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 i
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:1033
↓ 3 callersMethodadopt_hf_rope
(self)
examples/models/llama/static_attention.py:1473
↓ 3 callersMethodannotate_layout
( self, node: torch.fx.Node, graph_module: torch.fx.GraphModule, revert_layout )
backends/qualcomm/_passes/layout_transform.py:295
↓ 3 callersFunctionannotate_matmul
(node: Node, quantization_config: QuantizationConfig)
backends/qualcomm/quantizer/custom_annotation.py:109
↓ 3 callersMethodany_is_empty
(self)
backends/vulkan/utils.py:1255
↓ 3 callersFunctionappend_qdq
( graph_module: torch.fx.GraphModule, node: torch.fx.Node, qdq_node: torch.fx.Node, )
backends/qualcomm/_passes/utils.py:279
↓ 3 callersFunctionapply_exir_ops_passes
( opt_level: int, edge_prog_manager: EdgeProgramManager, edge_passes_config: Optional[EdgePassesCo
backends/cadence/aot/passes.py:103
↓ 3 callersFunctionapply_linear_quantization
Apply TorchAO dynamic quantization to Linear layers. Uses the shared quantize_model_() from extension/llm/export/quantize.py.
examples/models/gemma4/quant_utils.py:41
↓ 3 callersFunctionapply_nncf_data_aware_compression
Applies NNCF data-aware weight compression to the exported LLM graph. Uses the builder's tokenizer and calibration prompt to generate token-l
backends/openvino/quantizer/llm_compression.py:70
↓ 3 callersFunctionapply_rotary_emb
Apply rotary position embeddings. q, k: (B, T, n_heads, head_dim). freqs: (T, head_dim//2). Uses reshape+unbind (export-friendly, avoids st
examples/models/voxtral_realtime/model.py:112
↓ 3 callersMethodapply_rotary_pos_emb_mtk
(self, q, k, cos, sin)
examples/mediatek/models/llm_models/modeling_common.py:114
↓ 3 callersMethodassert_delegated
(self, model, input_shape, mocker, use_qat=False)
backends/nxp/tests/ir/converter/node_converter/test_constant_pad_nd_converter.py:227
↓ 3 callersMethodassert_etrecord_has_no_executorch_program
Assert that ETRecord has no executorch program data.
devtools/etrecord/tests/etrecord_test.py:81
↓ 3 callersMethodassert_sync_contraints
(self)
backends/vulkan/utils.py:1455
↓ 3 callersFunctionbubble_error
Bubble a routine's error status up to the program status.
scripts/check_binary_dependencies.py:286
↓ 3 callersFunctionbuffer_scalar_type
(dtype: str)
backends/vulkan/runtime/gen_vulkan_spv.py:163
↓ 3 callersFunctionbuild_efficient_sam
(encoder_patch_embed_dim, encoder_num_heads, checkpoint=None)
examples/models/efficient_sam/efficient_sam_core/efficient_sam.py:240
↓ 3 callersMethodcall
(self, graph_module: torch.fx.GraphModule)
backends/transforms/postpone_permute_below_squeeze_view.py:192
↓ 3 callersMethodcall
(self, graph_module: torch.fx.GraphModule)
backends/cadence/aot/replace_ops.py:2057
↓ 3 callersMethodcall_operator
(self, op, args, kwargs, meta)
backends/arm/_passes/decompose_grouped_conv_pass.py:243
↓ 3 callersMethodcall_operator
(self, op, args, kwargs, meta, updated=False)
backends/arm/_passes/rewrite_pad.py:147
↓ 3 callersMethodcall_operator
(self, op, args, kwargs, meta)
backends/arm/_passes/decompose_permute_for_u55_pass.py:325
↓ 3 callersFunctioncanonical_path
(path: Union[str, Path], *, dir: bool = False)
examples/models/llama/export_llama_lib.py:634
↓ 3 callersFunctioncanonicalize_delegate_indices
Returns a copy of the program with the backend delegate data list in a predictable order.
exir/_serialize/test/test_program.py:84
↓ 3 callersMethodcheckNotDestroyed
()
extension/android/executorch_android/src/main/java/org/pytorch/executorch/training/TrainingModule.java:50
↓ 3 callersFunctioncheck_if_intermediate_outputs_match
Checks if the actual outputs match the expected outputs for the specified model. Returns True if all outputs match, otherwise returns False.
devtools/inspector/tests/inspector_test_utils.py:148
↓ 3 callersFunctioncheck_outputs_equal
Helper function that checks if model output and reference output are equal with some tolerance. Returns True if equal, False otherwise.
backends/vulkan/test/utils.py:485
↓ 3 callersMethodcheck_tensor_layout
( self, expected: Optional[TensorLayout], actual: Optional[TensorLayout] )
extension/flat_tensor/test/test_serialize.py:88
↓ 3 callersFunctionclean_test_outputs
Clean up generated test output files. Args: test_names: Optional list of test names to clean. If None, cleans all tests. ver
backends/mlx/test/test_utils.py:668
↓ 3 callersFunctioncompare_output_arrays
Assert that the provided numpy arrays are equal. :param tfl_output: Numpy array holding the output of the TFLite model. :param edge_output: N
backends/nxp/tests/executors.py:183
↓ 3 callersMethodcompare_results
Check if tensors in result dirs corresponds. Directory with CPU results is taken as a reference for compared binary files. Result dir
backends/nxp/tests/model_output_comparator.py:22
↓ 3 callersMethodcompare_with_actual
Compare actual outputs with expected outputs. Args: actual_output_path: Path to the actual output file. use_
backends/mlx/test/test_utils.py:951
↓ 3 callersFunctionconfig_dict
()
examples/models/gemma4_31b/tests/test_pipeline.py:100
↓ 3 callersFunctioncontiguous_stride_from_shape
(shape: torch.Size)
exir/tensor.py:38
↓ 3 callersMethodconvert_added_tokens
Convert added tokens.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:2470
↓ 3 callersMethodconvert_to_tensors
Convert the inner content to tensors. Args: tensor_type (`str` or [`~utils.TensorType`], *optional*): The type of
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:686
↓ 3 callersMethodcopy_dsinfo_btw_specs
(self, src_spec: TensorSpec, dst_spec: TensorSpec)
exir/passes/dynamic_shape_prop_pass.py:85
↓ 3 callersFunctioncount_ops
(program: dict[str, ExportedProgram] | ExportedProgram)
backends/test/suite/reporting.py:293
← previousnext →1,901–2,000 of 28,493, ranked by callers