MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 3 callersMethodcreate_cat_graph
( self, input_shapes: Sequence[Sequence[int]], cat_dim: int = 0, )
backends/cadence/aot/tests/test_replace_ops_passes.py:2885
↓ 3 callersMethodcreate_comparator
( self, comparator_cls: type[QcomNumericalComparatorBase], **kwargs )
backends/qualcomm/debugger/qnn_intermediate_debugger.py:52
↓ 3 callersMethodcreate_dummy_quantizer
()
export/tests/test_export_stages.py:333
↓ 3 callersFunctioncreate_exported_program_from_submodule
Creates an ExportedProgram from the given submodule using the parameters and buffers from the top-level owning program Args: sub
exir/lowered_backend_module.py:770
↓ 3 callersFunctioncreate_file_path
Create Path object from file name string.
scripts/file_size_compare.py:46
↓ 3 callersMethodcreate_invalid_value_injector
( self, invalid_value, is_per_channel=False, is_zp=False )
backends/xnnpack/test/ops/test_check_quant_params.py:20
↓ 3 callersMethodcreate_recipe
Create XNNPACK recipe
backends/xnnpack/recipes/xnnpack_recipe_provider.py:48
↓ 3 callersMethodcreate_recipe
( self, recipe_type: RecipeType, **kwargs: Any )
export/tests/test_recipe_provider.py:41
↓ 3 callersFunctioncreate_shape_node
Adds a shape node to 'graph'. graph.inserting_before/after() should be used before the call to decide where to insert the node.
backends/arm/_passes/arm_pass_utils.py:188
↓ 3 callersMethodcreate_slice_graph
( self, input_shape: Sequence[int], slice_dim: int, slice_begin: Optional[int]
backends/cadence/aot/tests/test_replace_ops_passes.py:2792
↓ 3 callersMethodcreate_sliding_window_mask
Build attention mask for the ring buffer — branchless, no mutable state. Reconstructs the slot→position mapping from ``start_pos`` a
backends/mlx/llm/cache.py:308
↓ 3 callersFunctioncreate_tensor_to_operator_dictionaries
Create and return 2 dictionaries, which map a tensor name, to a TFLite operator, which has the tensor as input, and output respectively. :ret
backends/nxp/backend/ir/neutron_ir_post_processing/graph_utils.py:18
↓ 3 callersMethodcreate_tertiary_node
( self, node: torch.fx.Node, mps_graph: MPSGraph, tertiary_op: MPSNodeUnion )
backends/apple/mps/operators/node_visitor.py:329
↓ 3 callersFunctioncrop_square
(image: Image.Image, left: int, top: int, size: int)
examples/arm/super_resolution_example_vgf/model_export/prepare_demo_assets.py:68
↓ 3 callersFunctiondbg_tosa_fb_to_json
This function is used to dump the TOSA flatbuffer to a human readable format, using flatc. It is used for debugging purposes.
backends/arm/test/runner_utils.py:729
↓ 3 callersFunctiondelegate_external_constants_pass_unlifted
( module: torch.nn.Module, gen_tag_fn: Optional[Callable[[torch.fx.Node], Optional[str]]] = None, )
exir/passes/external_constants_pass.py:99
↓ 3 callersMethoddeserialize_arbitrary_outputs
( self, serialized_node: schema.Node, fx_node: torch.fx.Node )
exir/serde/serialize.py:549
↓ 3 callersFunctiondeserialize_from_etdump_flatcc
Given an etdump binary blob (constructed using the FlatCC schema) this function will deserialize it and return the FlatCC python object repre
devtools/etdump/serialize.py:95
↓ 3 callersMethoddeserialize_metadata
(self, metadata: Dict[str, str])
exir/serde/export_serialize.py:2135
↓ 3 callersMethoddeserialize_metadata
(self, metadata: Dict[str, str])
exir/serde/serialize.py:499
↓ 3 callersMethoddeserialize_operator
(self, serialized_target: str)
exir/serde/export_serialize.py:1468
↓ 3 callersMethoddeserialize_sym_argument
(self, sym_arg)
exir/serde/export_serialize.py:2033
↓ 3 callersMethoddeserialize_sym_int
(self, s: SymInt)
exir/serde/export_serialize.py:1488
↓ 3 callersFunctiondeserialize_torch_artifact
( serialized: Union[Dict[str, Any], Tuple[Any, ...], bytes] )
exir/serde/export_serialize.py:330
↓ 3 callersMethoddestroy
Explicitly destroys the native Module object. Calling this method is not required, as the native object will be destroyed when this object is garbage-
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Module.java:297
↓ 3 callersFunctiondisable_validation
Disables validation
exir/backend/backend_api.py:140
↓ 3 callersFunctiondownload_and_convert_hf_checkpoint
Downloads and converts to Meta format a HuggingFace checkpoint. Args: repo_id: Id of the HuggingFace repo, e.g. "Qwen/Qwen2.5-1.5B".
examples/models/llama/hf_download.py:14
↓ 3 callersFunctiondownsample_to_lr
(image: Image.Image, lr_size: int)
examples/arm/super_resolution_example_vgf/model_export/prepare_demo_assets.py:59
↓ 3 callersFunctiondraw_graph
(title, path, graph_module: torch.fx.GraphModule, format=DrawFormat.SVG)
backends/qualcomm/utils/utils.py:961
↓ 3 callersMethoddump_operator_distribution
Dump the distribution of operators in the current stage. In the partition stage, additional information is included such as the number
backends/arm/test/tester/arm_tester.py:874
↓ 3 callersFunctionduplicate_constant_node
A pass to duplicate the attributes/constants node (the candidate_node) in the graph. Mostly used for duplicating light-weight data. If the da
exir/backend/canonical_partitioners/duplicate_constant_node_pass.py:38
↓ 3 callersFunctiondynamo_trace
TODO: Once we fully migrate to torchdynamo frontend, we will remove this config option alltogether. For now, it helps with quick experim
exir/tracer.py:653
↓ 3 callersFunctionemit_quantized_biases
Emit biases for quantized ops, computing at init time when possible. When zero_point is all zeros and QUANTIZED_SERIALIZE_BIASES is False, av
backends/mlx/builder/op_helpers.py:176
↓ 3 callersMethodencode
( self, x: torch.Tensor, q: torch.Tensor, a: int = DEFAULT_INT_INPUT )
devtools/bundled_program/util/test_util.py:53
↓ 3 callersMethodetdump
Dump the ExecuTorch ETRecord file to /data/local/tmp/result.etdump. <p>Currently for internal (minibench) use only. @return true if the etdump was s
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Module.java:253
↓ 3 callersMethodexample_inputs
(self)
backends/xnnpack/test/test_xnnpack_partitioner.py:112
↓ 3 callersFunctionexport_chunk_gated_delta
(output_dir)
backends/cuda/tests/test_chunk_gated_delta_rule.py:132
↓ 3 callersFunctionexport_fused_moe
Export a FusedMoEModel to .pte + .ptd.
backends/cuda/tests/test_fused_moe.py:163
↓ 3 callersFunctionexport_llama
( # noqa: C901 export_options: Union[argparse.Namespace, LlmConfig, DictConfig], )
examples/models/llama/export_llama_lib.py:653
↓ 3 callersFunctionexport_model_combined
Export a PyTorch model to an ExecuTorch module format, optionally with external tensor data. This function takes a PyTorch model and sample
extension/training/examples/CIFAR/export.py:23
↓ 3 callersFunctionexport_topk
Export a TopKModel (rows=4, cols=8, k=2, largest=True) to .pte + .ptd.
backends/cuda/tests/test_topk.py:88
↓ 3 callersFunctionextract_out_arguments
( schema: torch._C.FunctionSchema, keyword_args: Dict[str, T] )
exir/common.py:64
↓ 3 callersMethodextract_partition_list
( self, graph_module: torch.fx.GraphModule, supported_modules: List[torch.nn.Module],
exir/backend/test/test_graph_partition.py:67
↓ 3 callersFunctionextract_qdq_affine_op_args_for_decomposed_ops
(node: torch.fx.Node)
backends/xnnpack/utils/quant_utils.py:205
↓ 3 callersFunctionextract_tensor_meta
Extract dtype, shape, and dimension order from FX metadata. Args: meta (dict): FX node ``meta`` containing a ``val`` FakeTensor (or tuple
backends/arm/tosa/mapping.py:120
↓ 3 callersMethodfilter_fn
Filter function applied to ops in 'ops_to_not_decompose'. Returns True if the op should not be decomposed. If this function returns
backends/arm/tosa/partitioner.py:505
↓ 3 callersFunctionfilter_nodes
This method need return Node object embedded inside List/Dict as well.
exir/memory_planning.py:474
↓ 3 callersMethodfind_and_fuse
( self, graph_module: torch.fx.GraphModule, producer_op_packets: set[EdgeOpOverloadPac
backends/transforms/permute_pass_utils.py:233
↓ 3 callersMethodfind_nodes
(self, model: GraphModule)
backends/cortex_m/quantizer/node_finders.py:71
↓ 3 callersMethodfind_nodes
(self, model: GraphModule)
backends/cortex_m/quantizer/node_finders.py:87
↓ 3 callersMethodfinish
(self)
backends/samsung/serialization/enn_graph_schema.py:118
↓ 3 callersFunctionflattened_dispatch_trace
( f: Callable[..., Value], args: Tuple[LeafValue, ...], guards: Set[Guard], in_spec: Optional[
exir/tracer.py:573
↓ 3 callersMethodforward
(self, a, x, b)
exir/backend/test/test_backends_lifted.py:858
↓ 3 callersMethodforward
(self, x: Tensor)
exir/tests/models.py:153
↓ 3 callersMethodforward
( self, images: torch.Tensor, )
examples/models/llava/model.py:297
↓ 3 callersMethodfrom_backend_indices
( backend_indices: dict[DispatchKey, dict[OperatorName, BackendMetadata]], )
codegen/model.py:174
↓ 3 callersMethodfrom_bias
( cls, bias: torch.fx.Node, weight_quantizer: Optional[QuantParams], input_qua
backends/xnnpack/operators/quant_params.py:374
↓ 3 callersMethodfrom_dict
(cls, data: dict[str, Any])
backends/arm/common/pipeline_config.py:28
↓ 3 callersMethodfrom_target_string
Parse a `cortex-m<variant>` target string.
backends/cortex_m/target_config.py:95
↓ 3 callersMethodfrom_tensors
Creates an ErrorStatistics object from two tensors.
backends/test/harness/error_statistics.py:69
↓ 3 callersFunctionfuse_ln_linear
fuse the linear operations in Layernorm into the adjacent linear blocks.
examples/models/llama/source_transformation/apply_spin_quant_r1_r2.py:126
↓ 3 callersFunctiongen
Generate all possible pairs of elements in the list.
exir/dialects/edge/spec/utils.py:177
↓ 3 callersFunctiongen_headers
Generate headers. Args: native_functions (Sequence[NativeFunction]): a collection of NativeFunction for ATen ops. gen_custom_ops_
codegen/gen.py:478
↓ 3 callersFunctiongen_op_yaml
Generate yaml info for given operator. Arguments: op_name: The name of operator. Needs to conform the convention of "<name>.<overload_name
exir/dialects/edge/spec/gen.py:410
↓ 3 callersFunctiongen_out_variant_schema
Generate schema for the out= variant of a given functional operator schema.
exir/operator/util.py:20
↓ 3 callersFunctiongen_pte_from_ctx_bin
(artifact, pte_names, bundle_programs, backend_config)
examples/qualcomm/qaihub_scripts/utils/utils.py:61
↓ 3 callersFunctiongenerate
Autoregressive generation. Prefill is one-token-at-a-time so a single compiled graph handles every step; the exported PTE uses a separate mult
examples/models/gemma4_31b/inference.py:84
↓ 3 callersFunctiongenerate_context_binary
( module: torch.nn.Module, inputs: Dict[str, torch.Tensor], quantized: bool, artifact_dir: str
backends/qualcomm/tests/utils.py:68
↓ 3 callersMethodgenerate_results
( self, title: str, path: str, output_format: OutputFormat, comparator
backends/qualcomm/debugger/qnn_intermediate_debugger.py:63
↓ 3 callersMethodgenerate_test_files
Generate .pte, input.bin, and expected_output.bin files. Args: verbose: Whether to print the exported program for debugg
backends/mlx/test/test_utils.py:881
↓ 3 callersFunctionget_16a4w_qnn_qat_config
( act_symmetric: bool = False, act_observer=MovingAverageMinMaxObserver, eps: float = None, )
backends/qualcomm/quantizer/qconfig.py:679
↓ 3 callersFunctionget_16a8w_qnn_ptq_config
( act_symmetric: bool = False, act_observer=MovingAverageMinMaxObserver, eps: float = None, )
backends/qualcomm/quantizer/qconfig.py:267
↓ 3 callersMethodget_alignment
(self, exir_id: int)
backends/cadence/aot/memory_planning_algo.py:110
↓ 3 callersFunctionget_ancestor_node_identifiers
Get the identifier of the ancestor node of the given node, with the graph id the ancestor node lives in. The identifier is the concatenation of t
devtools/inspector/_inspector_utils.py:1071
↓ 3 callersMethodget_arg
(node: torch.fx.Node, arg: str)
backends/xnnpack/_passes/convert_to_linear.py:61
↓ 3 callersMethodget_bias_qspec
Get the derived or validated bias spec. For conv/linear ops, derive bias qparams from the input/weight observers. Otherwise, validate
backends/arm/quantizer/quantization_config.py:137
↓ 3 callersFunctionget_cls_name
(obj, field_name=None)
backends/xnnpack/serialization/xnnpack_graph_serialize.py:40
↓ 3 callersFunctionget_compute_nodes
Return the target of each call_function node in order.
backends/transforms/test/test_permute_optimization_passes.py:70
↓ 3 callersFunctionget_constant_placeholder_kind
( exp_prog: ExportedProgram, node: torch.fx.Node )
backends/arm/_passes/arm_pass_utils.py:83
↓ 3 callersMethodget_converted_sgd_trained_module
( self, ori_module: torch.nn.Module, prepared: torch.nn.Module, inputs: Tuple[
backends/qualcomm/tests/utils.py:831
↓ 3 callersFunctionget_current_qnn_manager
Retrieves the QnnManager instance active for the current QnnManagerContext invocation. Return a new QnnManger if no QnnManager is active for
backends/qualcomm/utils/qnn_manager_lifecycle.py:78
↓ 3 callersFunctionget_data_loader
()
examples/qualcomm/utils.py:180
↓ 3 callersFunctionget_dataloader
Given a dataset, tokenizer, and loss function, return a dataloader.
examples/llm_pte_finetuning/training_lib.py:127
↓ 3 callersFunctionget_delegated_payload
Extracts the payload for delegates from a graph module that has been lowered to one or more backends. This function iterates through all
exir/backend/utils.py:675
↓ 3 callersFunctionget_dims_reduced
(node: torch.fx.Node)
backends/vulkan/op_registry.py:637
↓ 3 callersMethodget_dot_graph
(self)
backends/qualcomm/debugger/utils.py:45
↓ 3 callersMethodget_dummy_inputs
Get dummy inputs for each model component. Returns: Dictionary with dummy inputs for text_encoder, unet, and vae_decoder
examples/models/stable_diffusion/model.py:162
↓ 3 callersMethodget_edge_program_manager
Get the EdgeProgramManager after edge lowering stages. This method checks multiple stages in order of preference: 1. TO_EDGE
export/export.py:505
↓ 3 callersMethodget_example_inputs
(self)
exir/backend/test/test_backends_nested.py:66
↓ 3 callersMethodget_example_inputs
(self)
exir/tests/test_remove_view_copy.py:40
↓ 3 callersMethodget_example_inputs
(self)
backends/arm/test/quantizer/test_conv_relu_fusing.py:61
↓ 3 callersMethodget_example_inputs
(self)
examples/models/llama3_2_vision/text_decoder/model.py:151
↓ 3 callersMethodget_example_inputs
(self)
examples/models/llama3_2_vision/vision_encoder/model.py:83
↓ 3 callersFunctionget_fake_program
Create a fake exported program. This uses fake tensors for the state dict to prevent mutation, and points to the real constants, to avoid large me
exir/program/_fake_program.py:18
↓ 3 callersFunctionget_file_size
Get the size of a file on disk.
scripts/file_size_compare.py:55
↓ 3 callersMethodget_first_user
Utility to skip dequantize user for frozen param
backends/qualcomm/builders/node_visitor.py:123
↓ 3 callersFunctionget_getitem_users
( source_node: torch.fx.Node, max_users: int )
backends/arm/_passes/arm_pass_utils.py:63
↓ 3 callersMethodget_graph_module
( self, module: torch.nn.Module, inputs: Tuple[torch.Tensor] )
exir/backend/test/test_graph_partition.py:23
↓ 3 callersMethodget_graph_module
( self, model_name: str, x_shape: List[int], y_shape: List[int], conca
backends/cadence/aot/tests/test_memory_passes.py:332
↓ 3 callersMethodget_inputs
(self)
backends/arm/test/misc/test_dw_convs_with_shared_weights.py:29
← previousnext →2,001–2,100 of 28,493, ranked by callers