MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 1 callersFunctionadd_run_args
Add common runtime arguments for Whisper scripts.
backends/mlx/examples/whisper/args.py:48
↓ 1 callersMethodadd_special_tokens
Adds special tokens. Add a dictionary of special tokens (eos, pad, cls, etc.) to the encoder and link them to class attributes. If sp
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:908
↓ 1 callersMethodadd_supported_node
(self, node_name)
exir/backend/test/test_group_partitioner.py:39
↓ 1 callersMethodadd_symint_upperbound
( self, node_debug_str: str, symint: torch.SymInt, ubval: int )
exir/passes/dynamic_shape_prop_pass.py:204
↓ 1 callersMethodadd_tf_lite
(self, builder)
backends/nxp/backend/ir/tflite_generator/tflite_model.py:364
↓ 1 callersMethodadjust_slice_range
( self, length: int, start: Optional[int] = None, end: Optional[int] = None,
backends/cadence/aot/simplify_ops.py:34
↓ 1 callersMethodadvance_quantize_op
(self, graph_module: torch.fx.GraphModule)
backends/cadence/aot/reorder_ops.py:161
↓ 1 callersMethodadvance_quantize_op
(self, graph_module: torch.fx.GraphModule)
backends/cadence/aot/reorder_ops.py:305
↓ 1 callersMethodadvancing_feasible
(self, quant_node: torch.fx.Node)
backends/cadence/aot/reorder_ops.py:264
↓ 1 callersFunctionaggregate_grouped_type_combinations
Aggregate grouped type combinations.
exir/dialects/edge/spec/utils.py:260
↓ 1 callersFunctionaggregate_if_two_types_being_the_same
aggregate the type constraints that has two types being the same, at the same position. For example, [0, 0] and [1, 1] where ('Double',): 0, ('Int
exir/dialects/edge/spec/utils.py:217
↓ 1 callersFunctionaggregate_results
(json_path: str)
backends/test/suite/generate_markdown_summary_json.py:63
↓ 1 callersFunctionaggregate_results
(csv_path: str)
backends/test/suite/generate_markdown_summary.py:66
↓ 1 callersFunctionall_flows
()
backends/test/suite/flow.py:173
↓ 1 callersFunctionall_fusable_graph_patterns
()
backends/vulkan/patterns/__init__.py:67
↓ 1 callersMethodall_nodes
Return all nodes in the pattern (head + body).
backends/mlx/pattern_utils.py:358
↓ 1 callersFunctionall_tensors_are_static
Return True, if all tensors in 'list_of_tensors' have data stored in them. :param list_of_tensors: List of TFLite tensors to check. :return:
backends/nxp/backend/ir/converter/tensor_utils.py:44
↓ 1 callersMethodallocateDoubleBuffer
Allocates a new direct {@link DoubleBuffer} with native byte order with specified capacity that can be used in {@link Tensor#fromBlob(DoubleBuffer, lo
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Tensor.java:130
↓ 1 callersMethodallocateFloatBuffer
Allocates a new direct {@link FloatBuffer} with native byte order with specified capacity that can be used in {@link Tensor#fromBlob(FloatBuffer, long
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Tensor.java:94
↓ 1 callersMethodallocateHalfBuffer
Allocates a new direct {@link ShortBuffer} with native byte order and specified capacity that can be used in {@link Tensor#fromBlob(ShortBuffer, long[
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Tensor.java:118
↓ 1 callersMethodallocateIntBuffer
Allocates a new direct {@link IntBuffer} with native byte order with specified capacity that can be used in {@link Tensor#fromBlob(IntBuffer, long[])}
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Tensor.java:82
↓ 1 callersMethodallocateLongBuffer
Allocates a new direct {@link LongBuffer} with native byte order with specified capacity that can be used in {@link Tensor#fromBlob(LongBuffer, long[]
extension/android/executorch_android/src/main/java/org/pytorch/executorch/Tensor.java:106
↓ 1 callersMethodallowed_op_types
(self)
exir/verification/verifier.py:291
↓ 1 callersFunctionannotate
(graph: Graph, quant_config: QuantizationConfig)
backends/samsung/quantizer/annotator.py:43
↓ 1 callersFunctionannotate
(graph: Graph, quant_config: QuantizationConfig)
backends/mediatek/quantizer/annotator.py:32
↓ 1 callersMethodannotate
(self, graph_module: torch.fx.GraphModule)
backends/samsung/_passes/annotate_scalar_parameters.py:34
↓ 1 callersMethodannotate
(self, model: torch.fx.GraphModule)
backends/cadence/aot/quantizer/quantizer.py:180
↓ 1 callersFunctionannotate_conv2d
(node: Node, quantization_config: QuantizationConfig)
backends/qualcomm/quantizer/custom_annotation.py:382
↓ 1 callersFunctionannotate_graph
Annotate supported nodes in a graph with quantization specs. Iterate through call_function nodes, computes quantization properties, and apply
backends/arm/quantizer/quantization_annotator.py:937
↓ 1 callersFunctionannotate_index_put
(node: Node, quantization_config: QuantizationConfig)
backends/qualcomm/quantizer/custom_annotation.py:298
↓ 1 callersMethodannotate_match
Annotates a matched pattern according to the given quantization config.
backends/arm/quantizer/arm_quantizer_utils.py:302
↓ 1 callersFunctionannotate_placeholder
(node: Node, quant_config: QuantizationConfig)
backends/samsung/quantizer/annotator.py:100
↓ 1 callersFunctionannotate_placeholder
(node: Node, quant_config: QuantizationConfig)
backends/mediatek/quantizer/annotator.py:181
↓ 1 callersFunctionannotate_rms_norm
(node: Node, quantization_config: QuantizationConfig)
backends/qualcomm/quantizer/custom_annotation.py:144
↓ 1 callersFunctionannotate_single_in_share_out
( node: Node, quantization_config: QuantizationConfig )
backends/qualcomm/quantizer/custom_annotation.py:175
↓ 1 callersFunctionannotate_single_in_single_out
( node: Node, quantization_config: QuantizationConfig )
backends/qualcomm/quantizer/rules.py:132
↓ 1 callersFunctionannotate_stack
(node: Node, quantization_config: QuantizationConfig)
backends/qualcomm/quantizer/custom_annotation.py:188
↓ 1 callersMethodappend_as_static_tensor
Append node into ModelBuilder as tensor with data (static). Can be used for weights, permutations etc. :param node: Node ins
backends/nxp/backend/ir/converter/builder/aten_model_builder_director.py:58
↓ 1 callersMethodappend_context
(self, loggingContext: LoggingContext)
backends/nxp/backend/ir/logger.py:171
↓ 1 callersMethodappend_placeholders_and_tensors
(nodes: list[Node], context: ConversionContext)
backends/nxp/backend/edge_program_converter.py:123
↓ 1 callersFunctionapply_chat_template
Wrap a user prompt in the Gemma 4 IT chat template. Does not include BOS — ``generate()`` prepends it at the token-ID level.
examples/models/gemma4_31b/inference.py:72
↓ 1 callersFunctionapply_model_quantization
( model, *, qlinear: str | None, qlinear_group_size: int | None, qlinear_packing_format: s
examples/models/voxtral_tts/export_voxtral_tts.py:427
↓ 1 callersFunctionapply_rotary_emb
( xq: torch.Tensor, xk: torch.Tensor, freqs_cos: torch.Tensor, freqs_sin: torch.Tensor )
examples/models/llama/rope.py:82
↓ 1 callersFunctionapply_rotary_emb
( q: torch.Tensor, k: torch.Tensor, freqs_cos: torch.Tensor, freqs_sin: torch.Tensor, )
examples/models/voxtral_tts/model.py:213
↓ 1 callersFunctionapply_rotary_emb_single
Apply rotary position embeddings to a single tensor (Q only).
examples/models/gemma4/text_decoder/gemma4_attention.py:64
↓ 1 callersFunctionapply_scaling
(freqs: torch.Tensor, scale_factor: int, high_freq_factor: int)
examples/models/llama/rope.py:20
↓ 1 callersFunctionapply_spin_quant_r1_r2
(model: torch.nn.Module, optimized_rotation_path: str)
examples/models/llama/source_transformation/apply_spin_quant_r1_r2.py:100
↓ 1 callersFunctionapply_tensor_contraints
(op_name: str, index: int)
backends/cadence/utils/facto_util.py:57
↓ 1 callersMethodapply_upper_bounds
Context manager to use upper bound value to evaluate expressions.
exir/passes/dynamic_shape_prop_pass.py:70
↓ 1 callersFunctionare_fake_tensors_broadcastable
Determine whether the fake tensors share a broadcastable shape. Args: fake_tensors (list[FakeTensor]): Fake tensors whose shapes should
backends/arm/tosa/utils.py:23
↓ 1 callersFunctionargs_parser
()
examples/apple/coreml/scripts/debugger_cli.py:39
↓ 1 callersFunctionargs_sanity_checks
(args)
examples/mediatek/model_export_scripts/gemma.py:126
↓ 1 callersFunctionargs_sanity_checks
(args)
examples/mediatek/model_export_scripts/llama.py:126
↓ 1 callersFunctionargs_sanity_checks
(args)
examples/mediatek/model_export_scripts/phi.py:126
↓ 1 callersFunctionargs_sanity_checks
(args)
examples/mediatek/model_export_scripts/whisper.py:123
↓ 1 callersFunctionargs_sanity_checks
(args)
examples/mediatek/model_export_scripts/qwen.py:126
↓ 1 callersFunctionargument_to_cpp_code
(arg)
kernels/test/test_case_gen.py:243
↓ 1 callersFunctionargument_to_pytorch
(arg)
kernels/test/test_case_gen.py:260
↓ 1 callersFunctionargumenttype_type
( t: Type, *, mutable: bool, binds: ArgName, remove_non_owning_ref_types: bool = False, )
codegen/api/et_cpp.py:102
↓ 1 callersFunctionarrange_graph_placeholders
Modifies the graph of the given graphmodule with one that contains the same nodes as the original, but with placeholders in order of (Params
exir/lowered_backend_module.py:382
↓ 1 callersFunctionarray_code_gen
(arr, template)
extension/llm/custom_ops/spinquant/special_hadamard_code_gen.py:234
↓ 1 callersMethodartifact
Returns the artifact generated by this stage. To be used by the next stage in the pipeline.
backends/test/harness/stages/stage.py:43
↓ 1 callersFunctionas_input_tuple
(sample: object)
backends/arm/scripts/aot_arm_compiler.py:247
↓ 1 callersMethodas_target_tokenizer
Temporarily sets the tokenizer for encoding the targets. Useful for tokenizer associated to sequence-to-sequence models that need a s
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:4232
↓ 1 callersMethodas_tensor
(value, dtype=None)
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:726
↓ 1 callersMethodasdict
Convert the Event into a dict Args: None Returns: A dict with the Event data
devtools/inspector/_inspector.py:398
↓ 1 callersMethodassertNotRaises
(self, exc_type: Any)
exir/verification/test/test_verifier.py:28
↓ 1 callersMethodassertOpYamlEqual
Helper function to assert two edge operator yaml object equal
exir/dialects/edge/test/test_edge_yaml.py:39
↓ 1 callersMethodassertTargetCountEqual
Helper function to check the number of nodes with a given target.
backends/cadence/aot/tests/test_replace_ops_passes.py:102
↓ 1 callersMethodassertTargetCountEqual
Helper function to check the number of nodes with a given target.
backends/cadence/aot/tests/test_decompose_ops_passes.py:22
↓ 1 callersMethodassertTensorEqual
(self, t1: torch.Tensor, t2: torch.Tensor)
devtools/bundled_program/test/test_config.py:24
↓ 1 callersMethodassertTypeAliasEqual
Helper function to assert two type alias equal
exir/dialects/edge/test/test_edge_yaml.py:22
↓ 1 callersMethodassert_2d_mask
No better way to do this right now. Ideally we don't want to partition this.
backends/xnnpack/_passes/convert_to_sdpa.py:54
↓ 1 callersFunctionassert_default_dim_order
(edge_graph_module: torch.fx.GraphModule)
backends/mediatek/preprocess.py:32
↓ 1 callersMethodassert_etrecord_is_empty
Assert that ETRecord has no data at all.
devtools/etrecord/tests/etrecord_test.py:88
↓ 1 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/xnnpack/test/test_xnnpack_utils.py:133
↓ 1 callersFunctionassert_unambiguous_dim_order
(gm)
exir/tests/test_memory_format_ops_pass_utils.py:139
↓ 1 callersMethodassign_model_io_to_subgraph
Assign model's inputs/outputs to SubGraph. :param graph_signature: Instance of GraphSignature.
backends/nxp/backend/ir/converter/builder/aten_model_builder_director.py:133
↓ 1 callersMethodat_least_one_input_shape_matches_the_output_shape
Determine if given PyTorch fx Node uses at least one input shape broadcasting for it's input nodes or not. :param node: PyTorch fx Node with
backends/nxp/backend/ir/converter/node_converter.py:414
↓ 1 callersFunctionbam
()
exir/program/test/test_program.py:178
↓ 1 callersFunctionbar
()
exir/program/test/test_program.py:181
↓ 1 callersFunctionbatch_psnr
(prediction: torch.Tensor, target: torch.Tensor)
examples/arm/super_resolution_example_vgf/model_export/common.py:356
↓ 1 callersFunctionbatch_ssim
(prediction: torch.Tensor, target: torch.Tensor)
examples/arm/super_resolution_example_vgf/model_export/common.py:361
↓ 1 callersFunctionbegin_test_session
(report_path: str | None, seed: int)
backends/test/suite/reporting.py:305
↓ 1 callersFunctionbench_torch
(executorch_program: ExportedProgram, model, inputs, model_name)
examples/apple/mps/scripts/bench_utils.py:64
↓ 1 callersFunctionbin_dtype_to_torch_dtype
Convert binary file dtype enum value to torch dtype.
backends/mlx/test/test_utils.py:119
↓ 1 callersMethodblock_memories_except
Block all memories except the given memory_id.
backends/cadence/aot/memory_planning_algo.py:144
↓ 1 callersMethodbpe
Byte pair encoding.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_whisper.py:347
↓ 1 callersMethodbpe
Byte pair encoding.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_gpt2.py:204
↓ 1 callersMethodbpe
Byte pair encoding.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_qwen2.py:223
↓ 1 callersFunctionbroadcast_ut_result
(output_image, seed)
examples/qualcomm/qaihub_scripts/stable_diffusion/qaihub_stable_diffusion.py:185
↓ 1 callersFunctionbroadcastable
Check if 'shape_2' can be broadcasted to 'shape_1'. The broadcast is feasible if: (1) shape_2 does not have higher dimensionality than sh
backends/cadence/aot/compiler_utils.py:72
↓ 1 callersMethodbuild
(self)
backends/mlx/builder/program_builder.py:626
↓ 1 callersMethodbuild
Generate a list of compile spec objects from the builder
backends/nxp/nxp_backend.py:112
↓ 1 callersFunctionbuild_args_parser
()
examples/models/llama/eval_llama_lib.py:251
↓ 1 callersFunctionbuild_args_parser
()
examples/models/llama/runner/native.py:68
↓ 1 callersFunctionbuild_args_parser
()
examples/models/llama3_2_vision/runner/native.py:74
↓ 1 callersFunctionbuild_args_parser
()
examples/models/llama3_2_vision/runner/exported.py:53
↓ 1 callersFunctionbuild_args_parser
()
examples/qualcomm/qaihub_scripts/stable_diffusion/qaihub_stable_diffusion.py:106
↓ 1 callersMethodbuild_conversion_context
( parameters_mapping: dict, dim_order_map: dict[str, ...], neutron_target_spec: Neutro
backends/nxp/backend/edge_program_converter.py:248
← previousnext →6,901–7,000 of 28,493, ranked by callers