MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 1 callersFunction_max_abs_error
(out, ref)
backends/cuda/benchmarks/benchmark_moe.py:257
↓ 1 callersFunction_max_scale
(tosa_spec: TosaSpecification)
backends/arm/tosa/resize_utils.py:38
↓ 1 callersFunction_maybe_duplicate_dynamic_quantize_chain
( gm: torch.fx.GraphModule, chose_qparams_node, get_item_node_1, get_item_node_2, q_node,
backends/transforms/duplicate_dynamic_quant_chain.py:119
↓ 1 callersMethod_maybe_reset_state
( self, input_pos: Optional[torch.Tensor], batch_size: int )
examples/models/llama/attention.py:734
↓ 1 callersFunction_merge_bufsizes
Combine two buffer size lists.
exir/memory_planning.py:1254
↓ 1 callersMethod_merge_partitions
Merge partitions when possible.
exir/backend/canonical_partitioners/group_partitioner.py:201
↓ 1 callersFunction_merge_punctuations
Merges punctuation tokens with neighboring words.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_whisper.py:1469
↓ 1 callersFunction_merge_qparams
Merge two QuantArgs when inputs are quantized differently. Requires same dtype; picks the first's parameters by default.
backends/arm/_passes/fold_qdq_with_annotated_qparams_pass.py:43
↓ 1 callersFunction_missing_dependencies_error
(missing: str)
backends/cortex_m/passes/__init__.py:9
↓ 1 callersFunction_model_reconstruction
( model: torch.nn.Module, input_tensor: torch.Tensor, )
examples/arm/super_resolution_example_vgf/model_export/common.py:398
↓ 1 callersMethod_module_path
(self, node: torch.fx.Node)
examples/qualcomm/oss_scripts/llama/mix_precision_analyzer.py:186
↓ 1 callersFunction_move_to_cuda
Move model to CUDA, materializing meta buffers directly on device. Handles Int4TilePackedTo4dTensor and other tensor subclasses by moving par
examples/models/qwen3_5_moe/inference.py:20
↓ 1 callersMethod_multi_output_annotation
(self)
backends/qualcomm/_passes/insert_requantize.py:81
↓ 1 callersFunction_nan_input_fn
Return a callable(shape, dtype) that generates inputs with some NaN values. Args: nan_frac: Fraction of elements to set to NaN (default 0
backends/mlx/test/test_ops.py:4136
↓ 1 callersFunction_next_power_of_2
Return the smallest power of 2 >= x.
backends/cuda/triton/kernels/topk.py:23
↓ 1 callersFunction_next_power_of_2
Get the next power of 2 >= x, clamped to [16, 256]. Used for HEAD_DIM tiling where tile sizes below 16 waste warps and head dims above 256 ar
backends/cuda/triton/kernels/sdpa.py:48
↓ 1 callersFunction_next_power_of_2_unclamped
Get the next power of 2 >= x (no clamping). Used for GQA group-count tiling where num_groups can be small (1, 2, ...) and should not be infla
backends/cuda/triton/kernels/sdpa.py:65
↓ 1 callersFunction_node_dtype
Return the dtype of a graph node's output, or None if unknown.
backends/openvino/_passes/decompose_floor_divide_pass.py:39
↓ 1 callersMethod_node_inputs_ranks_not_equal
(node)
backends/nxp/backend/ir/converter/node_converter.py:442
↓ 1 callersMethod_node_is_placeholder
(self, node: Node)
backends/nxp/backend/node_format_inference.py:335
↓ 1 callersFunction_node_port_dtypes
Extract input/output dtypes from FX node meta. Adjust this function to your actual FX meta layout.
backends/qualcomm/quantizer/validators.py:200
↓ 1 callersMethod_node_produces_or_consumes_channels_first_format
Check if node itself produces output in channels first format or consumes it from ancestor node.
backends/nxp/backend/node_format_inference.py:317
↓ 1 callersMethod_node_product_has_0_to_2_dimensions
(self, node: Node)
backends/nxp/backend/node_format_inference.py:302
↓ 1 callersMethod_nodes
(self, graph_module, wanted_sources, node_checker=None)
backends/qualcomm/_passes/convert_mha_to_sha.py:115
↓ 1 callersMethod_norm
(self, x)
examples/models/llama/norm.py:34
↓ 1 callersMethod_norm
(self, x)
examples/models/llama/norm.py:83
↓ 1 callersMethod_norm
(self, x: torch.Tensor)
examples/models/gemma4/text_decoder/gemma4_norm.py:36
↓ 1 callersMethod_normalize_and_to_channel_last_dim
(dim: list[int], rank: int)
backends/nxp/backend/ir/converter/node_converters/ops_converters/mean_dim_converter.py:87
↓ 1 callersFunction_normalize_cmake_bool
(value: Optional[str], default: bool = False)
install_utils.py:114
↓ 1 callersMethod_normalize_dim
Make sure the dimension index `dim` is positive. :arg dim: The dimension index (can be negative) :arg rank: The total number of dimens
backends/nxp/backend/ir/converter/node_converters/ops_converters/softmax_converter.py:100
↓ 1 callersMethod_normalize_group_name
Buckets layer indices into broader ranges for SQNR aggregation.
examples/qualcomm/oss_scripts/llama/mix_precision_analyzer.py:194
↓ 1 callersMethod_normalize_input_layout
(self, graph_module: torch.fx.GraphModule)
backends/arm/_passes/normalize_delegate_io_layout_pass.py:45
↓ 1 callersMethod_normalize_node
(self, graph_module: GraphModule, node: Node)
backends/arm/_passes/normalize_while_initial_args_pass.py:75
↓ 1 callersFunction_normalize_op_info
Convert OpInfo → NormalizedConstraints.
backends/qualcomm/quantizer/backend_opinfo_adapter.py:116
↓ 1 callersMethod_normalize_output_layout
(self, graph_module: torch.fx.GraphModule)
backends/arm/_passes/normalize_delegate_io_layout_pass.py:121
↓ 1 callersMethod_normalize_permutation
( permutation: Sequence[int], rank: int )
backends/arm/_passes/rewrite_high_rank_singleton_permute_pass.py:43
↓ 1 callersMethod_normalize_version
(cls, version: Version | str)
backends/arm/tosa/specification.py:141
↓ 1 callersMethod_op_rules_satisfied
Check if all operator rules defined for this `Op` are satisfied.
backends/nxp/backend/ir/neutron_ir_post_processing/pattern_matcher.py:131
↓ 1 callersMethod_op_rules_satisfied
Check if all operator rules defined for this `MultipleSameOps` are satisfied for all operators.
backends/nxp/backend/ir/neutron_ir_post_processing/pattern_matcher.py:353
↓ 1 callersMethod_op_type_matches
Check if the type of the TFLite operator `real_op` matches the types defined in this `Op`.
backends/nxp/backend/ir/neutron_ir_post_processing/pattern_matcher.py:122
↓ 1 callersMethod_op_types_match
Check if the types of the TFLite operators `real_ops` match the types defined in this `MultipleSameOps`.
backends/nxp/backend/ir/neutron_ir_post_processing/pattern_matcher.py:339
↓ 1 callersFunction_owner
(cls: type, name: str)
backends/arm/scripts/generate_public_api_manifest.py:72
↓ 1 callersMethod_pack_and_update_graph
Pack the fused weights and update the graph.
backends/cadence/aot/fuse_ops.py:510
↓ 1 callersFunction_pack_for_backend
(model: nn.Module, path: str, backend: str)
examples/models/gemma4_31b/export.py:120
↓ 1 callersFunction_pack_to_two_uint8
(scale: torch.Tensor)
examples/models/llama/experimental/subclass.py:57
↓ 1 callersMethod_pack_with_alignment
Packs provided data into serialized binary data of the following C struct: struct NeutronBinary { uint8[] header;
backends/nxp/nxp_backend.py:360
↓ 1 callersFunction_pad1d
( x: torch.Tensor, paddings: tuple[int, int], mode: str = "constant", value: float = 0.0, )
examples/models/voxtral_tts/model.py:915
↓ 1 callersMethod_pad_along_dim
( self, x, dim: int, left: int, right: int, mode: str,
backends/arm/_passes/rewrite_pad.py:71
↓ 1 callersFunction_pad_list_to_4
(lst)
backends/qualcomm/_passes/convert_linear_to_conv2d.py:16
↓ 1 callersFunction_pad_to_length
Pad patches and positions to target_length along first dim.
examples/models/gemma4/image_utils.py:136
↓ 1 callersMethod_padding_format_string_for_array
Create a padding format string for the given array, which will add 0s at the end for correct alignment. E.g. the string '10x' represents addin
backends/nxp/nxp_backend.py:270
↓ 1 callersFunction_padding_required
(offset: int, alignment: int)
backends/mlx/serialization/mlx_graph_serialize.py:56
↓ 1 callersFunction_padding_required
Returns the padding required to align `offset` to `alignment`.
backends/xnnpack/serialization/xnnpack_graph_serialize.py:247
↓ 1 callersFunction_parse_args
()
install_executorch.py:165
↓ 1 callersFunction_parse_args
()
examples/models/gemma4/run_gemma4.py:75
↓ 1 callersMethod_parse_args
( # noqa: C901 node: torch.fx.Node, nodes: Dict[str, Node], const_count: int,
devtools/debug_format/et_schema.py:112
↓ 1 callersFunction_parse_devices
(arg: str)
docs/source/custom_directives.py:75
↓ 1 callersFunction_parse_graph_info
Extract top-level graph scalars (tensor counts, chain counts, etc.).
backends/mlx/pte_inspector.py:132
↓ 1 callersFunction_parse_instructions
Parse all instruction chains and their op nodes.
backends/mlx/pte_inspector.py:153
↓ 1 callersFunction_parse_io_maps
Return (input_map, output_map, mutable_buffer_map) as slot-variant dicts.
backends/mlx/pte_inspector.py:233
↓ 1 callersFunction_parse_named_slots
(graph)
backends/mlx/pte_inspector.py:183
↓ 1 callersFunction_parse_op_node
Parse the specific op node fields from an instruction. Uses the generated field mappings in ``OP_NODE_FIELDS`` to extract op-specific fields
backends/mlx/pte_inspector.py:294
↓ 1 callersFunction_parse_pool_args
Parse pooling op arguments, normalizing scalars to lists. ATen pooling signatures: max_pool{N}d_with_indices(input, kernel_size, stride, pa
backends/mlx/ops.py:3462
↓ 1 callersFunction_parse_properties
(arg: str)
docs/source/custom_directives.py:86
↓ 1 callersMethod_parse_skip_delegation_node
( self, skip_delegate_node_ids, skip_delegate_node_ops )
backends/qualcomm/export_utils.py:188
↓ 1 callersFunction_parse_tensor_meta
(graph)
backends/mlx/pte_inspector.py:202
↓ 1 callersFunction_partition_and_lower
Partitions the graph module into submodules based on tags, and then lowered the nodes with the same tag as one lowered module, including the subm
exir/backend/backend_api.py:337
↓ 1 callersFunction_partition_and_lower_one_graph_module
Partitioned and lowered the graph module based on the partition tag, this is to handle one graph module.
exir/backend/backend_api.py:262
↓ 1 callersMethod_partition_contains_compute_nodes
( partition: Partition, parameters_mapping: dict[str, Parameter] )
backends/nxp/neutron_partitioner.py:352
↓ 1 callersMethod_partition_gm
( self, graph_module: torch.fx.GraphModule, id_start: int = 0 )
exir/backend/test/backend_with_named_data_map.py:84
↓ 1 callersMethod_partition_graph_module
( self, edge_graph_module: torch.fx.GraphModule )
exir/backend/test/test_backends_nested.py:102
↓ 1 callersMethod_partition_graph_module
( self, edge_graph_module: torch.fx.GraphModule )
exir/backend/test/test_backends_nested.py:179
↓ 1 callersMethod_partition_graph_module
( self, graph_module: torch.fx.GraphModule, )
exir/backend/test/op_partitioner_demo.py:67
↓ 1 callersMethod_partition_graph_module
( self, graph_module: torch.fx.GraphModule, )
exir/backend/test/op_partitioner_demo.py:245
↓ 1 callersMethod_partition_graph_module
( self, graph_module: torch.fx.GraphModule, id_start=0, )
exir/backend/test/backend_with_preprocess_all_demo.py:237
↓ 1 callersMethod_partition_graph_module
( self, edge_graph_module: torch.fx.GraphModule )
backends/example/example_partitioner.py:46
↓ 1 callersMethod_partition_has_invalid_uint8
Return True if any uint8 appears outside allowed IO nodes. TOSA does not have a true uint8 tensor type. Unsigned semantics are only a
backends/arm/tosa/partitioner.py:267
↓ 1 callersFunction_partition_specs_by_device
Partition specs by (device_type, device_index). Different device indices on the same device type (e.g. CUDA:0 vs CUDA:1) get separate memory
exir/memory_planning.py:1343
↓ 1 callersFunction_partitions_sequential
(partitions: tuple[SourcePartition])
backends/nxp/quantizer/utils.py:175
↓ 1 callersFunction_partitions_sequential
(partitions: Tuple[SourcePartition])
backends/cadence/aot/quantizer/utils.py:240
↓ 1 callersFunction_patch_hf_audio_for_export
Monkey-patch HF Gemma4 audio modules to fix torch.export blockers. Requires transformers >= 5.2.0 with Gemma4 model support. Build with: buck
examples/models/gemma4/export_gemma4.py:130
↓ 1 callersFunction_patch_schema_alignment
Modifies annotated "force_align" values in a flatbuffer schema. Args: schema: The flatbuffer schema to modify. constant_tensor_al
exir/_serialize/_flatbuffer.py:36
↓ 1 callersFunction_patch_spec
(spec: Spec)
backends/test/facto/test_facto.py:58
↓ 1 callersFunction_patchify
Convert (C, H, W) image to (num_patches, patch_dim) patches. Patches are extracted in row-major order (left-to-right, top-to-bottom).
examples/models/gemma4/image_utils.py:113
↓ 1 callersMethod_pattern_prefix
(self, index: int, total: int, pattern_size: int)
backends/cortex_m/quantizer_reporter.py:264
↓ 1 callersMethod_pattern_repr
(self, nodes: List[Node])
backends/cortex_m/quantizer_reporter.py:403
↓ 1 callersMethod_pattern_rows
(self, include_prefix: bool)
backends/cortex_m/quantizer_reporter.py:216
↓ 1 callersMethod_pe_encoding
Positionally encode points that are normalized to [0,1].
examples/qualcomm/oss_scripts/efficientSAM/source_transformation/pos_emb.py:19
↓ 1 callersMethod_perform_partition_merge
Merge partition p2 into p1.
exir/backend/canonical_partitioners/group_partitioner.py:241
↓ 1 callersMethod_permute_shape
(shape: torch.Size, perm: tuple[int, ...])
backends/arm/_passes/normalize_delegate_io_layout_pass.py:38
↓ 1 callersMethod_pick_sdpa_kernel
Choose between standard SDPA and split-K flash-decoding. Split-K partitions the KV sequence across many CTAs for better GPU utilizati
backends/cuda/triton/replacement_pass.py:89
↓ 1 callersMethod_pkg_name_match
(self, node1: torch.fx.Node, node2: torch.fx.Node)
backends/cadence/aot/fuse_ops.py:636
↓ 1 callersMethod_place_memory_id_pinned_specs
Callable interface for ET memory planning.
backends/cadence/aot/memory_planning_algo.py:188
↓ 1 callersMethod_place_pinned_specs
Place pinned specs with fixed mem_id AND offset.
backends/cadence/aot/memory_planning_algo.py:167
↓ 1 callersMethod_place_specs_with_no_absolute_constraints
( self, spec_with_abs_constraint: dict[ TensorSpec, Optional[AbsolutePlacementCons
backends/cadence/aot/memory_planning_algo.py:244
↓ 1 callersMethod_poly
(self, x, meta)
backends/arm/_passes/decompose_log1p_pass.py:36
↓ 1 callersMethod_pool_arg_as_bool
(cls, node: Node, index: int, default: bool)
backends/cortex_m/quantizer/pattern_checkers.py:292
↓ 1 callersMethod_populate_verification_branches
Populate verification branches with tokens from the n-gram cache.
examples/apple/coreml/llama/llama_transformer.py:726
↓ 1 callersFunction_positive_valid_dim_list
Generate valid permutations using only positive dimension indices. This is required for Cadence/Xtensa kernels that don't support negative in
backends/cadence/utils/facto_util.py:30
↓ 1 callersMethod_post
(self, stage)
backends/test/harness/tester.py:196
← previousnext →6,401–6,500 of 28,493, ranked by callers