MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 5 callersMethodforward
(self, x: torch.Tensor, y: torch.Tensor)
exir/tests/test_reinplace_pass.py:535
↓ 5 callersMethodforward_backward
(self, method_name: str, inputs: Sequence[Any])
extension/training/pybindings/_training_module.py:33
↓ 5 callersMethodfrom
Creates a new {@code EValue} of type {@code Tensor}.
extension/android/executorch_android/src/main/java/org/pytorch/executorch/EValue.java:96
↓ 5 callersMethodfrom_bytes
(cls, data: bytes)
backends/mlx/pte_inspector.py:55
↓ 5 callersMethodfrom_float
( cls, kv_cache, cache_type: QuantizedCacheType, use_custom_update_cache_op: b
examples/models/llama/source_transformation/custom_kv_cache.py:234
↓ 5 callersFunctiongenerate_inputs
( dest_path: str, input_list_filename: str, inputs=None, prefix_input_filename: str = "", )
backends/qualcomm/export_utils.py:890
↓ 5 callersFunctiongenerate_optrace
Generate optrace and QHAS (QNN HTP Analysis Summary) JSON files. Args: artifact (str): Path to the artifact folder. adb (Sim
backends/qualcomm/debugger/utils.py:394
↓ 5 callersMethodgetMethods
Returns the names of methods. @return name of methods in this Module
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Module.java:186
↓ 5 callersMethodget_buffers
(self)
backends/nxp/backend/ir/converter/builder/model_builder.py:1695
↓ 5 callersFunctionget_cadence_default_quantizers
(is_qat: bool = False)
backends/cadence/aot/quantizer/quantizer.py:272
↓ 5 callersFunctionget_const_node
Register a scalar constant as a named buffer on the graph module and return a get_attr node referencing it. Used in edge dialect op decomposi
backends/qualcomm/_passes/utils.py:302
↓ 5 callersFunctionget_context_shape_env
Get the current ShapeEnv from the lowering context, if any. Returns: ShapeEnv: Active ShapeEnv retrieved from the context var. Raise
backends/arm/tosa/specification.py:475
↓ 5 callersFunctionget_data_loaders
Create data loaders for training, validation, and testing. Args: batch_size: Batch size for data loaders num_workers: Number
extension/training/examples/CIFAR/data_utils.py:149
↓ 5 callersFunctionget_dest_path
(output_folder, exp_name, shape=None, chunk_idx=0)
examples/mediatek/aot_utils/llm_utils/utils.py:411
↓ 5 callersMethodget_edge_program
(self)
backends/test/program_builder.py:134
↓ 5 callersFunctionget_embedding_layer
(config, weight_dir, state_dict)
examples/mediatek/aot_utils/llm_utils/utils.py:437
↓ 5 callersFunctionget_encoding
( path_to_shard: str, compiler_specs: str, get_input: bool, get_output: bool, num_input: i
examples/qualcomm/qaihub_scripts/utils/utils.py:24
↓ 5 callersMethodget_example_input
Get the example input for a specific method. Args: method_name: Name of the method to get example input for, defaults to
export/export.py:589
↓ 5 callersMethodget_example_inputs
(self)
examples/models/llama3_2_vision/preprocess/model.py:57
↓ 5 callersMethodget_example_inputs
(self)
examples/qualcomm/oss_scripts/llama/model/static_llama.py:765
↓ 5 callersMethodget_example_inputs
(self)
examples/qualcomm/oss_scripts/whisper/whisper_model.py:26
↓ 5 callersFunctionget_export_shapes
(shapes)
examples/mediatek/aot_utils/llm_utils/utils.py:447
↓ 5 callersMethodget_exported_program
Get the ExportedProgram for a specific method after torch export. Args: method_name: Name of the method to get exported
export/export.py:476
↓ 5 callersMethodget_freqs
Get rotary embedding frequencies with position remapping. For dynamic shape mode (input_pos is a single start position), we remap
examples/models/llama/source_transformation/attention_sink.py:63
↓ 5 callersMethodget_fused_activation
(node)
backends/xnnpack/_passes/fuse_activation_pass.py:40
↓ 5 callersMethodget_input_act_qspec
Returns the configured input activation spec, no specific adjustments.
backends/cortex_m/quantizer/quantization_configs.py:129
↓ 5 callersMethodget_layer_type
Get attention type for a specific layer.
examples/models/gemma4/text_decoder/gemma4_config.py:216
↓ 5 callersMethodget_lpai_target_env
(self)
backends/qualcomm/tests/utils.py:922
↓ 5 callersFunctionget_masked_language_model_dataset
(dataset_path, tokenizer, data_size, shuffle=True)
examples/qualcomm/utils.py:210
↓ 5 callersFunctionget_name
(a)
exir/serde/export_serialize.py:2484
↓ 5 callersMethodget_name
Returns the name of the pass.
backends/arm/_passes/arm_pass.py:72
↓ 5 callersMethodget_node_cached_repsets
Implements a cache layer for getting the OpRepSets for a given operator node.
backends/vulkan/_passes/tag_memory_meta_pass.py:207
↓ 5 callersFunctionget_normalized_config
(config_filepath)
examples/mediatek/aot_utils/llm_utils/utils.py:755
↓ 5 callersMethodget_operator_delegation_dataframe
Get the delegation information grouped by operator type in a pandas DataFrame. Args: None Returns:
devtools/backend_debug/delegation_info.py:74
↓ 5 callersMethodget_output_act_qspec
Returns the configured output activation spec with the following cortex-m specific adjustments: - For softmax, returns a fixed quanti
backends/cortex_m/quantizer/quantization_configs.py:137
↓ 5 callersFunctionget_param_tensor
( exp_prog: ExportedProgram, node: torch.fx.Node )
backends/arm/_passes/arm_pass_utils.py:107
↓ 5 callersFunctionget_scalar_type
(enum: ScalarType)
exir/tensor.py:316
↓ 5 callersFunctionget_sdk_build_id
()
backends/qualcomm/utils/utils.py:1418
↓ 5 callersFunctionget_slot_val
(slot: Union[int, List[int]])
backends/vulkan/runtime/gen_vulkan_spv.py:271
↓ 5 callersMethodget_tensor_name
( self, node: torch.fx.Node, wrapper_idx: int = 0, )
backends/qualcomm/builders/node_visitor.py:395
↓ 5 callersMethodget_test_dir
Get the directory for this test's files.
backends/mlx/test/test_utils.py:875
↓ 5 callersMethodget_test_export_session
(self, generate_etrecord=False, to_edge_flow=False)
devtools/etrecord/tests/etrecord_test.py:140
↓ 5 callersFunctionget_test_inputs
()
backends/arm/test/models/test_lstm_arm.py:28
↓ 5 callersMethodget_to_edge_transform_passes
( self, exported_program: ExportedProgram, passes_job: OrderedDict = None, dep
backends/qualcomm/_passes/qnn_pass_manager.py:160
↓ 5 callersMethodgraph_module
(self)
exir/program/_program.py:684
↓ 5 callersMethodhas_dtype
(self)
exir/dialects/edge/arg/type.py:40
↓ 5 callersMethodinference
( self, input_data: Union[numpy.ndarray, Dict[int, numpy.ndarray]] )
backends/nxp/tests/executors.py:52
↓ 5 callersMethodinit
(self, name: str, soc_name)
backends/samsung/serialization/enn_graph_schema.py:30
↓ 5 callersFunctioninput_rank
(node: Node, input_index: int)
backends/nxp/backend/edge_helper.py:50
↓ 5 callersMethodinputs_as_list
Return the `inputs` attribute. If it's `None`, return `[]`.
backends/nxp/backend/ir/neutron_ir_post_processing/pattern_matcher.py:62
↓ 5 callersMethodis_alias_of
Returns true if `spec` is an alias of `other_spec`. Two specs are considered aliases if they have the same number of elements and dtyp
backends/cadence/aot/memory_constraints.py:129
↓ 5 callersFunctionis_channel_broadcast
Check if tensor1 is broadcasted to tensor2 along channel dimension. Assumes tensor2 has shape [N, C, ...] and tensor1 has shape [N, 1, ...] o
backends/cortex_m/passes/passes_utils.py:262
↓ 5 callersFunctionis_dynamic_qdq
(node: torch.fx.Node)
backends/xnnpack/utils/quant_utils.py:60
↓ 5 callersFunctionis_inference_output_equal
( output1: InferenceOutput, output2: InferenceOutput )
devtools/inspector/_inspector_utils.py:151
↓ 5 callersMethodis_node_supported
(self, submodules, node: torch.fx.Node)
backends/arm/tosa/partitioner.py:347
↓ 5 callersFunctionis_partitioned
Return True if the node currently belongs to the partition ``tag``. Args: node (torch.fx.Node): FX node to check. tag (str): Dele
backends/arm/tosa/partitioner.py:120
↓ 5 callersFunctionis_relu_node
Check if a given node is a relu node
backends/xnnpack/quantizer/xnnpack_quantizer_utils.py:94
↓ 5 callersMethodis_scalar
(self)
exir/dialects/edge/arg/type.py:27
↓ 5 callersFunctionis_single_tensor_node
Returns true if the given node produces a single tensor value
backends/vulkan/utils.py:219
↓ 5 callersFunctionlift_constant_tensor_pass
Takes an ExportedProgram and returns the ExportedProgram modified in-place, with the constant tensors as buffers.
exir/program/_program.py:326
↓ 5 callersFunctionload
(path)
examples/models/gemma4_31b/quant/tests/test_safetensors_roundtrip.py:28
↓ 5 callersFunctionload_checkpoints
(weight_dir)
examples/mediatek/aot_utils/llm_utils/utils.py:791
↓ 5 callersMethodlog_quantizer_report
Logs the quantization report for all registered quantizers. If the logger is set to DEBUG level, a node-per-node report is generated
backends/cortex_m/quantizer_reporter.py:335
↓ 5 callersFunctionlog_warning
(warn_str)
exir/program/_program.py:1089
↓ 5 callersMethodlower_module_and_test_output
Helper testing function that takes a torch.nn.Module and lowers it to XNNPACK with the given sample inputs. It then runs the lowered
backends/xnnpack/test/test_xnnpack_utils.py:165
↓ 5 callersMethodmake_tensor_repr
Pick a representation (i.e. TensorRepr) from the set of possible representations. If there are multiple valid representations, then:
backends/vulkan/utils.py:964
↓ 5 callersFunctionmaybe_static_sequence
Return a Python sequence for literal or FX-constant values. FX exporters often wrap constant lists in nodes where the materialised value is s
backends/arm/common/as_strided_utils.py:27
↓ 5 callersMethodnum_special_tokens_to_add
Number of special tokens to add.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:2815
↓ 5 callersFunctionoperator_is_type
( op: tflite_model.Operator, op_type: str, builder: "model_builder.ModelBuilder" )
backends/nxp/backend/ir/neutron_ir_post_processing/graph_utils.py:105
↓ 5 callersMethodops_to_not_decompose
Returns a list of operator names that should not be decomposed. When these ops are registered and the `to_backend` is invoked through
exir/backend/partitioner.py:97
↓ 5 callersFunctionpadding_required
Returns the padding required to align `offset` to `alignment`.
exir/_serialize/padding.py:29
↓ 5 callersFunctionpatch_forward
Helper method to make it easier to cleanly torch.export() a method on a module that is not `forward`. TODO(suo): upstream this to torch.expor
exir/capture/_capture.py:139
↓ 5 callersMethodpreconditionType
(int typeCodeExpected, int typeCode)
extension/android/executorch_android/src/main/java/org/pytorch/executorch/EValue.java:165
↓ 5 callersMethodprefill
( self, model: Callable[..., Any], tokens: Union[List[int], torch.Tensor], )
examples/models/llama/static_attention.py:424
↓ 5 callersMethodprint_data_tabular
Displays the underlying EventBlocks in a structured tabular format, with each row representing an Event. Args: file: Whi
devtools/inspector/_inspector.py:1461
↓ 5 callersFunctionprint_wrapped
Print text wrapped to fit within the given width. Indents additional lines by four spaces.
scripts/pick_doc_commits.py:143
↓ 5 callersMethodquantize
(self, qnn_config, inputs, quant_dtype, targets=None, metrics=None)
examples/qualcomm/oss_scripts/t5/t5.py:107
↓ 5 callersMethodreject_node
(self, node: fx.Node)
exir/backend/operator_support.py:25
↓ 5 callersFunctionreplace_sdpa_with_custom_op
( module: torch.nn.Module, use_attention_mask: bool = False )
examples/models/llama/source_transformation/sdpa.py:92
↓ 5 callersMethodreport_accept
Stores an AnnotatedPatternReport containing info about the accepted pattern.
backends/cortex_m/quantizer_reporter.py:125
↓ 5 callersMethodreset
(self)
examples/models/llama/static_attention.py:193
↓ 5 callersFunctionresolve_model_classes
( config_filepath, bypass_tokenizer=False, response_handler=None )
examples/mediatek/aot_utils/llm_utils/utils.py:823
↓ 5 callersMethodrun
(et_pm, inputs)
backends/transforms/test/test_create_mutable_buffer.py:248
↓ 5 callersMethodrun_artifact
Returns the output of calling the artifact generated by this stage with inputs
backends/test/harness/stages/stage.py:57
↓ 5 callersFunctionsanitize_checkpoint_from_pre_quantization
Sanitize the pre-quantized checkpoint. - Converts all tensors to contiguous format - Squeeze all tensors
examples/models/llama/source_transformation/pre_quantization.py:195
↓ 5 callersFunctionsave
(state_dict, path)
examples/models/gemma4_31b/quant/tests/test_safetensors_roundtrip.py:23
↓ 5 callersMethodserialize_metadata
(self, node: torch.fx.Node)
exir/serde/export_serialize.py:574
↓ 5 callersMethodserialize_output
(self, name: str, meta_val: Any)
exir/serde/export_serialize.py:1288
↓ 5 callersFunctionserialize_sym_int
(s: Union[int, torch.SymInt])
exir/serde/export_serialize.py:240
↓ 5 callersMethodset_block_size_map
Set the mapping from node names to block sizes for per-block quantization. Args: block_size_map (Dict[str, Tuple]): Mapp
backends/qualcomm/quantizer/quantizer.py:544
↓ 5 callersFunctionset_node_arg
Help-function for setting a value in node.args/ kwargs. If the index is one larger than the list size, the value is instead appended to the l
backends/arm/_passes/arm_pass_utils.py:340
↓ 5 callersMethodsrc_path
Returns the path to the source file, resolving globs. Args: installer: The InstallerBuildExt instance that is installing the
setup.py:254
↓ 5 callersMethodsupports_recipe
(self, recipe_type: RecipeType)
export/recipe_provider.py:59
↓ 5 callersMethodto_edge_transform_and_lower
( self, partitioners: Optional[List[Partitioner]], transform_passes: Optional[List] =
extension/llm/export/builder.py:453
↓ 5 callersMethodto_float_or_vid
(self, v: Union[float, int, Slot])
backends/mlx/builder/program_builder.py:306
↓ 5 callersFunctionto_variant
Given an operator overload, return its corresponding variant. Currently only supports functional variant and out variant. Argument: op
exir/dialects/edge/op/api.py:36
↓ 5 callersFunctiontosa_support_factory
Create an OperatorSupport composite for a TOSA spec. Combine profile-specific positive checks, registered operator checks, and negative check
backends/arm/operator_support/tosa_supported_operators.py:239
↓ 5 callersFunctiontry_get_arg
(node: Node, idx: int)
backends/nxp/backend/edge_helper.py:369
↓ 5 callersFunctionvalidate_16a16w_support
(soc_info: SocInfo)
backends/qualcomm/quantizer/annotators/htp_rules.py:94
↓ 5 callersMethodwrite_etdump_result_to_file
Writes the etdump and debug result to a file. Args: etdump_path: The path to the etdump file. debug_buffer_path: The
runtime/__init__.py:210
← previousnext →1,201–1,300 of 28,493, ranked by callers