MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 1 callersMethod_share_masks
Create causal and sliding window masks once, share across all attention layers. All layers use identical masks sized [max_seq_len, max_seq_le
examples/models/gemma4/text_decoder/gemma4_transformer.py:75
↓ 1 callersFunction_should_decompose
(alpha)
backends/arm/_passes/decompose_add_sub_alpha_pass.py:52
↓ 1 callersFunction_should_pack_gqa
Decide whether to use Pack GQA based on tile utilization. Pack GQA folds multiple Q heads into the M dimension so they share the same K/V loa
backends/cuda/triton/kernels/tq4_sdpa.py:44
↓ 1 callersFunction_should_pack_gqa
Decide whether to use pack GQA based on tile utilization. Pack GQA folds multiple Q heads into the M dimension so they share the same K/V loa
backends/cuda/triton/kernels/sdpa.py:76
↓ 1 callersMethod_should_remove
(self, node: torch.fx.Node)
backends/vulkan/_passes/remove_redundant_ops.py:49
↓ 1 callersMethod_should_replace_node
Check if a node should be replaced with a Triton kernel. Args: node: The node to check Returns: Tru
backends/cuda/triton/replacement_pass.py:116
↓ 1 callersMethod_single_output_annotation
( self, gm: torch.fx.GraphModule, n: torch.fx.node )
backends/qualcomm/_passes/insert_requantize.py:84
↓ 1 callersFunction_single_unitary_dimension_change
Get change details (index of change and type of change) if there's only single unitary change between input shapes. If there is no such a cha
backends/nxp/backend/ir/converter/node_converters/shared/reshape_transposition.py:20
↓ 1 callersFunction_sink_dequant_to_quant_nodes
Insert per-branch dequants before each downstream quant and rewire.
backends/cadence/aot/compiler_funcs.py:520
↓ 1 callersFunction_skip_if_no_cuda
()
backends/cuda/tests/test_triton_sdpa_splitk.py:20
↓ 1 callersFunction_skip_if_no_cuda
()
backends/cuda/tests/test_tq4_sdpa.py:41
↓ 1 callersFunction_skip_if_no_cuda
()
backends/cuda/tests/test_triton_sdpa.py:23
↓ 1 callersFunction_skip_if_no_cuda
()
backends/cuda/tests/test_fused_deltanet_decode.py:21
↓ 1 callersMethod_skip_pass
(self, input_tensors: list)
backends/arm/_passes/get_decomposition_pass.py:34
↓ 1 callersMethod_slice_biases
( self, slice_op, bias_node, groups, output_slice_size, meta, kwargs )
backends/arm/_passes/decompose_grouped_conv_pass.py:137
↓ 1 callersMethod_slice_inputs
( self, slice_op, input_node, input_slice_size, groups, meta, kwargs )
backends/arm/_passes/decompose_grouped_conv_pass.py:99
↓ 1 callersMethod_slice_weights
( self, slice_op, weight_node, groups, input_slice_size, outpu
backends/arm/_passes/decompose_grouped_conv_pass.py:112
↓ 1 callersFunction_snake_to_camel
(name: str)
exir/_serialize/_flatbuffer_program.py:40
↓ 1 callersFunction_solve_lloyd_max_cached
( d: int, bits: int, max_iter: int, tol: float )
extension/llm/modules/turboquant/codebook.py:56
↓ 1 callersFunction_sort_outputs
Reorder graph outputs to match ascending external IDs. Args: graph_module (GraphModule): Graph to reorder in place. node_to_id_ma
backends/arm/tosa/backend.py:83
↓ 1 callersFunction_spec_str_dict
(d: Dict[Any, Any])
extension/pytree/test/test.py:48
↓ 1 callersFunction_spec_to_node
Converts an InputSpec or OutputSpec to its corresponding node in the graph.
backends/transforms/utils.py:252
↓ 1 callersMethod_split
Main MHA to SHAs - Start from the attention output or the input of the output projection node, assuming the head axis is 2. -
backends/qualcomm/_passes/convert_mha_to_sha.py:170
↓ 1 callersFunction_split_tokens_on_spaces
Combine tokens into words by splitting at whitespace and punctuation tokens.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_whisper.py:1441
↓ 1 callersMethod_split_whitespaces_or_nonwhitespaces
Splits the string `s` so that each substring contains no more than `max_consecutive_slice_len` consecutive whitespaces or consecutive
examples/models/llama/tokenizer/tiktoken.py:201
↓ 1 callersFunction_sqnr_db
Signal-to-quantization-noise ratio in dB. Higher is better. Thin wrapper around `torch.ao.ns.fx.utils.compute_sqnr` (the canonical implementa
devtools/intermediate_output_tap/_convenience.py:127
↓ 1 callersFunction_square
(graph: "fx.Graph", x: "fx.Node")
devtools/intermediate_output_tap/_reducers.py:109
↓ 1 callersFunction_stack
Stack a list of 0-d tensors into a 1-D tensor.
devtools/intermediate_output_tap/_reducers.py:96
↓ 1 callersFunction_stage_libcxx
(target_dir: pathlib.Path)
backends/qualcomm/scripts/download_qnn_sdk.py:574
↓ 1 callersFunction_stage_prebuilt_glibc
Download + extract Fedora 35 glibc RPM.
backends/qualcomm/scripts/download_qnn_sdk.py:466
↓ 1 callersFunction_staged_schema
()
exir/serde/schema_check.py:28
↓ 1 callersMethod_static_to_encoder_framerate
(self, x: torch.Tensor, partial: torch.Tensor)
examples/qualcomm/oss_scripts/moshi/model/static_mimi.py:561
↓ 1 callersFunction_stream_to_file
Single download attempt with resume support. Returns True on success.
backends/qualcomm/scripts/download_qnn_sdk.py:196
↓ 1 callersMethod_streaming_encoder_layer
One encoder layer with streaming attention (ring buffer KV cache).
examples/models/voxtral_realtime/model.py:1233
↓ 1 callersMethod_stride_condition
Check a simplified stride/padding/dilation constraint. Disallow strides greater than 3 unless there is no padding and the dilation is
backends/arm/operator_support/convolution_support.py:256
↓ 1 callersFunction_strip_taps_in_exported_program
Strip taps in a single ExportedProgram, in place.
devtools/intermediate_output_tap/_strip_pass.py:39
↓ 1 callersFunction_supported_symmetric_quantized_operators
()
backends/xnnpack/quantizer/xnnpack_quantizer.py:69
↓ 1 callersFunction_swap_full_attention
FullAttention → mlx::rope custom op + causal mask.
examples/models/qwen3_5_moe/mlx_source_transformations.py:280
↓ 1 callersFunction_swap_gated_delta_net
GatedDeltaNet → mlx::gated_delta_rule custom op.
examples/models/qwen3_5_moe/mlx_source_transformations.py:261
↓ 1 callersFunction_swap_kv_cache
KVCache → MLX KVCache (mlx::kv_cache_update).
examples/models/qwen3_5_moe/mlx_source_transformations.py:297
↓ 1 callersFunction_swap_moe_experts
FusedMoEExperts → SwitchMLP.
examples/models/qwen3_5_moe/mlx_source_transformations.py:218
↓ 1 callersFunction_swap_rms_norm
GemmaRMSNorm → F.rms_norm (no .float() casts).
examples/models/qwen3_5_moe/mlx_source_transformations.py:317
↓ 1 callersFunction_swap_sparse_moe
SparseMoE → no .float() on expert_weights.
examples/models/qwen3_5_moe/mlx_source_transformations.py:328
↓ 1 callersMethod_symbolic_values
()
exir/tests/test_pass_infra.py:187
↓ 1 callersMethod_tag_module
Tag nodes in a module or submodule from the containing program. Args: module: A GraphModule from `containing_program` to tag node
backends/arm/tosa/partitioner.py:310
↓ 1 callersMethod_tag_quant_io
(self, gm: torch.fx.GraphModule)
backends/qualcomm/_passes/tag_quant_io.py:26
↓ 1 callersFunction_tensor_to_bytes
Convert tensor to bytes using the fastest method available. Uses numpy().tobytes() which is faster than bytes(untyped_storage()) for C-contig
exir/_serialize/_named_data_store.py:18
↓ 1 callersMethod_tensors_similar
Determine if the given TFLite tensors have the same shape and datatype.
backends/nxp/backend/ir/converter/builder/model_builder.py:792
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_upsample_bilinear2d.py:34
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_slice_copy.py:28
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_batch_norm.py:32
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_expand_copy.py:28
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_softmax.py:29
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_rsqrt.py:28
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_squeeze.py:29
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_sqrt.py:28
↓ 1 callersMethod_test
(self, module: torch.nn.Module)
backends/samsung/test/ops/test_bmm.py:33
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_upsample_nearest2d.py:33
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_pixel_shuffle.py:29
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_reshape.py:29
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_clamp.py:34
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_log_softmax.py:29
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_constant_pad_nd.py:29
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_embedding.py:29
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_leaky_relu.py:29
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_minimum.py:28
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_unsqueeze.py:29
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_to_copy.py:28
↓ 1 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_linear.py:29
↓ 1 callersMethod_test_argumenttype_type
(self, arg_str: str, expected: NamedCType)
codegen/test/test_executorch_types.py:34
↓ 1 callersMethod_test_embedding_torchao
( self, bit_width: int, use_dtype_variant: bool, test_per_group: bool,
exir/tests/test_quant_fusion_pass.py:397
↓ 1 callersMethod_test_model_with_factory
( self, model_name: str, tolerance: Optional[float] = None, sqnr_threshold: Op
backends/xnnpack/test/recipes/test_xnnpack_recipes.py:185
↓ 1 callersMethod_test_model_with_target_recipes
Test a model with a specific target recipe and expected backend.
export/tests/test_target_recipes.py:245
↓ 1 callersMethod_test_module_export
Generic test for module export.
backends/apple/metal/tests/test_modules.py:1218
↓ 1 callersMethod_test_module_output_consistency
Test that Metal backend runtime output matches PyTorch output. This test: 1. Exports the model to a .pte file 2. Run
backends/apple/metal/tests/test_modules.py:1245
↓ 1 callersMethod_test_op
(self, op: OpOverload)
backends/test/facto/test_facto.py:183
↓ 1 callersMethod_test_returntype_type
(self, ret_str: str, expected: CType)
codegen/test/test_executorch_types.py:83
↓ 1 callersFunction_tflite_padding_compute_output_size
Calculates the output shape of the tensor with particular setting as tflite would. Implementation corresponds to tensorflow/lite/kernels/padd
backends/nxp/backend/ir/converter/conversion/translator.py:166
↓ 1 callersFunction_to_dim_order_copy
(context, node)
backends/apple/coreml/compiler/torch_ops.py:83
↓ 1 callersFunction_to_edge
(ep, config: EdgeCompileConfig)
exir/program/_program.py:727
↓ 1 callersFunction_to_edge_TOSA_delegate
( target: str, exported_program: ExportedProgram, compile_spec, model: GraphModule, quant_
backends/arm/scripts/aot_arm_compiler.py:825
↓ 1 callersFunction_to_edge_and_lower_llama
( # noqa: C901 builder_exported, modelname, additional_passes, pt2e_quant_params, quantiz
examples/models/llama/export_llama_lib.py:1110
↓ 1 callersFunction_to_edge_and_lower_llama_arm
( builder_exported, modelname, quantizers, additional_passes, llm_config: LlmConfig, v
examples/models/llama/export_llama_lib.py:1040
↓ 1 callersFunction_to_edge_and_lower_llama_mlx
Lower Llama model to MLX backend using to_edge_transform_and_lower.
examples/models/llama/export_llama_lib.py:1082
↓ 1 callersFunction_to_edge_and_lower_llama_openvino
( builder_exported, modelname, quantizers, additional_passes, awq, scale_estimation,
examples/models/llama/export_llama_lib.py:1005
↓ 1 callersFunction_to_edge_and_lower_llama_xnnpack
( builder_exported, modelname, additional_passes, pt2e_quant_params, quantizers, quant
examples/models/llama/export_llama_lib.py:948
↓ 1 callersFunction_to_edge_cortex_m
Cortex-M/CMSIS-NN compilation path with no delegation.
backends/arm/scripts/aot_arm_compiler.py:867
↓ 1 callersFunction_to_edge_no_delegate
( args, exported_program: ExportedProgram, compile_spec, model: GraphModule, quant_mode: O
backends/arm/scripts/aot_arm_compiler.py:940
↓ 1 callersMethod_to_int32
(self, graph_module: torch.fx.GraphModule)
backends/arm/_passes/cast_int64_pass.py:38
↓ 1 callersFunction_to_int4_tensor
Wrap quantized 4-bit data into an Int4Tensor.
examples/models/gemma4_31b/quant/quantize.py:123
↓ 1 callersFunction_to_intx_tensor
Quantize 8-bit and wrap in IntxUnpackedToInt8Tensor. Quantizes in float32 for numerical precision, then constructs the subclass directly. We
examples/models/gemma4_31b/quant/quantize.py:151
↓ 1 callersFunction_to_meta_inputs
( example_inputs: tuple[torch.Tensor, ...], )
backends/arm/test/misc/test_post_quant_device_switch.py:192
↓ 1 callersMethod_to_proxy_value
( self, arg: ProxyValue | torch.fx.Node | Any )
backends/arm/_passes/fuse_consecutive_concat_shapes.py:28
↓ 1 callersMethod_tokenize
Converts a string into a sequence of tokens (string), using the tokenizer. Split in words for word-based vocabulary or sub-words for sub-word
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils.py:613
↓ 1 callersFunction_tosa_FP_pipeline
(module: torch.nn.Module, test_data: input_t1, dump_file=None)
backends/arm/test/misc/test_debug_feats.py:52
↓ 1 callersFunction_tosa_INT_pipeline
(module: torch.nn.Module, test_data: input_t1, dump_file=None)
backends/arm/test/misc/test_debug_feats.py:62
↓ 1 callersMethod_tosa_dispatch
(self, lowered_backend_module: LoweredBackendModule, inputs)
backends/arm/test/runner_utils.py:232
↓ 1 callersMethod_tosa_pipeline
( self, exported_program: ExportedProgram, graph_module: GraphModule )
backends/arm/_passes/arm_pass_manager.py:388
↓ 1 callersFunction_tosa_refmodel_loglevel
Converts a logging loglevel to tosa_reference_model logginglevel, returned as string.
backends/arm/test/runner_utils.py:791
↓ 1 callersMethod_tosa_spec_for_target
(target_lower: str)
backends/arm/ethosu/compile_spec.py:85
← previousnext →6,701–6,800 of 28,493, ranked by callers