MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 8 callersFunctionget_xnnpack_executorch_backend_config
( additional_passes=None, )
backends/xnnpack/utils/configs.py:27
↓ 8 callersFunctiongguf_to_model_key
Map a GGUF tensor name to a model FQN, or ``None`` to skip.
examples/models/gemma4_31b/gguf_loader.py:48
↓ 8 callersMethodhas_rejected_node
(self)
exir/backend/operator_support.py:31
↓ 8 callersMethodidentify_node_formats
(self)
backends/nxp/backend/node_format_inference.py:80
↓ 8 callersFunctioninput_tensor
(node: Node, input_index: int)
backends/nxp/backend/edge_helper.py:35
↓ 8 callersMethodinsert_passes_after
Register passes to be inserted after instances of target_pass_type. Insertions are deferred and applied via _apply_pass_insertions().
backends/arm/_passes/arm_pass_manager.py:290
↓ 8 callersFunctionis_parameter
( node: torch.fx.Node, edge_program: torch.export.ExportedProgram )
backends/qualcomm/builders/utils.py:20
↓ 8 callersMethodmake_or_get_slots
Get or create slots for a node. Always returns a tuple of slots. Use this for multi-output ops (e.g., topk returns (values, indices)
backends/mlx/builder/slot_manager.py:150
↓ 8 callersFunctionmoe_align_block_size
Sort token-expert pairs by expert and pad to block_size boundaries. Given router output topk_ids [M, top_k], produces a flat array of pair in
backends/cuda/triton/kernels/fused_moe.py:588
↓ 8 callersFunctionnone_throws
(x: Optional[Any])
examples/models/llama/static_attention.py:29
↓ 8 callersFunctionoutput_to_aliased_input_map
For a mutating op, return a map from output index to input arg index, where the output aliases (i.e., mutates) the input via a shared ``Tensor
exir/operator/convert.py:131
↓ 8 callersFunctionpack_one
Pack a single weight into ``model``. Quantized subclass tensors are dispatched to the packer for the parent module's type. Plain tensors are
examples/models/gemma4_31b/quant/pack.py:78
↓ 8 callersFunctionpermute
(w, heads)
examples/qualcomm/oss_scripts/llama/eval_llama_qnn.py:195
↓ 8 callersMethodpt2e_quantize
( self, quant_dtype, fixed_point_type, calibration_tasks, calibration_
examples/qualcomm/oss_scripts/llm_utils/qnn_decoder_model_manager.py:235
↓ 8 callersFunctionqspec_repr
Get a human-readable representation of a QuantizationSpec.
backends/cortex_m/quantizer_reporter.py:36
↓ 8 callersMethodquantize
( self, quantize_stage: Optional[BaseStages.Quantize] = None, )
backends/arm/test/tester/arm_tester.py:405
↓ 8 callersFunctionquantize_per_tensor
()
backends/cadence/aot/ref_implementations.py:144
↓ 8 callersFunctionrandomize_bn
(num_features: int, dimensionality: int = 2)
backends/xnnpack/test/test_xnnpack_utils.py:77
↓ 8 callersMethodrepeat_kv
(self, hidden_states, batch, q_len, n_rep)
examples/mediatek/models/llm_models/modeling_common.py:126
↓ 8 callersMethodrun_grid_sampler_test
Test grid_sampler_2d against PyTorch's reference implementation.
kernels/portable/test/op_grid_sampler_2d_test.py:16
↓ 8 callersMethodsave_pretrained
Save the full tokenizer state. This method make sure the full tokenizer can then be re-loaded using the [`~tokenization_utils_base.Pr
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:2497
↓ 8 callersFunctionscalar_type_enum
(dtype: torch.dtype)
exir/tensor.py:308
↓ 8 callersMethodserialize_tensor_output
(self, name, meta_val)
exir/serde/export_serialize.py:921
↓ 8 callersMethodset_slot
(self, node_or_name: Union[Node, str], slot: Slot)
backends/mlx/builder/slot_manager.py:77
↓ 8 callersMethodtensor_exists
Determine if a tensor with 'name' already exists or not.
backends/nxp/backend/ir/converter/builder/model_builder.py:776
↓ 8 callersFunctiontensor_has_data
Determine if given TFLite tensor has any data.
backends/nxp/backend/ir/converter/tensor_utils.py:31
↓ 8 callersMethodupdate_representative_inputs
Update the representative inputs in the ETRecord. This method allows users to customize the representative inputs that will be
devtools/etrecord/_etrecord.py:470
↓ 8 callersMethoduses_quantization_type_for_io
Check if `node` uses the QDQ quantization schema and inputs and outputs on the provided indices use a quantization type that is in `suppor
backends/nxp/backend/ir/converter/node_converter.py:360
↓ 8 callersMethodvalidate_constraints_mandatory
Validates that necessary passes have run before transforming to backend. Note that this differs from the original validate_constraint
backends/arm/_passes/arm_pass_manager.py:248
↓ 7 callersMethodInit
(self, buf, pos)
backends/nxp/backend/ir/lib/tflite/Model.py:33
↓ 7 callersMethodInitFromObj
(cls, executionPlan)
exir/_serialize/generated/executorch_flatbuffer/ExecutionPlan.py:416
↓ 7 callersMethodSGD
( Map<String, Tensor> namedParameters, double learningRate, double momentum, double da
extension/android/executorch_android/src/main/java/org/pytorch/executorch/training/SGD.java:46
↓ 7 callersMethodSubgraphs
(self, j)
backends/nxp/backend/ir/lib/tflite/Model.py:72
↓ 7 callersMethod__init__
(self)
exir/backend/test/test_utils.py:195
↓ 7 callersMethod__init__
(self)
exir/tests/test_memory_format_ops_pass_utils.py:78
↓ 7 callersMethod__init__
( self, head: Node, body: List[Node], q_node: Node, k_node: Node,
backends/mlx/patterns.py:401
↓ 7 callersMethod__init__
(self, *args)
backends/apple/mps/operators/shape_ops.py:85
↓ 7 callersMethod__init__
(self)
backends/cuda/passes/tests/test_move_cond_predicate_to_cpu.py:462
↓ 7 callersMethod__init__
(self, config: BaseConfig)
examples/mediatek/models/llm_models/modeling_common.py:63
↓ 7 callersMethod_assertCallLength
(self, program: Program, idx: int, expected_len: int)
exir/emit/test/test_emit.py:456
↓ 7 callersMethod_count_nodes
Count nodes in graph_module whose target matches any in targets.
exir/program/test/test_program.py:803
↓ 7 callersFunction_export_and_execute
Export *model* with XNNPACK, save to a temp .pte, and run it via Runtime.
runtime/test/test_runtime_xnnpack.py:28
↓ 7 callersMethod_gen_sample_debug_event
Helper for generating test DebugEvents Notably: - delegate_debug_id takes either the str or int representation
devtools/inspector/tests/event_blocks_test.py:62
↓ 7 callersMethod_get_default_pipeline
Get default pipeline stages based on input model type. Returns: List of stages appropriate for the input model type
export/export.py:264
↓ 7 callersFunction_get_glibc_libdir
()
backends/qualcomm/scripts/download_qnn_sdk.py:433
↓ 7 callersFunction_get_overload_schema
(op_overload: OpOverload)
exir/operator/convert.py:85
↓ 7 callersFunction_get_representative_inputs
Extracts out the inputs from the bundled program, keyed by the method names.
devtools/etrecord/_etrecord.py:541
↓ 7 callersFunction_get_updated_graph_signature
Update the graph signature's user_input/user_outputs.
exir/program/_program.py:165
↓ 7 callersFunction_is_windows
()
setup.py:99
↓ 7 callersMethod_make_yoco_args
(self, n_layers=4, num_kv_shared_layers=2)
examples/models/llama/tests/test_static_attention.py:464
↓ 7 callersFunction_mark_as_annotated
(nodes: List[Node])
backends/mediatek/quantizer/annotator.py:65
↓ 7 callersFunction_mark_nodes_as_annotated
(nodes: List[Node])
backends/qualcomm/quantizer/rules.py:30
↓ 7 callersFunction_max_abs_error
(a, b)
backends/cuda/tests/test_fused_deltanet_decode.py:36
↓ 7 callersFunction_nodes_are_annotated
(node_list)
backends/example/example_operators/utils.py:11
↓ 7 callersFunction_parse_device_spec_value
Parse a target_device CompileSpec value (e.g., b"cuda:0") into (DeviceType, device_index). The type portion is matched case-insensitivel
exir/passes/propagate_device_pass.py:28
↓ 7 callersFunction_prepare_for_llama_export
Helper function for export_llama. Loads the model from checkpoint and params, and sets up a LLMEdgeManager with initial transforms and dtype
examples/models/llama/export_llama_lib.py:716
↓ 7 callersFunction_reference_sdpa
Compute reference SDPA in float32 with expanded KV heads for GQA.
backends/cuda/tests/test_triton_sdpa_splitk.py:39
↓ 7 callersFunction_setup_pass_manager
(passes: List[ArmPass] | None = None)
backends/arm/test/misc/test_pass_required_order.py:32
↓ 7 callersFunction_single_input_case
( module_factory: Callable[[], torch.nn.Module] )
backends/arm/test/ops/test_cond.py:162
↓ 7 callersFunction_skip_casts
Unwrap chains of dtype-cast nodes to find the underlying value.
backends/vulkan/patterns/rms_norm.py:27
↓ 7 callersMethod_test_dqlinear
Helper function to test dynamic quantized linear op with different configurations.
backends/xnnpack/test/ops/test_linear.py:328
↓ 7 callersMethod_test_linear
Helper function to test linear op with different configurations.
backends/xnnpack/test/ops/test_linear.py:237
↓ 7 callersMethod_test_linear
( self, make_module, uses_bias, num_batch_dims=1, quant_type=None,
backends/apple/mps/test/test_mps_linear.py:209
↓ 7 callersMethod_to_int_pair
( self, value: Argument, default: Optional[tuple[int, int]] )
backends/cortex_m/passes/quantized_op_fusion_pass.py:199
↓ 7 callersMethod_to_list
Return compile specs including the encoded Ethos-U target.
backends/arm/ethosu/compile_spec.py:124
↓ 7 callersMethod_update_and_validate
( self, k, v, k_scales, v_scales, k_zero_points, v_zero_points, start_pos )
extension/llm/custom_ops/test_update_cache.py:77
↓ 7 callersMethodadd
Passes over every char (utf-8) on word and recursively adds it to the internal `data` trie representation. The special key `""` in `self._ter
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils.py:69
↓ 7 callersMethodadd_relative_placement_constraint
Add a location constraint between source and dependent nodes. The imperative is that both the nodes are tensors. The constraint generated
backends/cadence/aot/memory_constraints.py:246
↓ 7 callersFunctionadjust_pooling_pad_if_needed
Compute the post padding needed for pooling. ATen pooling uses a single symmetric ``pad`` per dimension and rounds the output size up or down
backends/arm/operators/operator_validation_utils.py:170
↓ 7 callersMethodany_is_empty
(self)
backends/vulkan/utils.py:1484
↓ 7 callersMethodappend
(self, val: TensorRepSet)
backends/vulkan/utils.py:1252
↓ 7 callersFunctionassert_expected
( actual: Any, expected: Any, rtol: float = 1e-5, atol: float = 1e-8, check_device: bool =
examples/models/llama3_2_vision/preprocess/test_preprocess.py:104
↓ 7 callersMethodbatch_decode
Convert a list of lists of token ids into a list of strings by calling decode. Args: sequences (`Union[List[int], List[List[int]]
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:4062
↓ 7 callersFunctionbfs_trace_with_node_process
Traverse the graph module and apply node_op to each node.
exir/graph_module.py:136
↓ 7 callersFunctionbinary_operator_factory
Creates and registers NodeVisitors for operators that have two inputs and map directly to a TOSA op.
backends/arm/operators/ops_binary.py:26
↓ 7 callersMethodcall
(self, graph_module: torch.fx.GraphModule)
backends/vulkan/_passes/fuse_patterns.py:22
↓ 7 callersMethodcall_shape_operator
Call operator for shape-producing operators. This function is responsible for marking the output of the operator with the TosaSpecial
backends/arm/_passes/arm_pass.py:148
↓ 7 callersMethodcall_submodule
( self, graph_module: fx.GraphModule, inputs: Tuple[Argument, ...] )
exir/pass_base.py:626
↓ 7 callersFunctionceil
(a: _SymScalar)
exir/passes/executorch_prim_ops_registry.py:99
↓ 7 callersMethodcheck_ep
Checks if two graphs are equivalent
exir/tests/test_serde.py:40
↓ 7 callersMethodcheck_partition
(self, partitions, expected_partitions)
exir/backend/test/test_group_partitioner.py:127
↓ 7 callersMethodclose
(self)
examples/mediatek/aot_utils/llm_utils/loggingprinter.py:24
↓ 7 callersFunctioncreate_submodule_from_nodes
Modifies the given graph module in-place to separate out the given nodes into a submodule. The given node_list should form a fully connected
exir/lowered_backend_module.py:840
↓ 7 callersMethoddecl
(self, name: str | None = None, *, include_context: bool = True)
codegen/api/types/signatures.py:50
↓ 7 callersMethoddump_artifact
(self, path_to_dump: Optional[str])
backends/arm/test/tester/arm_tester.py:174
↓ 7 callersFunctionedge_dtype_to_mps_dtype
(dtype: torch.dtype)
backends/apple/mps/utils/mps_utils.py:22
↓ 7 callersFunctioneval_upper_bound
Evaluate a symint to its uppper bound value. Returns None if symint's symoblic expr's upper bound can not be evaluated to valid integer accor
exir/sym_util.py:38
↓ 7 callersMethodexample_inputs
(self)
backends/xnnpack/test/quantizer/test_xnnpack_quantizer.py:146
↓ 7 callersFunctionfind_op_names
Record the operator names only if their debug handles are part of the target debug handle. The debug handles in `debug_handle_to_op_names` ha
devtools/inspector/_inspector_utils.py:1051
↓ 7 callersFunctionformat_diff_result
( # noqa: C901 result: PTEDiffResult, verbose: bool = False )
devtools/pte_tool/diff_pte.py:713
↓ 7 callersMethodforward
( self, tokens: Optional[torch.LongTensor] = None, input_pos: Optional[torch.LongTenso
examples/models/llama3_2_vision/runner/eager.py:45
↓ 7 callersMethodfrom_operator
(cls, op, args)
backends/arm/_passes/quant_args.py:76
↓ 7 callersFunctiongenerate_rotation_matrix
Generate a Haar-distributed random orthogonal matrix via QR. Args: dim: Matrix dimension (d x d). seed: Random seed for reproduci
extension/llm/modules/turboquant/codebook.py:109
↓ 7 callersFunctionget_dirname
(file_path)
examples/mediatek/aot_utils/llm_utils/utils.py:420
↓ 7 callersMethodget_inputs
(self)
backends/arm/test/ops/test_conv_combos.py:69
↓ 7 callersFunctionget_memory_format
Given a dim_order try to map it to torch.memory_format
exir/dim_order_utils.py:34
↓ 7 callersFunctionget_output_qparams
Get the output 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:77
↓ 7 callersFunctionget_quantizer
(use_composable_quantizer: bool = False)
backends/arm/test/quantizer/test_selective_quantization.py:27
↓ 7 callersFunctionget_reducer
Look up a built-in by name, or return a user-supplied StatReducer as-is.
devtools/intermediate_output_tap/_reducers.py:310
↓ 7 callersFunctionget_scalar_val
(node: torch.fx.Node, input_index: int)
backends/apple/mps/utils/mps_utils.py:18
← previousnext →801–900 of 28,493, ranked by callers