MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 6 callersMethod_validate_and_set_deployment_target
Validate or set minimum deployment target for quantization recipes
backends/apple/coreml/recipes/coreml_recipe_provider.py:223
↓ 6 callersFunctionact_qspec
(is_qat: bool)
backends/nxp/quantizer/neutron_quantizer.py:178
↓ 6 callersMethodadd_post
(self, ops: tflite_model.Operator | list[tflite_model.Operator])
backends/nxp/backend/ir/converter/conversion/common.py:169
↓ 6 callersFunctionannotate_conv
(node: Node, quantization_config: QuantizationConfig)
backends/qualcomm/quantizer/rules.py:182
↓ 6 callersMethodany_in_common
Check if this TensorRepr has any representations in common with another TensorRepr.
backends/vulkan/utils.py:942
↓ 6 callersMethodassert_delegated
(self, model, input_shape, mocker)
backends/nxp/tests/ir/converter/node_converter/test_max_pool_2d_converter.py:258
↓ 6 callersMethodassert_file_content
(self, relativePath: str, expectedContent: str)
tools/cmake/common/__init__.py:98
↓ 6 callersMethodaten_op
(self, quantized: bool = False)
backends/arm/test/ops/test_elu.py:86
↓ 6 callersMethodcalculate_qparams
(self)
backends/qualcomm/quantizer/observers/concat_observer.py:75
↓ 6 callersMethodcall
(self, graph_module: torch.fx.GraphModule)
extension/llm/custom_ops/model_sharding.py:100
↓ 6 callersMethodcall_prepare_schema
Calls _prepare_schema(), using `files` to get the original contents of the schema files.
exir/_serialize/test/test_flatbuffer.py:109
↓ 6 callersMethodcompare_tensors
Checks if the given normal torch tensor is equivalent to the flatbuffer tensor.
exir/tests/test_tensor.py:31
↓ 6 callersFunctionconfigure_32bit_sigmoid_quantizer
(pipeline)
backends/arm/test/ops/test_sigmoid_32bit.py:53
↓ 6 callersFunctionconvert_linear_to_conv2d
(module: torch.nn.Module)
backends/qualcomm/utils/utils.py:148
↓ 6 callersMethodcount_program_io_kinds
Assert the count of inputs/output specs of the ExportedProgram is correct.
backends/arm/test/tester/test_pipeline.py:326
↓ 6 callersFunctioncreate_cadence_pass_filter
( opt_level: int, debug: bool = False, edge_passes_config: Optional[EdgePassesConfig] = None, )
backends/cadence/aot/pass_utils.py:89
↓ 6 callersMethodcreate_call_function_node
( self, graph_module: torch.fx.GraphModule, target: torch.fx.node.Target, args
backends/xnnpack/_passes/channels_last_tagged_reshape_pass.py:189
↓ 6 callersFunctioncreate_channels_first_to_channels_last_permutation
Return a numpy array with data that describes the permutation, which would change a tensor from the channels first (ExecuTorch) format to the chan
backends/nxp/backend/ir/converter/conversion/translator.py:466
↓ 6 callersMethoddecode
(self, tokens)
examples/apple/coreml/llama/run_lookahead.py:43
↓ 6 callersMethoddecode
Decodes a list of token IDs into a string. Args: t (List[int]): The list of token IDs to be decoded. Returns:
examples/models/llama/tokenizer/tiktoken.py:175
↓ 6 callersFunctionembedding_weight_checks
(weight, weight_scales, weight_zero_points)
exir/passes/_quant_patterns_and_replacements.py:99
↓ 6 callersMethodexir_op
(self, quantized: bool = False)
backends/arm/test/ops/test_elu.py:90
↓ 6 callersMethodfind
(self, x)
exir/backend/canonical_partitioners/config_partitioner.py:119
↓ 6 callersFunctionfind_tap_nodes
Helper: enumerate tap.Tensor nodes in a GraphModule (any dialect).
devtools/intermediate_output_tap/_tap_pass.py:266
↓ 6 callersMethodfrom_bytes
Converts the given bytes into an XNNHeader object. We check that the magic and length is valid, but do not check that the offset and
backends/xnnpack/serialization/xnnpack_graph_serialize.py:133
↓ 6 callersMethodgen_decl
(self, fn_name: str, ret_type: str = "void")
backends/vulkan/test/op_tests/utils/gen_computegraph.py:274
↓ 6 callersFunctiongen_max_kernel_num
( oplist_yamls: List[Path], prim_ops_source: Path, output_path: Path, )
codegen/tools/gen_max_kernel_num.py:117
↓ 6 callersMethodgenerate
(prompt: string, sequenceLength: number)
examples/demo-apps/react-native/rnllama/bridge/LlamaBridge.ts:13
↓ 6 callersFunctiongenerate_partitions_from_list_of_nodes
( graph_module: torch.fx.GraphModule, pattern_list: Optional[List[List[torch.fx.Node]]] = None, op
exir/backend/canonical_partitioners/pattern_op_partitioner.py:20
↓ 6 callersFunctionget_class_docstring
Returns a class signature and docstring, as well as documentation for all its public methods with names not matching strings listed in filter_
backends/arm/scripts/docgen/docgen.py:63
↓ 6 callersFunctionget_compute_nodes_in_gm
(graph_module: torch.fx.GraphModule)
backends/cadence/aot/pass_utils.py:157
↓ 6 callersFunctionget_edge_overload_packet
(edge_op: EdgeOpOverload)
backends/cadence/aot/utils.py:141
↓ 6 callersFunctionget_input_qparams
Get the input quantization parameters from a node, set by the 'FoldAndAnnotateQParamsPass'. Raises a ValueError if the node doesn't have any
backends/arm/_passes/fold_qdq_with_annotated_qparams_pass.py:56
↓ 6 callersMethodget_inputs
(self)
backends/arm/test/ops/test_conv_combos.py:107
↓ 6 callersMethodget_inputs
(self)
backends/arm/test/ops/test_conv_combos.py:146
↓ 6 callersMethodget_inputs
(self)
backends/arm/test/modules/test_static_cache.py:103
↓ 6 callersMethodget_inputs
(self, rank=3)
backends/xnnpack/test/ops/test_linear.py:74
↓ 6 callersMethodget_inputs
(self)
devtools/visualization/visualization_utils_test.py:77
↓ 6 callersMethodget_op_nodes
Get all tables that are part of the OpNode union.
backends/mlx/serialization/generate.py:196
↓ 6 callersMethodget_ops_to_preserve_from_decomposition
Get complete list of ops to preserve from decomposition. Delegates preservation choices to QuantizationPattern by aggregating
backends/cadence/aot/quantizer/quantizer.py:301
↓ 6 callersMethodget_resize_parameters_1d
Compute resize coefficients for a single spatial dimension. Args: input_size (int | torch.SymInt): Input size for the axis, possi
backends/arm/_passes/rewrite_upsample.py:45
↓ 6 callersMethodget_stage_artifacts
(self)
export/export.py:473
↓ 6 callersFunctionget_tensor_value
(xvalue: XValue)
backends/xnnpack/operators/node_visitor.py:73
↓ 6 callersMethodget_test_configs
(cls)
backends/mlx/model_ops/test_gated_delta_rule.py:193
↓ 6 callersMethodget_test_model_with_bundled_program
(self)
devtools/etrecord/tests/etrecord_test.py:120
↓ 6 callersMethodget_weight_qspec
Get the validated weight spec. Validate that the weight qscheme is supported (per-tensor or per-channel symmetric) before returning t
backends/arm/quantizer/quantization_config.py:112
↓ 6 callersFunctionis_batch_norm
(node: Node)
backends/nxp/backend/graph_utils.py:37
↓ 6 callersMethodis_empty
A TensorRepSet is "empty" if there are no valid representations of the tensor.
backends/vulkan/utils.py:903
↓ 6 callersMethodis_int8_activations
( cls, qconfig: QuantizationConfig, output_node: Node | None = None )
backends/arm/quantizer/arm_quantizer_utils.py:198
↓ 6 callersFunctionis_tagged_as_implicit_q_dq
(node: torch.fx.Node)
backends/xnnpack/utils/quant_utils.py:56
↓ 6 callersMethodis_transformed_node
(self, node: torch.fx.Node)
backends/qualcomm/_passes/layout_transform.py:179
↓ 6 callersMethodis_valid_op_node
Fails the check for: * nodes that are not associated with a tensor * nodes that are associated with a constant tensor
backends/vulkan/_passes/tag_memory_meta_pass.py:165
↓ 6 callersMethodlog_once
(self, msg: str)
backends/apple/coreml/partition/coreml_partitioner.py:109
↓ 6 callersFunctionmake_test_cases_broadcast_two_input_tensor
A helper to make a list of tuples (test cases). Each tuple contains the name, inputs and output (expanded from *args), dynamic shape
kernels/test/test_case_gen.py:104
↓ 6 callersFunctionmaketest
( module_cls: Type[torch.nn.Module], criteria: Optional[List[Tuple[Callable[..., MemoryAlgoResult], bo
exir/tests/test_memory_planning.py:272
↓ 6 callersFunctionmap_dtype
Map a ``torch.dtype`` to a ``ts.DType``. Args: data_type (torch.dtype): PyTorch dtype to convert. Returns: ts.DType: Matchin
backends/arm/tosa/mapping.py:79
↓ 6 callersMethodmethod_name_from_compile_specs
Extract the method name from the compile specs.
backends/aoti/aoti_backend.py:322
↓ 6 callersFunctionmodule_add_factory
(function: Callable)
backends/arm/test/models/test_torch_functions.py:31
↓ 6 callersMethodoutput
(result: Union[str, int])
examples/mediatek/aot_utils/llm_utils/tokenizers_/english_normalizer.py:272
↓ 6 callersFunctionpack_for_mlx
Pack a quantized weight for MLX. ``Int4Tensor`` is converted to ``IntxUnpackedToInt8Tensor`` so the default dispatch produces the ``dequantiz
examples/models/gemma4_31b/quant/pack_mlx.py:122
↓ 6 callersMethodpartition
Override partition to add deprecation warning when called from to_backend.
backends/xnnpack/partition/xnnpack_partitioner.py:86
↓ 6 callersMethodpixel_shuffle
Perform pixel shuffle downsampling on vision features. Args: vision_features (`torch.Tensor`): Input tensor of sh
examples/qualcomm/oss_scripts/llama/model/vision_encoder.py:261
↓ 6 callersMethodprepare_model
(self)
backends/arm/test/models/test_llama.py:112
↓ 6 callersFunctionquantize_val
(val, scale, zp, qmin, qmax)
backends/cortex_m/passes/passes_utils.py:21
↓ 6 callersFunctionquantized_conv_per_tensor
Quantized convolution operation. Args: - input_tensor (Tensor): The activations tensor - weight (Tensor): The weight tensor
backends/cadence/aot/ref_implementations.py:824
↓ 6 callersMethodregister_implementation
Register one (target, platform, path) combination. Creates one QnnExecuTorchOpPackageInfo per op in torch_op_name_map. Return
backends/qualcomm/custom_op/interface.py:75
↓ 6 callersFunctionregister_test
Class decorator to register a test class. The test class must have: - A class attribute `name` (str) - the base test name - A class
backends/mlx/test/test_utils.py:753
↓ 6 callersMethodrun
A pass for memory planning. The actual algorithm used will be picked by memory_planning_algo
exir/passes/memory_planning_pass.py:229
↓ 6 callersMethodrun
(self)
backends/arm/test/tester/test_pipeline.py:953
↓ 6 callersFunctionrun_external_cmd
(cmd: Sequence[str])
backends/arm/test/test_model.py:113
↓ 6 callersFunctionsave_checkpoint
(output_dir: str)
examples/models/gemma4_31b/tests/test_pipeline.py:140
↓ 6 callersFunctionsave_image
(path: Path, image: Image.Image)
examples/arm/super_resolution_example_vgf/model_export/prepare_demo_assets.py:63
↓ 6 callersMethodserialize_operator
(self, target)
exir/serde/export_serialize.py:495
↓ 6 callersMethodserialize_to_schema
Serialize the current Bundled Program into its schema format for further serialization..
devtools/bundled_program/core.py:88
↓ 6 callersFunctionserver
Mock relevant calls in visualization.visualize and check that parameters have their expected value.
devtools/visualization/visualization_utils_test.py:33
↓ 6 callersMethodset_default_quant_config
Set the default quant config for quantizer. Args: quant_dtype (QuantDtype): Specifies the quantized data type. By defaul
backends/qualcomm/quantizer/quantizer.py:553
↓ 6 callersMethodset_node_finder
Add a quantizer targeting nodes found by the provided finder. ``None`` indicates no quantization for matched nodes.
backends/arm/quantizer/arm_quantizer.py:1159
↓ 6 callersFunctionset_quantization_parameters_to_tensor
Create a TFLite QuantizationParameters object, initialize it from given parameters and add it to the 'tflite_tensor'. :param tflite_tensor: Th
backends/nxp/backend/ir/converter/quantization_utils.py:63
↓ 6 callersFunctiontag_mutated_buffer
Util function for partitioners. This function tags the mutated buffer nodes whose users all belong within the same partition. This should be
exir/backend/utils.py:398
↓ 6 callersFunctionto_2tuple
Normalizes scalars, and 1-element sequences to a tuple of length 2.
backends/arm/_passes/arm_pass_utils.py:409
↓ 6 callersFunctionto_cpp_str
(val: bool)
backends/vulkan/runtime/gen_vulkan_spv.py:1428
↓ 6 callersMethodupdate
(self, input_length, new_k_caches, new_v_caches, update_pos=0)
examples/apple/coreml/llama/llama_transformer.py:578
↓ 6 callersMethodupdate
( self, input_pos: torch.Tensor, k_val: torch.Tensor, v_val: torch.Tensor,
examples/models/gemma4_31b/model.py:85
↓ 6 callersMethodvalidateFilePath
Validates that the given path points to a readable file. @throws IllegalArgumentException if the path is null, does not exist, is not a file, or is n
extension/android/executorch_android/src/main/java/org/pytorch/executorch/ExecuTorchRuntime.java:42
↓ 6 callersFunctionvalidation_disabled
Disables checking functions (ex. if the partitioned graph is identical to the original graph). This context manager should only be used in ce
exir/backend/backend_api.py:147
↓ 6 callersMethodverify_storage_reuse
'allow_lifetime_and_storage_overlap' allows tensors to overlap in both lifetime and storage. If is it False, and two tensors have bot
exir/memory_planning.py:152
↓ 5 callersMethodInit
(self, buf: bytes, pos: int)
exir/_serialize/generated/executorch_flatbuffer/Int.py:29
↓ 5 callersMethodName
(self)
backends/nxp/backend/ir/lib/tflite/Tensor.py:83
↓ 5 callersMethodOffset
(self)
backends/nxp/backend/ir/lib/tflite/StridedSliceOptions.py:72
↓ 5 callersMethod__init__
(self)
test/models/export_delegated_program.py:52
↓ 5 callersMethod__init__
(self, attn_module: nn.Module)
backends/mlx/examples/whisper/export_whisper.py:148
↓ 5 callersMethod__init__
( self, batch_size: int = 1, seq_len: int = 4, num_heads: int = 2, hea
backends/mlx/model_ops/test_gated_delta_rule.py:157
↓ 5 callersMethod__init__
(self)
backends/arm/test/ops/test_while.py:79
↓ 5 callersMethod__init__
(self)
backends/arm/test/passes/test_rewrite_conv_pass.py:123
↓ 5 callersMethod__init__
(self)
backends/xnnpack/test/ops/test_static_constant_pad.py:222
↓ 5 callersMethod__init__
(self, edge_compile_config: Optional[EdgeCompileConfig] = None)
backends/xnnpack/test/tester/tester.py:71
↓ 5 callersMethod__init__
(self, K=256, N=128)
backends/vulkan/test/test_vulkan_passes.py:23
↓ 5 callersMethod__init__
(self)
docs/source/tutorials_source/export-to-executorch-tutorial.py:548
↓ 5 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
examples/models/efficient_sam/efficient_sam_core/efficient_sam_encoder.py:92
↓ 5 callersMethod__init__
(self, model)
examples/models/voxtral_tts/export_voxtral_tts.py:67
← previousnext →1,001–1,100 of 28,493, ranked by callers