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
↓ 9 callers
Function
get_overload_packet
( op: Union[Callable[..., str], str], )
backends/cadence/aot/pass_utils.py:111
↓ 9 callers
Function
get_quant_attrs
( edge_program: torch.export.ExportedProgram, quant_node: torch.fx.Node )
backends/qualcomm/_passes/utils.py:25
↓ 9 callers
Function
get_quantizer_and_quant_params
(llm_config)
examples/models/llama/export_llama_lib.py:817
↓ 9 callers
Function
get_tensor_arg
(node: torch.fx.Node, arg_name: str)
backends/cadence/aot/fuse_ops.py:56
↓ 9 callers
Function
has_single_user
(node: Node)
backends/mlx/pattern_utils.py:67
↓ 9 callers
Function
is_channel_last_dim_order
Check if a tensor has channels last dim order
exir/dim_order_utils.py:70
↓ 9 callers
Function
is_channels_last
Check if a 4D tensor is in channels last format.
backends/cortex_m/passes/passes_utils.py:250
↓ 9 callers
Method
is_deprecated
( self, callable: Callable[[], Any], # pyre-ignore[2]: Any type message: Optional[str
exir/tests/test_warnings.py:75
↓ 9 callers
Method
is_experimental
( self, callable: Callable[[], Any], # pyre-ignore[2]: Any type message: Optional[str
exir/tests/test_warnings.py:100
↓ 9 callers
Method
is_per_tensor
(cls, qspec)
backends/arm/quantizer/arm_quantizer_utils.py:176
↓ 9 callers
Function
is_submodule_node
(node: torch.fx.Node)
backends/arm/_passes/arm_pass_utils.py:42
↓ 9 callers
Method
is_tensor
(self)
exir/dialects/edge/arg/type.py:21
↓ 9 callers
Function
load_prequantized_model
Load a quantized checkpoint and pack for the target backend.
examples/models/gemma4_31b/export.py:43
↓ 9 callers
Method
metadata
Gets the metadata for the method. The metadata includes information about input and output specifications, such as tensor shapes, dat
runtime/__init__.py:150
↓ 9 callers
Function
next_token
(logits: torch.Tensor, temperature: float, top_p: float)
examples/models/llama/runner/generation.py:41
↓ 9 callers
Function
permute_fake_tensor_metadata
( fake_tensor: FakeTensor, permute_dims: tuple[int, ...] )
backends/arm/_passes/arm_pass_utils.py:418
↓ 9 callers
Function
propagate_back_debug_handle
Propagate debug handle from edge dialect program back to the exported program while maintain the correctness of operator tracing. e.g.
devtools/inspector/_inspector_utils.py:1208
↓ 9 callers
Method
quantize_value
Quantizes the input tensor or value to a quantized tensor. If the input is not a tensor, it is converted to a tensor first. If self.p
backends/arm/_passes/quant_args.py:24
↓ 9 callers
Function
requantize_cmsis
Simulate CMSIS-NN's arm_nn_requantize helper.
backends/cortex_m/passes/passes_utils.py:103
↓ 9 callers
Function
require_contiguous_format
Validate that layout/memory_format/dim_order specify contiguous format. MLX only supports contiguous (strided) tensors. Raises ValueError if
backends/mlx/ops.py:266
↓ 9 callers
Function
run_and_parse_first_match
Run command using run_lambda, returns the first regex match if it exists.
util/collect_env.py:126
↓ 9 callers
Function
sample
GPU-side Gumbel-max sampler. When ``temperature`` is ``None`` (the eager / eval default) the function is a no-op and returns ``logits`` uncha
examples/models/qwen3_5_moe/sampler.py:17
↓ 9 callers
Function
select_all
Match if ALL of `selectors` match.
devtools/intermediate_output_tap/_selectors.py:221
↓ 9 callers
Function
set_arg
Set the node's arg with its name to the given value.
backends/transforms/permute_pass_utils.py:118
↓ 9 callers
Function
solve_lloyd_max
Compute optimal Lloyd-Max centroids and boundaries. Uses the Gaussian approximation N(0, 1/d) for the rotated coordinate distribution, which
extension/llm/modules/turboquant/codebook.py:30
↓ 9 callers
Method
step
Performs a single optimization step using the provided gradients. @param namedGradients Map of parameter names to gradient tensors
extension/android/executorch_android/src/main/java/org/pytorch/executorch/training/SGD.java:94
↓ 9 callers
Method
toString
()
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Tensor.java:767
↓ 9 callers
Method
to_torch_dtype
(self)
extension/llm/export/builder.py:52
↓ 9 callers
Function
unwrap_op_overload
Return the underlying ``torch._ops.OpOverload`` for a node target. Handles both raw aten ops (``torch.ops.aten.X.Y``) and edge-dialect wrappe
exir/operator/convert.py:108
↓ 9 callers
Method
update
Compress and store K/V, return compressed cache buffers. Args: input_pos: ``(T,)`` position indices. k_val: ``(1, H,
extension/llm/modules/turboquant/kv_cache.py:146
↓ 9 callers
Method
validate_tensor_allclose
( self, eager_output, executorch_output, rtol=1e-5, atol=1e-5 )
examples/models/test/test_export.py:46
↓ 9 callers
Function
walk_back
Walk backwards through a chain of ops, matching against a pattern. Starting from *node*, try to match each step against the current node.
backends/mlx/pattern_utils.py:196
↓ 8 callers
Method
InitFromObj
(cls, program)
exir/_serialize/generated/executorch_flatbuffer/Program.py:333
↓ 8 callers
Method
Tensors
(self, j)
backends/nxp/backend/ir/lib/tflite/SubGraph.py:37
↓ 8 callers
Method
__init__
(self)
exir/tests/test_serde.py:220
↓ 8 callers
Method
__init__
(self, new_shape_1: list[int], new_shape_2: list[int])
backends/nxp/tests/ir/converter/node_converter/test_view_copy_converter.py:517
↓ 8 callers
Method
__init__
( self, num_features: int, dtype: torch.dtype = torch.float, a
backends/xnnpack/test/ops/test_batch_norm.py:53
↓ 8 callers
Method
__init__
(self, config: WhisperConfig)
examples/mediatek/models/llm_models/modeling_whisper.py:25
↓ 8 callers
Function
_bool_input_fn
Return a callable(shape, dtype) that generates a single-element bool tensor tuple.
backends/mlx/test/test_ops.py:4118
↓ 8 callers
Method
_create_graph_with_kwargs
Create a graph with a node that has specific kwargs.
backends/cadence/aot/tests/test_pass_utils.py:27
↓ 8 callers
Function
_default_decomposition_table
( _use_old_decomp_table=False, )
exir/tracer.py:622
↓ 8 callers
Function
_dequantize_int4
Dequantize packed INT4 [E, N, K//2] back to [E, N, K] float.
backends/cuda/tests/test_fused_moe.py:785
↓ 8 callers
Method
_export_and_check
(self, model, example_inputs)
backends/webgpu/test/ops/add/test_add.py:41
↓ 8 callers
Function
_export_two_op_graph_module
()
backends/cortex_m/test/misc/test_pattern_matcher.py:19
↓ 8 callers
Method
_get_dynamic_shape
(self)
extension/llm/export/builder.py:197
↓ 8 callers
Method
_get_planned_specs
Get the unique set of specs that apply_algo would plan.
exir/tests/test_memory_planning.py:1442
↓ 8 callers
Function
_hidden_states
( config: Phi3Config, dtype: torch.dtype, batch: int = 2, seq: int = 4 )
backends/arm/test/models/phi3/test_phi3_layers.py:45
↓ 8 callers
Function
_int_input_fn
Return a callable(shape, dtype) that generates a single-element integer tensor tuple.
backends/mlx/test/test_ops.py:4127
↓ 8 callers
Function
_is_batch_norm
(node_: Node)
backends/nxp/quantizer/patterns.py:422
↓ 8 callers
Function
_is_input_large_scalar
Check if input is a large scalar value. So that we can skip quantization for the node since histc op (in HistogramObserver) only works for values
backends/xnnpack/quantizer/xnnpack_quantizer_utils.py:725
↓ 8 callers
Function
_is_input_non_float_tensor
Check if the input is not a float tensor, so that we can skip quantization for the node since observers only works with float Tensors
backends/xnnpack/quantizer/xnnpack_quantizer_utils.py:740
↓ 8 callers
Function
_is_kv_donor_layer
Check if this layer donates K/V to later YOCO shared layers. A donor layer is the last non-shared layer before KV sharing starts. The donor i
examples/models/llama/llama_transformer.py:33
↓ 8 callers
Function
_make_model
Create a tiny quantized model, optionally with TurboQuant KV cache.
examples/models/qwen3_5_moe/test_turboquant.py:57
↓ 8 callers
Function
_make_rewrite_pass
( example_inputs: tuple[torch.Tensor, ...], dynamic_shapes: dict[int, object] | None = None, )
backends/arm/test/passes/test_rewrite_conv_pass.py:187
↓ 8 callers
Method
_make_yoco_args
Helper to create ModelArgs with YOCO configuration.
examples/models/llama/tests/test_yoco_attention.py:125
↓ 8 callers
Function
_max_abs_error
(out, ref)
backends/cuda/tests/test_triton_sdpa_splitk.py:61
↓ 8 callers
Method
_merge_supported_types
Return a merged mapping of supported dtype transitions. Args: dtypes1 (dict[torch.dtype, list[torch.dtype]]): Base mapping.
backends/arm/operator_support/to_dim_order_copy_support.py:49
↓ 8 callers
Function
_output_node_at_index
(node, index)
exir/serde/export_serialize.py:407
↓ 8 callers
Function
_replace_input_node_with_new_node
(node, input_node, new_node)
backends/transforms/duplicate_dynamic_quant_chain.py:38
↓ 8 callers
Method
_run_test_with_kv_cache_type
Run a test with the specified KV cache type.
examples/models/llama/tests/test_ring_attention.py:130
↓ 8 callers
Method
_test_representation
( self, model: torch.nn.Module, example_inputs: tuple[Any, ...], quantizer: Qu
backends/xnnpack/test/quantizer/test_representation.py:24
↓ 8 callers
Method
_validate_pipeline_sequence
( self, stages: List[StageType], )
export/export.py:367
↓ 8 callers
Method
add
(lhs: _ExactValues, rhs: _ExactValues)
backends/arm/_passes/symbolic_value_range.py:70
↓ 8 callers
Method
add_edge_dialect_program
Add edge dialect program to the ETRecord after it has been created. This method allows users to add an edge dialect program they wan
devtools/etrecord/_etrecord.py:436
↓ 8 callers
Method
annotate
(self, model: torch.fx.GraphModule)
backends/nxp/quantizer/neutron_quantizer.py:338
↓ 8 callers
Function
annotate_single_in
(node: Node, quantization_config: QuantizationConfig)
backends/qualcomm/quantizer/rules.py:116
↓ 8 callers
Method
assert_programs_equal
(self, program1: Program, program2: Program)
exir/_serialize/test/test_program.py:122
↓ 8 callers
Method
call
(self, graph_module: GraphModule)
backends/arm/test/passes/test_arm_pass_manager_insertions.py:29
↓ 8 callers
Function
callback
(x)
examples/models/llama/experimental/generate.py:167
↓ 8 callers
Function
collect_specs_from_nodes
r""" Collect specs from the passed in nodes. Do filtering as controlled by arguments. Arguments: ignore_graph_input: ignore graph
exir/memory_planning.py:556
↓ 8 callers
Method
convert_ids_to_tokens
( self, ids: int, skip_special_tokens: bool = False )
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils.py:972
↓ 8 callers
Function
copy_node_metadata
(dest_node: fx.Node, src_node: fx.Node)
backends/cadence/aot/quantizer/utils.py:27
↓ 8 callers
Method
count_tosa_ops
Assert the number of TOSA ops in the graph,
backends/arm/test/tester/test_pipeline.py:307
↓ 8 callers
Method
create_model
(input_type: str = "waveform")
backends/arm/test/models/test_w2l_arm.py:53
↓ 8 callers
Method
decode
Converts a sequence of ids in a string, using the tokenizer and vocabulary with options to remove special tokens and clean up tokenization spaces.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_whisper.py:728
↓ 8 callers
Method
dequantize
(self, output_dtype=None)
extension/llm/export/nvfp4.py:91
↓ 8 callers
Method
dump_artifact
(self, path: Optional[str] = None, stage: Optional[str] = None)
backends/test/harness/tester.py:262
↓ 8 callers
Function
example_inputs
()
backends/arm/test/models/test_nss.py:52
↓ 8 callers
Method
exported_program
(self)
backends/arm/test/misc/test_runner_utils.py:16
↓ 8 callers
Method
find_pos
Returns the position of the stage id.
backends/arm/test/tester/test_pipeline.py:263
↓ 8 callers
Method
from_args
To support legacy purposes, this function converts CLI args from argparse to an LlmConfig, which is used by the LLM export process.
extension/llm/export/config/llm_config.py:658
↓ 8 callers
Method
from_native_function
( f: NativeFunction, *, prefix: str = "" )
codegen/api/types/signatures.py:69
↓ 8 callers
Method
from_outputs
(cls, tensor_node: torch.fx.Node)
backends/xnnpack/operators/quant_params.py:363
↓ 8 callers
Function
generate_lpai_compiler_spec
Helper function generating backend options for QNN LPAI Args: fps: Specifies how frequently inference must be completed.
backends/qualcomm/utils/utils.py:1066
↓ 8 callers
Method
generate_prompt
( self, instruction: str, input: Union[None, str] = None, label: Union[None, s
examples/mediatek/aot_utils/llm_utils/preformatter.py:27
↓ 8 callers
Function
get_activation
(activation, inplace)
backends/nxp/tests/models.py:725
↓ 8 callers
Method
get_cache_shape
(self, length)
examples/apple/coreml/llama/llama_transformer.py:530
↓ 8 callers
Function
get_common_executorch_program
Helper function to generate a sample BundledProgram with its config.
devtools/bundled_program/util/test_util.py:254
↓ 8 callers
Function
get_cond_while_submodules_nested
Recursively find cond/while_loop submodules in an GraphModule. In nested control flow graphs, FX records the submodule functions (true/false
backends/arm/_passes/arm_pass_utils.py:379
↓ 8 callers
Function
get_delegates
Returns the list of delegates from the graph.
exir/backend/utils.py:275
↓ 8 callers
Method
get_executorch_program
Get the ExecutorchProgram from the ExecutorchProgramManager. Returns: The ExecutorchProgram Raises:
export/export.py:538
↓ 8 callers
Function
get_gemma3n_audio_test_config
()
backends/arm/test/models/Gemma3n/gemma3n_test_config.py:32
↓ 8 callers
Function
get_gemma3n_text_test_config
()
backends/arm/test/models/Gemma3n/gemma3n_test_config.py:17
↓ 8 callers
Method
get_input_act_qspec
Get the validated input activation spec. Validate that the input activation qscheme is supported before returning the spec.
backends/arm/quantizer/quantization_config.py:51
↓ 8 callers
Method
get_inputs
(self)
backends/arm/test/ops/test_where.py:37
↓ 8 callers
Function
get_node_debug_info
( node: torch.fx.Node, graph_module: torch.fx.GraphModule | None = None )
backends/arm/common/debug.py:23
↓ 8 callers
Method
get_quant_encoding_conf
( self, node: torch.fx.Node, target_node: torch.fx.Node )
backends/qualcomm/builders/node_visitor.py:290
↓ 8 callers
Method
get_random_inputs
(self)
exir/tests/models.py:91
↓ 8 callers
Method
get_summary
Get a summary of the delegation information in string format. Args: None Returns: A string containi
devtools/backend_debug/delegation_info.py:55
↓ 8 callers
Function
get_uint8_io_quantization_config
Create a uint8 IO quantization config for TOSA backends. This config is intended for model inputs/outputs only. Internal tensors should remai
backends/arm/quantizer/arm_quantizer.py:243
← previous
next →
701–800 of 28,493, ranked by callers