MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 2 callersFunctionadd_input_weight_zp_consts
Add input/weight zero-point consts and return their names.
backends/arm/operators/ops_quant_utils.py:13
↓ 2 callersMethodadd_mem_id_to_blocklist
(self, spec: TensorSpec, mem_id: int)
backends/cadence/aot/memory_constraints.py:117
↓ 2 callersMethodadd_row
Update the result counts for the specified row.
backends/test/suite/generate_markdown_summary_json.py:19
↓ 2 callersMethodadd_row
Update the result counts for the specified row.
backends/test/suite/generate_markdown_summary.py:21
↓ 2 callersFunctionadjust_time_scale
(event: ProfileData, time_scale: TimeScale)
profiler/parse_profiler_results.py:108
↓ 2 callersFunctionallclose
r""" Unlike torch.allocse which only handles Tensor arguments, allclose handles list, tuple, dict and nesting of these as well.
test/end2end/test_end2end.py:403
↓ 2 callersMethodallocateByteBuffer
Allocates a new direct {@link ByteBuffer} with native byte order with specified capacity that can be used in {@link Tensor#fromBlob(ByteBuffer, long[]
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Tensor.java:72
↓ 2 callersMethodanalyze
Evaluates both the fp32 and QDQ graphs using the provided input_samples and computes the per-node Signal-to-Quantization-Noise Ratio
examples/qualcomm/oss_scripts/llama/mix_precision_analyzer.py:77
↓ 2 callersMethodannotate
Annotate the graph with the configured quantization settings. Currently only does static quantization annotation. Args:
backends/arm/quantizer/arm_quantizer.py:722
↓ 2 callersFunctionannotate_binary_op_act_pattern
Annotates all nodes in ``model``, which match the pattern specified by ``pattern_gm`` using ``quantization_config``. ``pattern_gm`` capt
backends/apple/coreml/quantizer/_coreml_quantizer_utils.py:529
↓ 2 callersFunctionannotate_cat
(node: Node, quantization_config: QuantizationConfig)
backends/qualcomm/quantizer/custom_annotation.py:124
↓ 2 callersFunctionannotate_matmul_input1
(node: Node, is_qat: str)
backends/qualcomm/quantizer/custom_annotation.py:208
↓ 2 callersFunctionannotate_single_in_single_out
( node: Node, quantization_config: QuantizationConfig )
backends/qualcomm/quantizer/custom_annotation.py:162
↓ 2 callersMethodappend_as_fake_tensor
Append node into ModelBuilder as tensor without data (FakeTensor). Can be used for activations and output tensors. :param no
backends/nxp/backend/ir/converter/builder/aten_model_builder_director.py:26
↓ 2 callersMethodappend_new_buffer
Append the 'buffer' to the 'model.buffers'.
backends/nxp/backend/ir/converter/builder/model_builder.py:864
↓ 2 callersMethodapply_8da4w_quantization
Apply TorchAO 8da4w quantization (int8 dynamic activation + int4 weight).
backends/vulkan/test/test_vulkan_delegate.py:2639
↓ 2 callersFunctionapply_addmm_mm_to_linear_transform
(graph: torch.fx.Graph)
backends/transforms/addmm_mm_to_linear.py:161
↓ 2 callersFunctionapply_embedding_quantization
Apply embedding quantization (INT8 or INT4).
examples/models/gemma4/quant_utils.py:65
↓ 2 callersFunctionapply_individual_pass_and_compare
(model, export_input, compare_input=None)
backends/nxp/tests/generic_tests/test_convert_div_to_mul.py:39
↓ 2 callersMethodapply_k_norm
(self, k)
examples/mediatek/models/llm_models/modeling_common.py:138
↓ 2 callersFunctionapply_pre_edge_transform_passes
Apply pre-edge transform passes including QuantFusion and torch ops passes. This mirrors the Cadence AOT compiler flow: 1. QuantFusion -
backends/cadence/aot/compiler.py:152
↓ 2 callersMethodapply_prompt_template
Apply chat template to format the prompt for different modalities. Args: chat_template: The chat template function from
examples/qualcomm/oss_scripts/llama/tokenizer.py:337
↓ 2 callersMethodapply_q_norm
(self, q)
examples/mediatek/models/llm_models/modeling_common.py:145
↓ 2 callersMethodapply_quantization
Apply TorchAO weight-only quantization to the linear layer.
backends/vulkan/test/test_vulkan_delegate.py:2315
↓ 2 callersFunctionapply_rotary_emb
Apply rotary position embeddings to Q and K (HuggingFace style). Args: xq: Query tensor of shape [batch, num_heads, seq_len, rotary_dim]
examples/models/gemma4/text_decoder/gemma4_attention.py:38
↓ 2 callersFunctionapply_rotary_emb_single
( x: torch.Tensor, freqs_cos: torch.Tensor, freqs_sin: torch.Tensor )
examples/models/llama/source_transformation/attention.py:19
↓ 2 callersFunctionapply_scalar_contraints
(op_name: str)
backends/cadence/utils/facto_util.py:455
↓ 2 callersFunctionapply_torch_ops_passes
Applies compiler passes on torch.ops IR, including torch.ops.aten, torch.ops.cadence, etc. expo_program is expected to be the output of the t
backends/cadence/aot/passes.py:128
↓ 2 callersFunctionargument
( a: Argument | TensorOptionsArguments | SelfArgument, *, cpp_no_default_args: set[str], metho
codegen/api/et_cpp.py:296
↓ 2 callersFunctionargument_type
(a: Argument, *, binds: ArgName)
codegen/api/et_cpp.py:155
↓ 2 callersFunctionarm_executor_runner_exists
(target_board: str, use_portable_ops: bool = False)
backends/arm/test/runner_utils.py:952
↓ 2 callersFunctionarm_get_first_delegation_tag
Return the first delegation tag discovered in the FX graph. Args: graph_module (GraphModule): Module produced by Arm partitioning. R
backends/arm/tosa/backend.py:125
↓ 2 callersFunctionarrange_graph_outputs
Reorders the output tuple of the graph so that buffer mutation outputs come before user outputs, matching the ordering that ExportedProgram's
exir/lowered_backend_module.py:450
↓ 2 callersMethodartifact_str
Return string printable artifact for this stage
backends/test/harness/stages/stage.py:67
↓ 2 callersFunctionassert_NSYS
()
backends/nxp/tests/nsys_testing.py:371
↓ 2 callersMethodassert_delegated
(self, model, input_shape, mocker, use_qat=False, atol=None)
backends/nxp/tests/ir/converter/node_converter/test_sigmoid_converter.py:93
↓ 2 callersMethodassert_delegated_and_output_shape_equals
( self, model, input_shape, expected_output_shape, mocker )
backends/nxp/tests/ir/converter/node_converter/test_constant_pad_nd_converter.py:242
↓ 2 callersMethodassert_etrecord_has_no_edge_dialect_program
Assert that ETRecord has no edge dialect program data.
devtools/etrecord/tests/etrecord_test.py:77
↓ 2 callersMethodassert_file_magic_present
(self, program_data: bytes)
exir/_serialize/test/test_program.py:117
↓ 2 callersMethodassert_legal_etrecord_in_edge_program
Assert that ETRecord has all expected data after to_edge_transform_and_lower() or to_edge() stage
devtools/etrecord/tests/etrecord_test.py:95
↓ 2 callersMethodassert_not_delegated
(self, model, input_shape)
backends/nxp/tests/ir/converter/node_converter/test_max_pool_2d_converter.py:270
↓ 2 callersMethodassert_outputs_equal
Helper testing function that asserts that the model output and the reference output are equal with some tolerance. Due to numerical d
backends/apple/mps/test/test_mps_utils.py:122
↓ 2 callersMethodassert_outputs_equal
Helper testing function that asserts that the model output and the reference output are equal with some tolerance. Due to numerical d
backends/vulkan/test/test_vulkan_delegate.py:108
↓ 2 callersFunctionassert_softmax_delegated
(graph)
backends/nxp/tests/ir/converter/node_converter/test_softmax_converter.py:45
↓ 2 callersFunctionassert_valid_alignment
(alignment: Optional[int], name: str)
exir/_serialize/_flatbuffer.py:56
↓ 2 callersMethodbasic_normalize
Normalize a given string using the `BasicTextNormalizer` class. Which preforms commons transformation on multilingual text.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_whisper.py:558
↓ 2 callersMethodbatch_encode_plus
Tokenize and prepare for the model a list of sequences or a list of pairs of sequences. <Tip warning={true}> This method is deprecat
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:3321
↓ 2 callersFunctionbench_forward
(func, *args)
examples/apple/mps/scripts/bench_utils.py:15
↓ 2 callersFunctionbits_to_range
Calculate quantization range for given number of bits. Args: bits: Number of quantization bits Returns: Tuple of (qmin,
backends/vulkan/quantizer/vulkan_quantizer_utils.py:34
↓ 2 callersFunctionbuffer_gvec_type
(dtype: str, n: int)
backends/vulkan/runtime/gen_vulkan_spv.py:181
↓ 2 callersMethodbuild_annotation_fn
Build and return an annotation function for all registered ops. The returned function has signature (gm: GraphModule) -> None and
backends/qualcomm/custom_op/annotator.py:72
↓ 2 callersFunctionbuild_args_parser
()
examples/models/llama/runner/eager.py:55
↓ 2 callersMethodbuild_loader_from_dataset
:param data: Provide dataset in pandas table type. The header names should be ['text', 'label'], and label range from 0 (
examples/samsung/scripts/mobilebert_finetune.py:52
↓ 2 callersFunctionbuiltin_operator_for_op_type
(op_type: str)
backends/nxp/backend/ir/neutron_ir_post_processing/graph_utils.py:94
↓ 2 callersFunctioncached_file
Tries to locate a file in a local folder and repo, downloads and cache it if necessary. Args: path_or_repo_id (`str` or `os.PathLike`):
examples/mediatek/aot_utils/llm_utils/tokenizers_/utils.py:355
↓ 2 callersFunctioncalculate_cosine_similarity
(ref_values: ProgramOutput, values: ProgramOutput)
devtools/inspector/_inspector_utils.py:481
↓ 2 callersFunctioncalculate_fp16_gelu_tolerance
(ref_output_tensor)
backends/xnnpack/test/ops/test_gelu.py:13
↓ 2 callersFunctioncalculate_mse
(ref_values: ProgramOutput, values: ProgramOutput)
devtools/inspector/_inspector_utils.py:442
↓ 2 callersFunctioncalculate_multiples
Returns expand args converted to repeat args, and whether the expand changes the rank.
backends/arm/_passes/convert_expand_copy_to_repeat.py:22
↓ 2 callersMethodcalculate_pad_amount_1d
(self, in_size, kernel_size, stride, padding, dilation)
backends/xnnpack/operators/op_max_pool2d.py:116
↓ 2 callersMethodcalculate_qparams
(self)
backends/qualcomm/quantizer/observers/per_block_param_observer.py:76
↓ 2 callersFunctioncalculate_snr
(ref_values: ProgramOutput, values: ProgramOutput)
devtools/inspector/_inspector_utils.py:459
↓ 2 callersFunctioncalculate_tosa_resize_output_hw
( input_hw: Sequence[int | torch.SymInt], scale: Sequence[int | torch.SymInt], offset: Sequence[in
backends/arm/tosa/resize_utils.py:199
↓ 2 callersMethodcall
(self, graph_module: GraphModule)
backends/arm/_passes/insert_rescales_pass.py:104
↓ 2 callersMethodcall
(self, graph_module: torch.fx.GraphModule)
backends/cadence/aot/reorder_ops.py:350
↓ 2 callersFunctioncall_delegate_cpu
(lowered_module, *args)
exir/delegate.py:79
↓ 2 callersMethodcall_getitem
( self, value: ProxyValue, key: int, meta: NodeMetadata )
exir/pass_base.py:618
↓ 2 callersMethodcall_map
( self, f: torch.fx.GraphModule, mapped_args: List[ProxyValue], operands: List
exir/pass_base.py:566
↓ 2 callersMethodcall_module
Unsupported in execution IR, so unhandled by the emitter.
exir/emit/_emitter.py:1695
↓ 2 callersMethodcall_operator
( self, op, # pyre-ignore args: Tuple[Argument, ...], kwargs: Dict[str, Argum
exir/pass_base.py:504
↓ 2 callersMethodcall_operator
(self, op, args, kwargs, meta)
exir/passes/memory_format_ops_pass.py:32
↓ 2 callersMethodcall_operator
(self, op, args, kwargs, meta)
exir/tests/test_memory_format_ops_pass.py:237
↓ 2 callersMethodcall_operator
(self, op, args, kwargs, meta)
backends/arm/_passes/decompose_elu_pass.py:123
↓ 2 callersMethodcall_operator
(self, op, args, kwargs, meta, updated: Optional[bool] = False)
backends/arm/_passes/arm_pass.py:83
↓ 2 callersMethodcall_operator
(self, op, args, kwargs, meta)
backends/transforms/replace_scalar_with_tensor.py:81
↓ 2 callersMethodcall_operator
(self, op, args, kwargs, meta)
extension/llm/export/export_passes.py:113
↓ 2 callersMethodcall_sym
( self, target: Fn, args: Tuple[Argument, ...], meta: NodeMetadata, )
exir/pass_base.py:513
↓ 2 callersMethodcan_be_converted_to_nhwc
(self, node: torch.fx.Node)
backends/xnnpack/_passes/channels_last_tagged_reshape_pass.py:171
↓ 2 callersMethodcan_decompose_batch_norm
Determine whether the given batch norm node can be decomposed by this pass.
backends/xnnpack/_passes/decompose_batch_norm.py:39
↓ 2 callersMethodcan_fuse
Determine whether a BatchNorm node can be fused with the preceding convolution or linear node.
backends/xnnpack/_passes/fuse_batch_norm.py:82
↓ 2 callersFunctioncanonicalize_program
(obj)
backends/qualcomm/utils/utils.py:304
↓ 2 callersFunctioncapture_program
TODO: Deprecated capture_program with to_edge_transform_and_lower_to_qnn Captures and transforms a PyTorch module into an Exir exported prog
backends/qualcomm/utils/utils.py:481
↓ 2 callersFunctionchange_quantization_config
( original_qspec, dtype=None, quant_min=None, quant_max=None, qscheme=None, ch_axis=No
backends/xnnpack/quantizer/xnnpack_quantizer_utils.py:72
↓ 2 callersMethodchar_to_token
Get the index of the token in the output comprising a character in the original string. Can be called as: - `self.char_to_token(char
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:549
↓ 2 callersMethodcheck_and_append_operator
Append the new TFLite operator to the model.
backends/nxp/backend/ir/converter/builder/model_builder.py:278
↓ 2 callersMethodcheck_backend_delegate
( self, program: Program, delegate: BackendDelegate, expected_id: str,
exir/backend/test/test_to_backend_multi_method.py:79
↓ 2 callersMethodcheck_constraints
Takes in a node and returns true if the node is partitionable. Args: node: Node to be partitioned ep: Export
exir/backend/canonical_partitioners/config_partitioner.py:77
↓ 2 callersFunctioncheck_disallowed_symbols
Check a collection of symbols for disallowed prefixes.
scripts/check_binary_dependencies.py:164
↓ 2 callersMethodcheck_field
(self, node: torch.fx.Node)
backends/vulkan/test/utils.py:67
↓ 2 callersFunctioncheck_folder
(folder: str, file: str)
install_executorch.py:133
↓ 2 callersFunctioncheck_for_sym
Basic check against the class name of the given obj and if it starts from "Sym" or not to catch SymInt the main culprit.
backends/xnnpack/serialization/xnnpack_graph_serialize.py:47
↓ 2 callersFunctioncheck_if_debug_handle_to_op_names_match
Checks if the actual op names match the expected op names for the specified model. Returns True if all match, otherwise returns False.
devtools/inspector/tests/inspector_test_utils.py:176
↓ 2 callersMethodcheck_if_shapes_differ_in_single_dim_of_size_1
( self, list1: List, list2: List )
backends/transforms/postpone_permute_below_squeeze_view.py:44
↓ 2 callersFunctioncheck_out_zero_point_is_min_range
Checks if the out_zero_point is the minimum range of the quant type.
backends/cadence/aot/quantizer/utils.py:271
↓ 2 callersFunctioncheck_spec_count
( spec: Sequence[InputSpec] | Sequence[OutputSpec], expected_counts: dict[Any, int], )
backends/arm/test/tester/arm_tester.py:1311
↓ 2 callersMethodcheck_support_only
Check which nodes are supported without building the full MLXGraph. This method populates node_info with supported/unsupported statu
backends/mlx/builder/program_builder.py:570
↓ 2 callersMethodcheck_tensor_buffer_loc
( self, value_index: int, values: List[EValue], exp_buffer_idx: int, e
exir/emit/test/test_emit.py:107
↓ 2 callersMethodclean_up_tokenization
Clean up simple English tokenization artifacts like spaces before punctuations and abbreviated forms. Args: out_string (`str`): T
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:4176
↓ 2 callersFunctioncollate_fun
(batch)
examples/qualcomm/scripts/wav2letter.py:51
↓ 2 callersFunctioncollect_data
(boxes, labels, top_k=-1)
examples/qualcomm/oss_scripts/retinanet.py:126
← previousnext →3,101–3,200 of 28,493, ranked by callers