MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_qwen2.py:67
↓ 2 callersFunctionget_placeholders
(graph: torch.fx.Graph)
backends/cadence/aot/compiler_utils.py:40
↓ 2 callersFunctionget_program_info
(program)
backends/qualcomm/utils/utils.py:234
↓ 2 callersFunctionget_pte_only
Generate an ExecuTorch module from a PyTorch model without external tensor data. This function retrieves a sample input and label tensor fro
extension/training/examples/CIFAR/export.py:73
↓ 2 callersFunctionget_pte_with_ptd
Generate an ExecuTorch module from a PyTorch model with external tensor data. This function retrieves a sample input and label tensor from t
extension/training/examples/CIFAR/export.py:96
↓ 2 callersFunctionget_pytorch_layout_info
(node: torch.fx.node.Node)
backends/qualcomm/debugger/format_outputs.py:67
↓ 2 callersFunctionget_qnn_context_binary_alignment
()
backends/qualcomm/utils/utils.py:1459
↓ 2 callersMethodget_quant_attrs
( self, quant_node: torch.fx.Node, key_map: Optional[Dict] = None )
backends/samsung/_passes/annotate_qparams.py:177
↓ 2 callersFunctionget_quant_weight_transform
( quantization_mode: str, group_size: Optional[int] = None, computation_dtype: Optional[DType] = N
examples/models/llama/source_transformation/quantize.py:835
↓ 2 callersFunctionget_quantization_parameters_for
(node: Node)
backends/nxp/backend/edge_helper.py:144
↓ 2 callersFunctionget_rand_input_values
( n_tensors: int, sizes: List[List[int]], n_int: int, dtype: torch.dtype, n_sets_per_plan_
devtools/bundled_program/util/test_util.py:71
↓ 2 callersMethodget_random_input
(self)
backends/qualcomm/tests/models.py:511
↓ 2 callersMethodget_random_inputs
(self)
exir/tests/test_passes.py:414
↓ 2 callersMethodget_random_inputs
(self)
exir/tests/models.py:134
↓ 2 callersMethodget_random_inputs
(self)
exir/tests/test_serde.py:134
↓ 2 callersMethodget_random_inputs
(self)
exir/tests/control_flow_models.py:87
↓ 2 callersMethodget_random_tensor
(self, size, dtype)
exir/dialects/edge/arg/model.py:84
↓ 2 callersFunctionget_random_test_suites_with_eager_model
Generate config filled with random inputs for each inference method given eager model The details of return type is the same as get_random_test_s
devtools/bundled_program/util/test_util.py:192
↓ 2 callersFunctionget_reduce_inputs
(is_softmax: bool = False)
backends/vulkan/test/op_tests/cases.py:1583
↓ 2 callersFunctionget_reduce_per_row_inputs
()
backends/vulkan/test/op_tests/cases.py:1609
↓ 2 callersMethodget_reference_module
(self)
backends/qualcomm/tests/models.py:514
↓ 2 callersFunctionget_relative_offset_of_slice
Return the relative offset of the output of a slice node from the input. We do not use allocated_memory from TensorSpec to compute the relati
backends/cadence/aot/memory_constraints.py:358
↓ 2 callersFunctionget_relative_offsets_of_cat_tensors
Return the relative offsets of all tensors being concatenated, starting at 0. We do not use allocated_memory from TensorSpec to compute the r
backends/cadence/aot/memory_constraints.py:334
↓ 2 callersMethodget_replacement
(self, op, args, kwargs, meta)
backends/transforms/replace_scalar_with_tensor.py:49
↓ 2 callersMethodget_saved_pte_filename
Return the filename of the most recenet saved .pte file. Return None if the model is not saved.
extension/llm/export/builder.py:541
↓ 2 callersMethodget_scale
Returns the scale of the SDPA op. Scale: Optional[float] doesn't change the graph pattern. The default value can be calulate
backends/xnnpack/_passes/convert_to_sdpa.py:25
↓ 2 callersFunctionget_scale_zero_point
(node: torch.fx.node.Node)
backends/qualcomm/debugger/format_outputs.py:51
↓ 2 callersFunctionget_scratch_from_pte
(pte_path: str)
backends/arm/scripts/get_ethosu_scratch_from_pte.py:47
↓ 2 callersFunctionget_selective_quantizer_by_module
( module_types: Dict[torch.nn.Module, QuantizationConfig] )
backends/arm/test/quantizer/test_selective_quantization.py:36
↓ 2 callersFunctionget_selective_quantizer_by_module_name
(module_names: Dict[str, QuantizationConfig])
backends/arm/test/quantizer/test_selective_quantization.py:47
↓ 2 callersFunctionget_shape
If shape is symbolic then evaluate shape, otherwise if it has upperbound shape, then return upperbound shape. Note that we must check for
backends/transforms/addmm_mm_to_linear.py:17
↓ 2 callersFunctionget_skip_decomp_table
()
backends/qualcomm/partition/utils.py:50
↓ 2 callersMethodget_slice_graph
(self)
backends/cadence/aot/tests/test_memory_passes.py:1315
↓ 2 callersMethodget_spec
(x)
exir/passes/spec_prop_pass.py:63
↓ 2 callersMethodget_supported_recipes
(self)
export/tests/test_recipe_provider.py:38
↓ 2 callersFunctionget_supported_transpositions
Since ExecuTorch and NeutronIR use different tensor formats, we must consider the different possible cases which may occur. The main permutation
backends/nxp/backend/ir/converter/node_converters/ops_converters/permute_copy_converter.py:41
↓ 2 callersFunctionget_tensor
(exported_program: ExportedProgram, node: torch.fx.Node)
backends/samsung/builders/utils.py:56
↓ 2 callersFunctionget_tensor
(io_info, tensors, logger, checking_output=False)
examples/qualcomm/qaihub_scripts/utils/export.py:113
↓ 2 callersFunctionget_tensor_from_attr
For an input node that is a named buffer or parameter, return the underlying tensor.
backends/cadence/aot/compiler_utils.py:127
↓ 2 callersFunctionget_tensor_val_str
(tensor_val: FakeTensor)
backends/vulkan/utils.py:1828
↓ 2 callersFunctionget_test_case_name
(generated_test_case: str)
kernels/test/test_case_gen.py:876
↓ 2 callersMethodget_test_configs
(cls)
backends/mlx/test/test_ops.py:4197
↓ 2 callersMethodget_test_inputs
()
backends/arm/test/passes/test_rescale_optimization.py:76
↓ 2 callersFunctionget_test_output_size
Get total size of generated test output files in bytes. Args: test_names: Optional list of test names to check. If None, checks all
backends/mlx/test/test_utils.py:715
↓ 2 callersFunctionget_torch_op_overload
( namespace: str, opname: str, overload: Optional[str] )
exir/dialects/edge/op/api.py:21
↓ 2 callersFunctionget_tosa_resize_validation_error
( *, input_hw: Sequence[int | torch.SymInt], output_hw: Sequence[int | torch.SymInt] | None, s
backends/arm/tosa/resize_utils.py:232
↓ 2 callersFunctionget_train_loader
Get loader for training data.
examples/nxp/experimental/cifar_net/cifar_net.py:95
↓ 2 callersFunctionget_upsample_inputs
()
backends/vulkan/test/op_tests/cases.py:807
↓ 2 callersMethodget_val_with_dtype
(self, dtype)
exir/dialects/edge/arg/model.py:154
↓ 2 callersFunctionget_version_or_na
(cfg, prefix)
util/collect_env.py:539
↓ 2 callersMethodget_view_then_add_graph
(self)
backends/cadence/aot/tests/test_memory_passes.py:1191
↓ 2 callersFunctionget_vk_datatype
Returns Vulkan dtype corresponding to torch dtype
backends/vulkan/utils.py:310
↓ 2 callersMethodget_vocab
Gets the vocab.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_gpt2.py:200
↓ 2 callersMethodget_weight_qspec
Returns the configured weight quantization spec with the following cortex-m specific adjustments: - For conv transpose, returns the p
backends/cortex_m/quantizer/quantization_configs.py:162
↓ 2 callersMethodgrow_from_backend_indices
( kernel_index: dict[OperatorName, dict[ETKernelKey, BackendMetadata]], backend_indices: dict[
codegen/model.py:161
↓ 2 callersMethodhalfBitsToFloat
(short halfBits)
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Tensor.java:912
↓ 2 callersFunctionhandler
(P: MLXProgramBuilder, n: Node)
backends/mlx/ops.py:406
↓ 2 callersFunctionhas_impl
(target: Any)
backends/vulkan/op_registry.py:1692
↓ 2 callersFunctionhas_node_spec_attr
(node: torch.fx.Node, attr: str)
backends/vulkan/utils.py:1630
↓ 2 callersMethodimage_preprocess
(self, img: torch.Tensor)
examples/models/llava/model.py:189
↓ 2 callersFunctioninference
( args, decoder_model_config: LLMModelConfig, runtime_tokenizer_path, tokenizer, chat_temp
examples/qualcomm/oss_scripts/llama/llama.py:178
↓ 2 callersFunctioninference
(args: argparse, qnn_config: QnnConfig)
examples/qualcomm/oss_scripts/qwen2_5/qwen2_5.py:100
↓ 2 callersMethodinference
( self, input_data: Union[numpy.ndarray, Dict[int, numpy.ndarray]] )
backends/nxp/tests/executors.py:144
↓ 2 callersFunctioninference_mimi_encoder
(args, qnn_config, encoder_inputs, encoder_pte_filename)
examples/qualcomm/oss_scripts/moshi/mimi.py:179
↓ 2 callersFunctioninference_static_mimi_decoder
( args, qnn_config, encoded_results, pcm_chunk_size, static_decoder_pte_filename, )
examples/qualcomm/oss_scripts/moshi/mimi.py:330
↓ 2 callersFunctioninference_whisper
(args: argparse.Namespace, qnn_config: QnnConfig, inputs, target)
examples/qualcomm/oss_scripts/whisper/whisper.py:408
↓ 2 callersFunctioninitialize_models
(resize_to_max_canvas: bool)
examples/models/llama3_2_vision/preprocess/test_preprocess.py:45
↓ 2 callersMethodinput_dim_order
( self, input_node: torch.fx.Node, input_order: InputDimOrder )
backends/xnnpack/_passes/channels_last_tagged_reshape_pass.py:343
↓ 2 callersMethodinsert_copy_and_assign_partner_nodes_quantization_sensitive
Wrapper for calling inserting copy between original_input and target_node, but also with inserting quantization nodes or assigning
backends/xnnpack/_passes/channels_last_tagged_reshape_pass.py:277
↓ 2 callersMethodinsert_node
(self, graph_module, node, revert_layout: bool)
backends/qualcomm/_passes/layout_transform.py:224
↓ 2 callersMethodinsert_output_rescale
( self, graph_module, source_node, conv_node, conv_fake_tensor: torch.
backends/arm/_passes/rewrite_conv_pass.py:255
↓ 2 callersMethodinsert_q_dq_pair
( self, graph: torch.fx.Graph, anchor: torch.fx.Node, q_params: tuple, )
backends/xnnpack/_passes/conv1d_unsqueeze_pass.py:46
↓ 2 callersFunctioninsert_qdq_pair_after_node
( graph: torch.fx.Graph, anchor: torch.fx.Node, q_params: tuple )
backends/nxp/edge_passes/move_auxiliary_operator_into_separate_qdq_cluster_pass.py:36
↓ 2 callersFunctioninsert_scalar
Insert an `aten.full` scalar node for direct graph-rewrite passes.
backends/arm/_passes/arm_pass_utils.py:251
↓ 2 callersFunctioninsert_write_back_for_buffers_pass
( ep: ExportedProgram, )
exir/passes/insert_write_back_for_buffers_pass.py:108
↓ 2 callersFunctioninstall_optional_example_requirements
(use_pytorch_nightly)
install_requirements.py:110
↓ 2 callersFunctioninstall_qnn_sdk
Initialize Qualcomm backend: 1. Ensure glibc >= 2.34 (may re-exec under staged loader) 2. Ensure libc++ is available (download + stage i
backends/qualcomm/scripts/download_qnn_sdk.py:754
↓ 2 callersFunctioninstall_requirements
(use_pytorch_nightly)
install_requirements.py:34
↓ 2 callersFunctionint4_matvec
W4A16 matvec for M=1 decode: out[1,N] = x[1,K] @ dequant(w[N,K]).T Args: x: [1, K] bf16 input (M=1) w_packed: [N, K//2] in
backends/cuda/triton/kernels/int4_matmul.py:353
↓ 2 callersMethodio_as_list
Return the `inputs` and `outputs` attributes combined into 1. If they are `None`, return `[]`.
backends/nxp/backend/ir/neutron_ir_post_processing/pattern_matcher.py:74
↓ 2 callersMethodis_ambiguous
An "ambiguous" RepSet is one that is not constrained.
backends/vulkan/utils.py:1010
↓ 2 callersMethodis_backend_failure
(self)
backends/test/suite/reporting.py:98
↓ 2 callersMethodis_cmake_artifact_used
(self, installer: "InstallerBuildExt")
setup.py:242
↓ 2 callersFunctionis_constant
(program: ExportedProgram, node: torch.fx.Node)
backends/vulkan/utils.py:181
↓ 2 callersFunctionis_debug_output
Returns True if the given flatcc.Value is a debug output
devtools/inspector/_inspector_utils.py:292
↓ 2 callersMethodis_default
(self)
backends/arm/common/pipeline_config.py:21
↓ 2 callersMethodis_delegated
(self)
backends/test/suite/reporting.py:207
↓ 2 callersFunctionis_depthwise_conv
A convolution is depthwise if: 1) groups = input_channels (i.e. group_input_channels = 1) 2) output_channels is a positive intege
backends/xnnpack/utils/utils.py:187
↓ 2 callersFunctionis_fbcode
()
export/utils.py:14
↓ 2 callersFunctionis_get_attr
Returns true if the given node is a get attr node for a tensor of the model
backends/apple/mps/utils/mps_utils.py:63
↓ 2 callersFunctionis_get_attr_node
Returns true if the given node is a get attr node for a tensor of the model
backends/transforms/utils.py:62
↓ 2 callersFunctionis_get_attr_node
Returns true if the given node is a get attr node for a tensor of the model
backends/xnnpack/utils/utils.py:92
↓ 2 callersFunctionis_get_attr_node
(node: torch.fx.Node)
backends/vulkan/utils.py:177
↓ 2 callersFunctionis_getitem
(node: torch.fx.Node)
backends/xnnpack/utils/utils.py:50
↓ 2 callersFunctionis_graph_input
(exported_program: ExportedProgram, node: torch.fx.Node)
backends/samsung/utils/utils.py:27
↓ 2 callersMethodis_graph_input
Checks if the given tensor is a graph input Args: tensor: EdgeIR Tensor that is being checked for graph input
backends/xnnpack/operators/node_visitor.py:107
↓ 2 callersMethodis_graph_output
Checks if the given tensor is used as a graph output Args: tensor: EdgeIR Tensor that is being checked for graph input
backends/xnnpack/operators/node_visitor.py:118
↓ 2 callersFunctionis_inplace_variant
(qualified_opname: str, overload: str)
exir/operator/convert.py:366
↓ 2 callersMethodis_input_static_per_tensor_quantized
(self)
backends/vulkan/patterns/quantized_linear.py:236
↓ 2 callersMethodis_layout_sensitive
(self, node: torch.fx.Node)
backends/qualcomm/_passes/layout_transform.py:184
← previousnext →3,501–3,600 of 28,493, ranked by callers