Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/executorch
/ functions
Functions
28,493 in github.com/pytorch/executorch
⨍
Functions
28,493
◇
Types & classes
6,584
↳
Endpoints
346
↓ 3 callers
Method
get_inputs
(self)
extension/training/pybindings/test/test.py:31
↓ 3 callers
Function
get_ios_recipe
Get iOS-optimized recipe for specified hardware configuration. Supported configurations: - 'ios-arm64-coreml-fp32': CoreML + XNNPACK fal
export/target_recipes.py:60
↓ 3 callers
Function
get_logger
()
examples/qualcomm/util_scripts/cli.py:63
↓ 3 callers
Function
get_lowered_module_name
Adds the given lowered_module into the given root module and returns the name of the module added.
exir/delegate.py:151
↓ 3 callers
Function
get_map_dtype
(dtype)
backends/samsung/builders/utils.py:50
↓ 3 callers
Method
get_metadata
(self)
examples/qualcomm/oss_scripts/llama/model/static_llama.py:807
↓ 3 callers
Method
get_min_max
(self, n_bit: int = 4)
backends/apple/mps/test/test_mps_linear.py:308
↓ 3 callers
Function
get_name_of_node_output
(node: Node, output_index: int)
backends/nxp/backend/ir/converter/tensor_utils.py:54
↓ 3 callers
Function
get_node_spec_attr
(node: torch.fx.Node, attr: str, return_first: bool = True)
backends/vulkan/utils.py:1657
↓ 3 callers
Function
get_node_visitors
Create a new class instance at runtime, and put them in a dict
backends/qualcomm/builders/node_visitor_manager.py:52
↓ 3 callers
Method
get_num_memories
Get num memories indexed from 1..N, compatible with EXIR's spec.mem_id.
backends/cadence/aot/memory_planning_algo.py:102
↓ 3 callers
Function
get_ones_tensor
(tensor_info, logger)
examples/qualcomm/qaihub_scripts/utils/export.py:88
↓ 3 callers
Function
get_op_overload
Arguments: qualified_opname: string like {namespace}::{op name} overload: the overload string of the op
exir/operator/convert.py:183
↓ 3 callers
Method
get_operators_list
(self)
exir/verification/interpreter.py:158
↓ 3 callers
Method
get_or_create_value_for
(self, arg: _Argument)
backends/vulkan/serialization/vulkan_graph_builder.py:347
↓ 3 callers
Function
get_out_args_from_opoverload
(op_overload: OpOverload)
exir/operator/convert.py:93
↓ 3 callers
Method
get_output_order_workaround
Gets whether the output order workaround is being applied.
backends/arm/common/arm_compile_spec.py:345
↓ 3 callers
Method
get_permutation
(self, permute_node: torch.fx.Node)
backends/transforms/remove_permutes_around_elementwise_ops.py:530
↓ 3 callers
Function
get_permuted_dims
Applies the permutation as given by node onto the dimensions given in input.
backends/transforms/permute_pass_utils.py:77
↓ 3 callers
Method
get_prepared_qat_module
( self, module: torch.nn.Module, inputs: Tuple[torch.Tensor], is_conv_per_chan
backends/qualcomm/tests/utils.py:799
↓ 3 callers
Method
get_qdq_cluster
Returns the QDQ cluster of the operator, if quantized. If operator is not quantized, returns empty list.
backends/nxp/neutron_partitioner.py:164
↓ 3 callers
Function
get_quantization
Returns quant and dequant op of same type (per_channel/ tensor) as op if op is a dequant node, None otherwise.
backends/arm/_passes/decompose_meandim_pass.py:61
↓ 3 callers
Method
get_serialized_data
( self, tensor: torch.tensor, mps_graph: MPSGraph, mps_data_type: MPSDataType,
backends/apple/mps/operators/node_visitor.py:251
↓ 3 callers
Method
get_serialized_dtype
( self, node: torch.fx.Node, )
backends/apple/mps/operators/node_visitor.py:323
↓ 3 callers
Method
get_serialized_id
Map a tensor to a unique id. If the tensor was already mapped, return the existent id. Args: node (Union[torch.f
backends/apple/mps/operators/node_visitor.py:293
↓ 3 callers
Function
get_split_model
( model, out_target_split_size=1, out_max_splits=1, in_target_split_size=1, in_max_splits=
examples/apple/coreml/llama/test.py:16
↓ 3 callers
Method
get_table_report
Returns a string containing a table listing all rejected nodes. The table looks something like this: ╒══════════════════════════╤═════
exir/backend/utils.py:616
↓ 3 callers
Function
get_target_canonical_name
(node: torch.fx.Node)
backends/vulkan/test/test_vulkan_passes.py:73
↓ 3 callers
Function
get_tensor_name
(exp_prog: ExportedProgram, node: torch.fx.Node)
backends/xnnpack/utils/utils.py:128
↓ 3 callers
Method
get_text_config
Return self for HF StaticCache compatibility.
backends/mlx/test/test_ops.py:2385
↓ 3 callers
Function
get_transform_passes
(additional_passes=None)
backends/xnnpack/utils/configs.py:22
↓ 3 callers
Function
get_uint8_tensor_spec
(observer_or_fake_quant_ctr)
backends/example/example_quantizer.py:25
↓ 3 callers
Method
git_hash
The current git hash, if known.
setup.py:120
↓ 3 callers
Function
graph_contains_any
(graph: Graph, condition: Callable[[Node], bool])
backends/nxp/tests/executors.py:393
↓ 3 callers
Method
half
(self)
examples/models/llama/experimental/subclass.py:187
↓ 3 callers
Function
has_quantized_out_variants
()
examples/arm/super_resolution_example_vgf/model_export/export_super_resolution.py:55
↓ 3 callers
Method
image_embedding
(self, images: torch.Tensor)
examples/models/llava/model.py:253
↓ 3 callers
Method
included_ops
()
backends/arm/_passes/insert_table_ops.py:119
↓ 3 callers
Method
inject_dsinfo_to_graph
ignore_first_ph: This argument is added for map node. For map node, the first placeholder is special and we need ignore it here
exir/passes/dynamic_shape_prop_pass.py:89
↓ 3 callers
Method
input
()
backends/arm/test/passes/test_convert_permute_singleton_to_view_pass.py:50
↓ 3 callers
Method
input_to_nchw
( self, graph_module: torch.fx.GraphModule, input_node: torch.fx.Node, target_
backends/xnnpack/_passes/channels_last_tagged_reshape_pass.py:430
↓ 3 callers
Function
inspect_node
Inspect a node by highlighting the node in the graph as well as the stacktrace. Args: graph: The graph containing the node n
exir/print_program.py:378
↓ 3 callers
Method
is_auxiliary_node
(node: torch.fx.Node)
backends/nxp/neutron_partitioner.py:103
↓ 3 callers
Function
is_const
( arg, exported_program: ExportedProgram, const_node_to_tensor: Mapping[torch.fx.Node, torch.Tenso
exir/passes/constant_prop_pass.py:56
↓ 3 callers
Function
is_contiguous_dim_order
Check if a tensor has contiguous dim order
exir/dim_order_utils.py:81
↓ 3 callers
Function
is_dequant_node
(node: torch.fx.Node)
backends/vulkan/utils.py:126
↓ 3 callers
Function
is_get_attr_node
Returns true if the given node is a get attr node for a tensor of the model.
backends/arm/_passes/arm_pass_utils.py:52
↓ 3 callers
Method
is_node_alone_in_partition
Return True if `node` is the only node in its partition for which `filter_fn` returns True. The function finds the unique partition c
backends/nxp/backend/ir/converter/node_converter.py:196
↓ 3 callers
Function
is_node_in_flattened_output
(graph: torch.fx.Graph, node: torch.fx.Node)
backends/cadence/aot/utils.py:185
↓ 3 callers
Method
is_node_permutable
(self, node: torch.fx.Node)
backends/transforms/remove_permutes_around_elementwise_ops.py:389
↓ 3 callers
Function
is_output_annotated
Return True if the node's output is annotated. Args: node (Node): FX node to inspect. Returns: bool: True if annotated and a
backends/arm/quantizer/arm_quantizer_utils.py:61
↓ 3 callers
Function
is_per_channel
(node: torch.fx.Node)
backends/xnnpack/utils/quant_utils.py:111
↓ 3 callers
Method
is_per_channel
Determine if this quantization is per channel, instead of per tensor.
backends/nxp/backend/ir/tflite_generator/tflite_model.py:255
↓ 3 callers
Method
is_placed
Check if the spec is placed.
backends/cadence/aot/memory_planning_algo.py:62
↓ 3 callers
Function
is_qnn_sdk_version_less_than
(target_version)
backends/qualcomm/utils/utils.py:1427
↓ 3 callers
Method
is_sliding_attention
Check if layer uses sliding window attention.
examples/models/gemma4/text_decoder/gemma4_config.py:225
↓ 3 callers
Method
is_success
(self)
backends/test/suite/reporting.py:92
↓ 3 callers
Function
is_supported_platform_for_coreml_lowering
()
export/utils.py:19
↓ 3 callers
Function
is_supported_platform_for_qnn_lowering
()
export/utils.py:37
↓ 3 callers
Method
is_tensor
(self)
exir/pass_base.py:145
↓ 3 callers
Function
is_tensor_invariant_permutation
( input_shape: list[int], permutation: list[int] )
backends/nxp/backend/neutron_operator_support.py:15
↓ 3 callers
Method
is_tensor_list
(self)
exir/dialects/edge/arg/type.py:24
↓ 3 callers
Function
is_update_cache_node
(node: Any)
backends/vulkan/patterns/sdpa.py:22
↓ 3 callers
Method
is_valid
(self)
backends/mlx/pte_inspector.py:72
↓ 3 callers
Method
is_valid
Returns true if the flat_tensor header appears to be well-formed.
extension/flat_tensor/serialize/serialize.py:175
↓ 3 callers
Method
is_valid_placement
Returns true if the spec can be placed at the given memory id.
backends/cadence/aot/memory_planning_algo.py:129
↓ 3 callers
Method
is_valid_score
(self, score: float)
backends/qualcomm/debugger/qcom_numerical_comparator_sample.py:31
↓ 3 callers
Method
is_well_defined
Determine if the shape is not empty and also is not symbolic. :return: True, if the shape contains just positive integers.
backends/nxp/backend/ir/tflite_generator/tflite_model.py:325
↓ 3 callers
Function
layout_enum
(layout: torch.layout)
exir/tensor.py:320
↓ 3 callers
Method
loadMethod
Load a method on this module. This might help with the first time inference performance, because otherwise the method is loaded lazily when it's execu
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Module.java:154
↓ 3 callers
Function
load_checkpoint_from_pytorch_model
(input_dir: str)
examples/models/checkpoint.py:82
↓ 3 callers
Function
load_image_tensor
(image_path: str | Path)
examples/arm/super_resolution_example_vgf/model_export/common.py:73
↓ 3 callers
Function
load_model
(checkpoint_path, params_path, max_seq_length, use_cache_list)
examples/apple/coreml/llama/llama_transformer.py:421
↓ 3 callers
Method
lookahead_decode
( self, model, init_token: int, n: int, ngram_size: int, windo
examples/apple/coreml/llama/llama_transformer.py:802
↓ 3 callers
Function
make_allocation_info
Creates the allocation_details object for creating tensors
exir/tensor.py:329
↓ 3 callers
Function
make_copy_of_inputs
(sample_inputs: Tuple[Any])
backends/vulkan/test/utils.py:584
↓ 3 callers
Method
make_op_repsets
( self, op_node: torch.fx.Node, texture_limits: utils.ImageExtents = utils.DEFAULT_TEX
backends/vulkan/op_registry.py:108
↓ 3 callers
Method
make_union
Merge this TensorRepSet with another TensorRepSet, returning a new TensorRepSet with the union of the two.
backends/vulkan/utils.py:921
↓ 3 callers
Function
map_args
( op: torch._ops.OpOverload, fn: Fn, args: Argument, kwargs: Dict[str, Argument], )
exir/pass_base.py:813
↓ 3 callers
Method
mark_as_transformed
(self, node: torch.fx.Node)
backends/qualcomm/_passes/layout_transform.py:162
↓ 3 callers
Method
match_patterns
Iterate over the model and yield matched patterns of operators.
backends/nxp/backend/ir/neutron_ir_post_processing/pattern_matcher.py:871
↓ 3 callers
Method
merge_named_data_store
Merge another NamedDataStore into this one. Args: other (NamedDataStore): the other NamedDataStore to merge. Rais
exir/_serialize/_named_data_store.py:218
↓ 3 callers
Function
meta_has_shape_mark
Check if NodeMetadata has TosaSpecialDtype set to SHAPE.
backends/arm/tosa/dialect/shape.py:18
↓ 3 callers
Function
mlx_source_transformations
Apply MLX source transformations to a Gemma 4 31B model in-place. Self-contained MLX adaptation. After calling this, the model has signature
examples/models/gemma4_31b/mlx_source_transformations.py:150
↓ 3 callers
Function
node_is_static_tensor
Return `True` if the given `node` has static data in the `parameters_mapping` dict. :param node: Tensor node to check for data. :param paramet
backends/nxp/backend/edge_helper.py:68
↓ 3 callers
Function
normalize_reduction_dim
Normalize dim argument for reduction operations. Extracts and normalizes the dim argument from handler args, returning a list of axes an
backends/mlx/ops.py:326
↓ 3 callers
Function
num_tensors_in_node
Returns the number of tensors associated a given node
backends/vulkan/utils.py:293
↓ 3 callers
Function
output_dtypes_are_supported
Returns true if the output of the given tensor node has dtype that is supported by the Vulkan backend.
backends/vulkan/utils.py:320
↓ 3 callers
Function
pack_linear_for_cuda
Assign a quantized weight to an ``nn.Linear`` module.
examples/models/gemma4_31b/quant/pack_cuda.py:29
↓ 3 callers
Function
pad_to
Returns the input followed by enough zero bytes to become the requested length. Args: data: The data to pad. length: The length o
exir/_serialize/padding.py:10
↓ 3 callers
Function
pad_to
(data: bytes, size: int)
backends/vulkan/serialization/vulkan_graph_serialize.py:182
↓ 3 callers
Function
parametrize
Custom version of pytest.mark.parametrize with some syntatic sugar and added xfail functionality. - test_data is expected as a dict of (id, t
backends/arm/test/common.py:241
↓ 3 callers
Function
parse_config_arg
()
extension/llm/export/export_llm.py:48
↓ 3 callers
Function
parse_dequant_node
Parse a torchao.dequantize_affine node. Accepts N-dimensional block_size with a single non-1 element identifying the quantized dimension and
backends/mlx/builder/op_helpers.py:312
↓ 3 callers
Function
parse_mlx_flatbuffer
Parse MLX FlatBuffer data into a dict using the generated FlatBuffer bindings.
backends/mlx/pte_inspector.py:258
↓ 3 callers
Function
parse_yaml_files
Parses functions.yaml and custom_ops.yaml files. Args: tags_yaml_path: Path to a tags.yaml file to satisfy codegen parsing. I
codegen/gen.py:798
↓ 3 callers
Method
partition_types
(self)
backends/nxp/quantizer/patterns.py:846
↓ 3 callers
Method
partition_types
(self)
backends/cadence/aot/quantizer/patterns.py:120
↓ 3 callers
Method
place_spec
Place the spec at the given memory and offset.
backends/cadence/aot/memory_planning_algo.py:41
↓ 3 callers
Function
post_process_inference_speed
(output_holder: List, host_performance_path: str)
examples/qualcomm/oss_scripts/llama/decoder_runtime_evaluator.py:60
← previous
next →
2,101–2,200 of 28,493, ranked by callers