MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 2 callersFunctionexecute_cmd
(cmd, cwd=".")
backends/nxp/tests/nsys_testing.py:608
↓ 2 callersFunctionexecute_runner
(runner_class: Type[LlamaRunner])
examples/models/llama/runner/eager.py:95
↓ 2 callersFunctionexport_all
(llava_model: LlavaModel)
examples/models/llava/export_llava.py:202
↓ 2 callersFunctionexport_model_to_vulkan
( model, sample_inputs, sample_kwargs=None, dynamic_shapes=None, operator_blocklist=None,
backends/vulkan/test/utils.py:321
↓ 2 callersFunctionexport_processor
Export a WhisperAudioProcessor to a .pte file. Args: output_file: Output .pte file path. backend: Backend for partitioning ("xnnp
extension/audio/mel_spectrogram.py:238
↓ 2 callersFunctionextents_are_valid
(extents: ImageExtents, limits: ImageExtents)
backends/vulkan/utils.py:764
↓ 2 callersFunctionexternal_constants_pass
Move all non-lifted constants to external file. NOTE: Lifted constants are not moved as they are closer to code than data.
exir/passes/external_constants_pass.py:28
↓ 2 callersMethodextractBackendAndQuantization
(final String model)
extension/benchmark/android/benchmark/app/src/main/java/org/pytorch/minibench/BenchmarkMetric.java:64
↓ 2 callersFunctionextract_alignment
(schema: bytes, marker: bytes)
exir/_serialize/_flatbuffer.py:205
↓ 2 callersFunctionextract_extension
(path: str)
backends/vulkan/runtime/gen_vulkan_spv.py:519
↓ 2 callersFunctionextract_filename
(path: str, keep_ext: bool = True)
backends/vulkan/runtime/gen_vulkan_spv.py:512
↓ 2 callersFunctionextract_input
(node: torch.fx.Node)
exir/verification/verifier.py:192
↓ 2 callersFunctionextract_input_quant_params_from_graph
Extract quantization parameters from the FX graph for model inputs.
backends/cadence/aot/compiler_funcs.py:204
↓ 2 callersFunctionextract_io_quant_params
Returns quantization parameters such as scale/zero_point: { "inputs": { <placeholder_name>: {"scale": float, "zero_point"
exir/passes/quantize_io_pass.py:327
↓ 2 callersFunctionextract_return_dtype
Extract the dtype from a return value.
exir/dialects/edge/dtype/utils.py:16
↓ 2 callersFunctionextract_time
(data)
extension/llm/custom_ops/spinquant/third-party/FFHT/gen.py:717
↓ 2 callersFunctionfill_tensor_info
(info, qnn_tensors, category)
examples/qualcomm/util_scripts/cli.py:84
↓ 2 callersFunctionfill_tensor_info
(info, qnn_tensors, category)
examples/qualcomm/qaihub_scripts/utils/export.py:49
↓ 2 callersMethodfilter_tosa_compile_specs
Extract the TOSA-specific settings from a composite compile spec. Args: compile_spec (ArmCompileSpec): Compile specification that
backends/arm/tosa/backend.py:414
↓ 2 callersFunctionfind_executorch_root
Find the executorch root directory.
backends/mlx/test/test_utils.py:478
↓ 2 callersFunctionfind_model_converter_binary
Return the path/name of the first model converter executable found.
backends/arm/vgf/model_converter.py:16
↓ 2 callersFunctionfind_multiple
(n: int, k: int)
examples/apple/coreml/llama/llama_transformer.py:31
↓ 2 callersMethodfind_nodes
(self, model: GraphModule)
backends/cortex_m/quantizer/node_finders.py:111
↓ 2 callersMethodfind_nodes
(self, model: GraphModule)
backends/cortex_m/quantizer/node_finders.py:149
↓ 2 callersFunctionfind_sequential_partitions_aten
( gm: torch.fx.GraphModule, partition_types: List[Any], )
backends/cadence/aot/quantizer/utils.py:251
↓ 2 callersMethodfind_total_for_module
Returns the total average compute time of all operators within the specified module. Args: module_name: Name of the modu
devtools/inspector/_inspector.py:1502
↓ 2 callersMethodfn
(x)
backends/test/harness/tester.py:147
↓ 2 callersMethodfold_and_annotate_arg
( self, graph_module: GraphModule, node: Node, arg_list: list[Node], i: int )
backends/arm/_passes/fold_qdq_with_annotated_qparams_pass.py:194
↓ 2 callersMethodformatMessage
(int errorCode, String details)
extension/android/executorch_android/src/main/java/org/pytorch/executorch/ExecutorchRuntimeException.java:129
↓ 2 callersFunctionformatPrompt
(text: string)
examples/demo-apps/react-native/rnllama/app/index.tsx:96
↓ 2 callersMethodforward
(self, x)
exir/backend/test/test_compatibility.py:33
↓ 2 callersMethodforward
(self, *args, **kwargs)
backends/test/facto/test_facto.py:99
↓ 2 callersMethodforward
(self, x, y)
backends/arm/test/ops/test_mm.py:34
↓ 2 callersMethodforward
(self, input: torch.Tensor, labels: torch.Tensor)
examples/llm_pte_finetuning/training_lib.py:50
↓ 2 callersMethodforward
( self, q: torch.Tensor, k: torch.Tensor, freqs_cos: torch.Tensor, fre
examples/models/llama/rope.py:344
↓ 2 callersMethodforward
( self, input_pos: torch.Tensor, q: torch.Tensor, # Already have rotary embeddings. (
examples/models/llama/attention.py:133
↓ 2 callersMethodforward
(self, x, aspect_ratio)
extension/llm/modules/test/test_position_embeddings.py:120
↓ 2 callersMethodforward
The forward function takes the input image and applies the convolutional layers and the fully connected layers to extract the
extension/training/examples/CIFAR/model.py:37
↓ 2 callersFunctionforward_and_save
( models, hidden_state, cache, mask, pos_emb, model_input_dict, num_blocks_per_chu
examples/mediatek/model_export_scripts/gemma.py:201
↓ 2 callersFunctionforward_and_save
( models, hidden_state, cache, mask, pos_emb, model_input_dict, num_blocks_per_chu
examples/mediatek/model_export_scripts/llama.py:201
↓ 2 callersFunctionforward_and_save
( models, hidden_state, cache, mask, pos_emb, model_input_dict, num_blocks_per_chu
examples/mediatek/model_export_scripts/phi.py:201
↓ 2 callersFunctionforward_and_save
( models, hidden_state, cache, cross_cache, mask, pos_emb, model_input_dict, n
examples/mediatek/model_export_scripts/whisper.py:239
↓ 2 callersFunctionforward_and_save
( models, hidden_state, cache, mask, pos_emb, model_input_dict, num_blocks_per_chu
examples/mediatek/model_export_scripts/qwen.py:201
↓ 2 callersMethodforward_layers
(self, h: torch.Tensor)
examples/models/voxtral_tts/model.py:718
↓ 2 callersMethodfromBlobUnsigned
Creates a new Tensor instance with dtype torch.uint8 with specified shape and data as array of bytes. @param data Tensor elements @param shape Tensor
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Tensor.java:143
↓ 2 callersMethodfrom_config
Load a named config variant (e2b, e4b).
examples/models/gemma4/text_decoder/gemma4_config.py:196
↓ 2 callersMethodfrom_custom_kv_cache
( cls, kv_cache, sliding_window_size, )
examples/models/llama/source_transformation/custom_kv_cache.py:631
↓ 2 callersMethodfrom_dict
(cls, d)
backends/apple/coreml/compiler/enumerated_shape_utils.py:80
↓ 2 callersMethodfrom_exported_program
( cls, ep, enumerated_shapes, *, ignore_range_constraints=_IGNORE_RANG
backends/apple/coreml/compiler/enumerated_shape_utils.py:190
↓ 2 callersFunctionfrom_float
Quantize similar to GGUF's Q4_0 quantization. Group into size of 32 and generate a uint8 tensor. One group will result into 18 uint8s con
examples/models/llama/experimental/subclass.py:85
↓ 2 callersMethodfrom_hf_checkpoint
(model_dir, max_seq_len=4096)
examples/models/qwen3_5_moe/model.py:684
↓ 2 callersMethodfrom_hf_config
(config_path: str)
examples/models/gemma4_31b/model.py:163
↓ 2 callersMethodfrom_hf_config
(config_path)
examples/models/qwen3_5_moe/model.py:69
↓ 2 callersMethodfrom_json
Load config from JSON file.
examples/models/gemma4/text_decoder/gemma4_config.py:125
↓ 2 callersMethodfrom_node
(node: torch.fx.Node)
backends/arm/debug/schema.py:34
↓ 2 callersMethodfrom_quantized_kv_cache
( cls, kv_cache, sliding_window_size, )
examples/models/llama/source_transformation/custom_kv_cache.py:482
↓ 2 callersMethodfrom_session
(cls, session: TestSessionState)
backends/test/suite/reporting.py:240
↓ 2 callersMethodfrom_shape_and_range_constraints
(cls, shape, range_constraints=None)
backends/apple/coreml/compiler/enumerated_shape_utils.py:49
↓ 2 callersMethodgen_build_graph_fn
(self, include_declarations: bool = False)
backends/vulkan/test/op_tests/utils/gen_computegraph.py:803
↓ 2 callersMethodgen_case_name
(self, inputs: List[Any], prepack: bool = False)
backends/vulkan/test/op_tests/utils/gen_correctness_base.py:109
↓ 2 callersMethodgen_case_name_tuple
(self, t)
backends/vulkan/test/op_tests/utils/gen_correctness_base.py:97
↓ 2 callersMethodgen_create_ref_data
(self, inputs: List[Any])
backends/vulkan/test/op_tests/utils/gen_correctness_base.py:235
↓ 2 callersMethodgen_graph_build_code
(self, include_declarations: bool = True)
backends/vulkan/test/op_tests/utils/gen_computegraph.py:715
↓ 2 callersMethodgen_graph_exec_code
(self, check_output=True)
backends/vulkan/test/op_tests/utils/gen_computegraph.py:734
↓ 2 callersFunctiongen_graphs_from_etrecord
( etrecord: ETRecord, enable_module_hierarchy: bool = False )
devtools/inspector/_inspector_utils.py:299
↓ 2 callersMethodgen_op_check_fn
(self)
backends/vulkan/test/op_tests/utils/gen_computegraph.py:783
↓ 2 callersMethodgen_op_exec_graph_fn
(self)
backends/vulkan/test/op_tests/utils/gen_computegraph.py:820
↓ 2 callersMethodgen_operator_graph
( model: torch.fx.GraphModule, skip_stack_trace: Optional[bool] = False, enable_module
devtools/debug_format/et_schema.py:216
↓ 2 callersMethodgenerate
( # noqa: C901 self, prompt_tokens: List[int], max_seq_len: int, temperature:
examples/models/llama/runner/generation.py:91
↓ 2 callersMethodgenerateNative
( String prompt, int seqLen, LlmCallback llmCallback, boolean echo, float temper
extension/android/executorch_android/src/main/java/org/pytorch/executorch/extension/llm/LlmModule.java:341
↓ 2 callersMethodgenerate_8bit_table_values
Compute LUT values for a INT8 TOSA.TABLE. Also returns 0 since no shifting is required after 8bit table. The INT8 table is a simple 2
backends/arm/_passes/insert_table_ops.py:155
↓ 2 callersMethodgenerate_benchmark_case
(self, inputs, prepack=False)
backends/vulkan/test/op_tests/utils/gen_benchmark_vk.py:113
↓ 2 callersFunctiongenerate_cache_inputs
Helper to generate k_val and v_val for both et and tt caches.
extension/llm/modules/test/test_kv_cache.py:27
↓ 2 callersMethodgenerate_case_cpp
(self, inputs, prepack=False)
backends/vulkan/test/op_tests/utils/gen_correctness_base.py:263
↓ 2 callersMethodgenerate_cpp
(self)
backends/vulkan/test/op_tests/utils/gen_benchmark_vk.py:346
↓ 2 callersFunctiongenerate_definition
(d: dict)
kernels/test/gen_supported_features.py:73
↓ 2 callersFunctiongenerate_document
Generates a markdown document based on a DocumentationJob.
backends/arm/scripts/docgen/docgen.py:119
↓ 2 callersFunctiongenerate_header
Generates a supported features header file
kernels/test/gen_supported_features.py:22
↓ 2 callersFunctiongenerate_mask
(predicted_logits, predicted_iou)
examples/qualcomm/oss_scripts/efficientSAM/efficientSAM.py:145
↓ 2 callersFunctiongenerate_memory_trace
Generate the memory timeline from the given ExecuTorch program. Args: executorch_program The ExecuTorch program to be analyzed. R
util/activation_memory_profiler.py:111
↓ 2 callersFunctiongenerate_model_size_information
Generate a json-serializable Dict containing information about a model's size. This includes data about individual tensors and delegate blobs
devtools/size_analysis_tool/size_analysis_tool.py:104
↓ 2 callersMethodgenerate_random_inputs
(self)
backends/test/harness/tester.py:120
↓ 2 callersMethodgenerate_samples
( self, dataset_dir: str, input_spec: list[ModelInputSpec] )
backends/nxp/tests/dataset_creator.py:53
↓ 2 callersMethodgetDataPath
@return Optional path to additional data files
extension/android/executorch_android/src/main/java/org/pytorch/executorch/extension/llm/LlmModuleConfig.java:92
↓ 2 callersMethodgetErrorCode
Returns the numeric error code from {@code runtime/core/error.h}.
extension/android/executorch_android/src/main/java/org/pytorch/executorch/ExecutorchRuntimeException.java:172
↓ 2 callersMethodgetName
@return Method name
extension/android/executorch_android/src/main/java/org/pytorch/executorch/MethodMetadata.java:24
↓ 2 callersMethodgetNumBos
@return Number of BOS tokens to prepend
extension/android/executorch_android/src/main/java/org/pytorch/executorch/extension/llm/LlmModuleConfig.java:106
↓ 2 callersMethodgetNumEos
@return Number of EOS tokens to append
extension/android/executorch_android/src/main/java/org/pytorch/executorch/extension/llm/LlmModuleConfig.java:113
↓ 2 callersMethodgetRuntime
Get the runtime instance.
extension/android/executorch_android/src/main/java/org/pytorch/executorch/ExecuTorchRuntime.java:32
↓ 2 callersMethodgetTemperature
@return Temperature value for sampling (higher = more random)
extension/android/executorch_android/src/main/java/org/pytorch/executorch/extension/llm/LlmModuleConfig.java:85
↓ 2 callersMethodgetTypeName
(int typeCode)
extension/android/executorch_android/src/main/java/org/pytorch/executorch/EValue.java:176
↓ 2 callersMethodget_absolute_placement_constraint
Return true if `node` has an absolute placement constraint.
backends/cadence/aot/memory_constraints.py:327
↓ 2 callersFunctionget_access_qualifier
(access_type: Optional[str])
backends/vulkan/runtime/gen_vulkan_spv.py:258
↓ 2 callersFunctionget_activation_bounds
(node: Node)
backends/cortex_m/passes/passes_utils.py:46
↓ 2 callersFunctionget_all_test_configs
Get flat list of all (config_name, test_instance) tuples. Test instances are created fresh each time this is called.
backends/mlx/test/test_utils.py:809
↓ 2 callersMethodget_anchors
( self, gm: fx.GraphModule, fused_partition: List[fx.GraphModule] )
backends/cadence/aot/quantizer/patterns.py:123
↓ 2 callersFunctionget_args_and_kwargs_add
( graph_module: GraphModule, inputs_inputs: List[fx.Node], dequants_inputs: List[fx.Node], qua
backends/cadence/aot/quantizer/fusion_pass.py:71
↓ 2 callersFunctionget_args_and_kwargs_conv
( graph_module: GraphModule, inputs_inputs: List[fx.Node], dequants_inputs: List[fx.Node], wei
backends/cadence/aot/quantizer/fusion_pass.py:254
↓ 2 callersFunctionget_args_and_kwargs_linear
Returns the args and kwargs for the linear replacement op.
backends/cadence/aot/quantizer/fusion_pass.py:98
↓ 2 callersFunctionget_aten_target
Unwrap EdgeOpOverload to get the underlying ATen op. In Edge IR, ops are wrapped in EdgeOpOverload. This extracts the underlying ATen op
backends/mlx/builder/op_helpers.py:27
← previousnext →3,301–3,400 of 28,493, ranked by callers