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
↓ 2 callers
Method
serialize_inputs
( self, target: torch._ops.OpOverload, args, kwargs=None )
exir/serde/export_serialize.py:637
↓ 2 callers
Method
serialize_operator
( self, target: Union[ str, EdgeOpOverload, BackendOpOverl
exir/serde/serialize.py:58
↓ 2 callers
Method
serialize_sym_bool_output
(self, name, meta_val)
exir/serde/export_serialize.py:931
↓ 2 callers
Method
serialize_sym_int_output
(self, name, meta_val)
exir/serde/export_serialize.py:926
↓ 2 callers
Method
serialize_sym_op_inputs
(self, op, args)
exir/serde/export_serialize.py:628
↓ 2 callers
Function
serialize_vulkan_graph
( vk_graph: VkGraph, const_tensors: List[torch.Tensor], custom_shaders: List[str] )
backends/vulkan/serialization/vulkan_graph_serialize.py:247
↓ 2 callers
Function
serialize_xnnpack_binary
Returns the runtime binary representation of the given XNNGraph. Args: xnnpack_graph: XNNGraph object to serialize. Returns:
backends/xnnpack/serialization/xnnpack_graph_serialize.py:354
↓ 2 callers
Function
set_arg_node_repr_or_transition
Does one of following: 1. Sets the `node_repr` of the argument at `arg_i` of `op_node` if the argument node does not currently have a
backends/vulkan/_passes/tag_memory_meta_pass.py:55
↓ 2 callers
Method
set_edge_ep
(self, edge_ep: exir.ExirExportedProgram)
backends/qualcomm/debugger/qnn_intermediate_debugger.py:38
↓ 2 callers
Method
set_etrecord_file_path
(self, etrecord_file_path: str)
backends/qualcomm/debugger/qnn_intermediate_debugger.py:41
↓ 2 callers
Function
set_mapping_for_op
op can either be a functional op, mutable op, or out variant op. This method is only called if 1. either op is a functional op and it's m
exir/operator/convert.py:201
↓ 2 callers
Function
set_node_spec_attr
(node: torch.fx.Node, attr: str, value)
backends/vulkan/utils.py:1634
↓ 2 callers
Method
set_output_dir
Set the directory where the .pte file will be saved. Args: output_dir (str): The directory to store the .pte file.
extension/llm/export/builder.py:154
↓ 2 callers
Method
set_output_order_workaround
Sets whether to apply the output order workaround. Args: output_order_workaround: Boolean indicating whether to apply the workaro
backends/arm/common/arm_compile_spec.py:332
↓ 2 callers
Method
set_precision
(self, precision: Precision)
backends/samsung/quantizer/qconfig.py:165
↓ 2 callers
Method
set_recipe
(self, recipe)
backends/qualcomm/quantizer/quantizer.py:587
↓ 2 callers
Method
set_submodule_qconfig_list
Set specific quant config from a callback function. If a node fits more than one callback, only apply the first one.
backends/qualcomm/quantizer/quantizer.py:591
↓ 2 callers
Method
set_value
Given an index in the value list, and a value, updates Interpreter's value in value list at given index in place If value is
exir/verification/interpreter.py:266
↓ 2 callers
Function
setting_python_recursive_limit
Temporarily increase the python interpreter stack recursion limit. This is mostly used for pickling large scale modules.
exir/common.py:129
↓ 2 callers
Method
setup_caches
(self)
extension/llm/custom_ops/test_sdpa_with_kv_cache.py:345
↓ 2 callers
Function
setup_environment
()
backends/qualcomm/tests/test_qnn_delegate.py:9946
↓ 2 callers
Method
setup_inspector
(self, etdump_path: str, debug_buffer_path: str)
backends/qualcomm/debugger/qnn_intermediate_debugger.py:44
↓ 2 callers
Method
setup_model_for_testing
(self, model_class, additional_supported_nodes=None)
exir/backend/test/test_group_partitioner.py:390
↓ 2 callers
Method
setup_quant_params
( self, quant_dtype: Precision, is_per_channel=True, is_qat=False )
backends/samsung/quantizer/quantizer.py:36
↓ 2 callers
Method
should_delegate
(self, n: torch.fx.Node)
backends/qualcomm/utils/utils.py:113
↓ 2 callers
Function
should_lower_to_edge
Returns true if the given operator should be lowered to edge op.
exir/passes/replace_aten_with_edge_pass.py:37
↓ 2 callers
Method
should_skip
(self, n: torch.fx.Node)
backends/qualcomm/utils/utils.py:116
↓ 2 callers
Function
should_skip_model
Check if a model should be skipped for testing. Priority order: 1. Model-specific dtype skip (e.g., "skip_bfloat16") 2. Model-specif
backends/apple/metal/tests/test_modules.py:849
↓ 2 callers
Function
show_mlx_instructions
(pte_data: bytes)
backends/mlx/pte_inspector.py:626
↓ 2 callers
Function
single_node_impl
(node: torch.fx.Node)
backends/vulkan/_passes/tag_memory_meta_pass.py:74
↓ 2 callers
Function
single_return
( output: LeafValue, proxy: torch.fx.Proxy, wrapper: Callable[..., LeafValue], )
exir/tracer.py:187
↓ 2 callers
Function
solve
(prob, target, k)
examples/mediatek/eval_utils/eval_oss_result.py:40
↓ 2 callers
Method
source_transform
Apply source transforms to the model. The transforms are callables that takes nn.Module as input and returns nn.Module. Args:
examples/qualcomm/oss_scripts/llm_utils/qnn_decoder_model_manager.py:105
↓ 2 callers
Function
specs_dict
(specs: Sequence[InputSpec | OutputSpec], title: str)
backends/arm/test/tester/arm_tester.py:1191
↓ 2 callers
Method
stage_type
Returns the type of the stage.
backends/test/harness/stages/stage.py:28
↓ 2 callers
Method
stage_type
(self)
backends/arm/test/tester/arm_tester.py:333
↓ 2 callers
Method
stop
()
examples/demo-apps/react-native/rnllama/bridge/LlamaBridge.ts:14
↓ 2 callers
Method
stop_tokens
(self)
examples/apple/coreml/llama/run_lookahead.py:53
↓ 2 callers
Function
store_test_data
(path="./cifar10_test_data", count=10)
examples/nxp/experimental/cifar_net/cifar_net.py:226
↓ 2 callers
Function
stride_check
Check if strides are within U55 constraints. Args: strides (tuple[int, int]): Vertical and horizontal strides. Returns: bool
backends/arm/operator_support/pool_2d_support.py:46
↓ 2 callers
Method
string
The version string.
setup.py:139
↓ 2 callers
Function
strip_et_fields
Given a loaded yaml representing a list of operators, remove ET specific fields from every entries for BC compatibility
codegen/parse.py:152
↓ 2 callers
Method
suggest_recipe_overrides
Suggests precision upgrades on top of the recipe used during analysis. This function is intended to locate layer groups where the cu
examples/qualcomm/oss_scripts/llama/mix_precision_analyzer.py:338
↓ 2 callers
Method
supported_precision_types
Returns the supported PrecisionType of this partitioner config
backends/xnnpack/partition/config/xnnpack_config.py:80
↓ 2 callers
Function
swap_modules
( module: torch.nn.Module, condition: Callable[[torch.nn.Module], bool], convert_func: Callable[[t
exir/tests/test_memory_planning.py:79
↓ 2 callers
Function
tap_compare
One-shot AOT-vs-runtime numerical-debugging helper. Runs the full pipeline: export -> tap -> capture AOT reference values -> lower with
devtools/intermediate_output_tap/_convenience.py:41
↓ 2 callers
Function
tensor_node_is_bool
Returns true if a given node contains a tensor with bool dtype
backends/vulkan/utils.py:428
↓ 2 callers
Function
tensor_node_is_high_dim
Returns true if a given node contains a tensor with more than 4 dimensions
backends/vulkan/utils.py:718
↓ 2 callers
Function
tensor_rank
(tensor: torch.Tensor)
backends/nxp/backend/edge_helper.py:46
↓ 2 callers
Function
tensor_to_cpp_code
(tensor: torch.Tensor)
kernels/test/test_case_gen.py:229
↓ 2 callers
Function
test_comprehensive
Test model with clear digit patterns. Args: model: The PyTorch model to test
examples/raspberry_pi/pico2/export_mlp_mnist.py:122
↓ 2 callers
Function
test_visualize_manual_export
(server)
devtools/visualization/visualization_utils_test.py:84
↓ 2 callers
Function
texel_component_type
(dtype: str)
backends/vulkan/runtime/gen_vulkan_spv.py:225
↓ 2 callers
Method
to_detail_str
(self)
backends/test/suite/reporting.py:109
↓ 2 callers
Method
to_dtype
Convert the model to the specified dtype. Args: dtype_override (Optional[DType]): Override the dtype of the model.
extension/llm/export/builder.py:163
↓ 2 callers
Function
to_list
( x: Union[torch.Size, int, List[int], Tuple[int]] )
exir/tensor.py:359
↓ 2 callers
Method
to_native_string
(self)
codegen/model.py:128
↓ 2 callers
Function
to_nd_array
(v: Union[bool, numbers.Number, ndarray, torch.Tensor])
backends/cadence/runtime/runtime.py:155
↓ 2 callers
Function
to_py_obj
Convert a TensorFlow tensor, PyTorch tensor, Numpy array or python list to a python list.
examples/mediatek/aot_utils/llm_utils/tokenizers_/utils.py:242
↓ 2 callers
Method
to_short_str
(self)
backends/test/suite/reporting.py:101
↓ 2 callers
Function
torch_tensor_to_numpy
(tensor: torch.Tensor)
backends/arm/test/runner_utils.py:184
↓ 2 callers
Method
trace
Traces the given graph module.
exir/tracer.py:481
↓ 2 callers
Function
train_cifarnet_model
( cifar_net: nn.Module | torch.fx.GraphModule, batch_size: int = 1, num_epochs: int = 1, )
examples/nxp/experimental/cifar_net/cifar_net.py:171
↓ 2 callers
Function
train_step
(model, optimizer)
backends/nxp/tests/generic_tests/test_quantizer.py:604
↓ 2 callers
Function
transform_embedding_for_pre_quantization
Transform the model to be able to load pre-quantized checkpoints that are quantized with the given bit_width and group size for embedding.
examples/models/llama/source_transformation/pre_quantization.py:170
↓ 2 callers
Function
transform_linear_for_pre_quantization
Transform the model to be able to load pre-quantized checkpoints that are quantized with the given group size and quantization mode for l
examples/models/llama/source_transformation/pre_quantization.py:63
↓ 2 callers
Function
transform_output_linear_for_pre_quantization
Transform the model to be able to load pre-quantized checkpoints that has the output layer quantized per-channel.
examples/models/llama/source_transformation/pre_quantization.py:123
↓ 2 callers
Function
tree_return
( outputs: Value, proxy: torch.fx.Proxy, wrapper: Callable[..., LeafValue], meta_type: Callabl
exir/tracer.py:198
↓ 2 callers
Function
trunc
(a: _SymScalar)
exir/passes/executorch_prim_ops_registry.py:109
↓ 2 callers
Method
try_dequantize
(self, node: torch.fx.Node, tensor: torch.Tensor)
backends/qualcomm/builders/op_batch_norm.py:46
↓ 2 callers
Function
try_get_input
Return the input tensors of 't_op' at index 'idx', or None if the operator doesn't have that input. This function should ALWAYS be used to ge
backends/nxp/backend/ir/converter/conversion/common.py:27
↓ 2 callers
Function
typename
(target: Any)
backends/qualcomm/debugger/format_outputs.py:35
↓ 2 callers
Function
unpack_uint4
Get the original weight from the normalized float weight format
examples/models/llama/experimental/subclass.py:47
↓ 2 callers
Function
unwrap_proxy
(t: LeafValue)
exir/tracer.py:180
↓ 2 callers
Function
update
(key: K, args: MutableMapping[K, PyTree], schema: ArgSchema)
exir/pass_base.py:824
↓ 2 callers
Method
update
Update KV cache with new key-value pairs. Uses ring buffer indexing for positions >= sink_size.
examples/models/llama/source_transformation/attention_sink.py:254
↓ 2 callers
Function
update_all_tensors_lifetime
r""" Set the lifetime for all the tensors encountered in the Fx graph.
exir/memory_planning.py:665
↓ 2 callers
Method
update_encoding
(self, node: torch.fx.Node, tensor: torch.Tensor, eps)
backends/qualcomm/builders/op_batch_norm.py:37
↓ 2 callers
Function
update_features_impl
(op: OpKey)
backends/vulkan/op_registry.py:134
↓ 2 callers
Method
update_placeholder_tensor_specs
Update the tensor specs for all placeholder nodes such that placeholders that are parameters are marked as constant.
exir/passes/spec_prop_pass.py:99
↓ 2 callers
Function
update_tensor_data_and_save
(exported_program, ptd_model_path, pte_model_path)
extension/training/examples/CIFAR/export.py:196
↓ 2 callers
Function
using_tracer
Set the "current" global tracer within the scope of using_tracer context manager. Since various things we want to capture today with tor
exir/tracer.py:387
↓ 2 callers
Method
valid
(self, op: tflite_model.Operator)
backends/nxp/backend/ir/converter/builder/quantization_verification.py:191
↓ 2 callers
Method
validate
(self)
backends/nxp/backend/ir/neutron_ir_post_processing/pattern_matcher.py:524
↓ 2 callers
Method
validate
( self, encoder, decoder, dataset, targets: Optional[List[torch.Tensor
examples/qualcomm/oss_scripts/t5/t5_model.py:455
↓ 2 callers
Function
validate_cf_extension
Ensure that the requested control-flow operator is supported by the active TOSA spec.
backends/arm/operators/operator_validation_utils.py:155
↓ 2 callers
Function
validate_per_tensor_quant
(node: torch.fx.Node, qspec: QuantizationSpec)
backends/arm/test/quantizer/test_set_module_name.py:46
↓ 2 callers
Function
valuetype_type
( t: Type, *, binds: ArgName, )
codegen/api/et_cpp.py:67
↓ 2 callers
Function
vela_bin_pack_io
(prefix, data)
backends/arm/arm_vela.py:37
↓ 2 callers
Function
vela_compile
Compile a TOSA graph to a binary stream for ArmBackendEthosU using Vela.
backends/arm/arm_vela.py:63
↓ 2 callers
Function
verbose_export
()
examples/models/llama/export_llama_lib.py:156
↓ 2 callers
Function
verify_cifarnet_model
Test the CifarNet model on the CifarNet10 testing dataset and return the accuracy. This function may at some point in the future be integrated in
examples/nxp/experimental/cifar_net/cifar_net.py:205
↓ 2 callers
Method
verify_target
(self, target: str)
backends/nxp/backend/neutron_converter_manager.py:55
↓ 2 callers
Method
visit
( # noqa: C901 self, node: torch.fx.Node, subgraph: Subgraph, processed_nodes
backends/transforms/remove_permutes_around_elementwise_ops.py:253
↓ 2 callers
Function
visualize_graph
Overrides the graph_module of the supplied exported_program with 'graph_module' before visualizing. Also disables validating operators to allow vi
devtools/visualization/visualization_utils.py:282
↓ 2 callers
Function
visualize_model_explorer
Wraps the visualize_from_config call from model_explorer.
devtools/visualization/visualization_utils.py:141
↓ 2 callers
Method
wrap_check
Wrap the operator_support, reporting rejects with the specified message.
exir/backend/utils.py:648
↓ 2 callers
Method
writeResult
()
extension/benchmark/android/benchmark/app/src/main/java/org/pytorch/minibench/BenchmarkActivity.java:83
↓ 2 callers
Function
write_csv_header
(output: TextIO)
backends/test/suite/reporting.py:371
↓ 2 callers
Function
write_csv_row
(record: TestCaseSummary, output: TextIO)
backends/test/suite/reporting.py:376
← previous
next →
3,801–3,900 of 28,493, ranked by callers