MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 1 callersMethod_build_conv2d_relu_graph
Build a graph with a conv2d followed by relu (fused pattern). Returns: A tuple of (graph_module, relu_node, conv_node).
backends/cadence/aot/tests/test_quantizer_ops.py:576
↓ 1 callersMethod_build_conv_args
(op, args, input_slice, filter_slice, bias_slice)
backends/arm/_passes/decompose_grouped_conv_pass.py:154
↓ 1 callersMethod_build_dataset_for_encoder
( self, config: MultiModalityConfig, prompt: str, files_path: List[str], )
examples/qualcomm/oss_scripts/llama/dataset.py:156
↓ 1 callersMethod_build_flatbuffer
(self)
backends/mlx/serialization/mlx_graph_serialize.py:145
↓ 1 callersMethod_build_fp16_recipe
( self, recipe_type: RecipeType, kwargs: Any, )
backends/qualcomm/recipes/qnn_recipe_provider.py:122
↓ 1 callersMethod_build_fp32_recipe
(self, recipe_type: RecipeType)
backends/xnnpack/recipes/xnnpack_recipe_provider.py:108
↓ 1 callersFunction_build_imagenet_calibration_samples
( calibration_dir: str, max_samples: int )
backends/arm/scripts/evaluate_model.py:228
↓ 1 callersFunction_build_inputs_embeds
Build the inputs_embeds tensor with audio/vision outputs scattered into placeholder positions.
examples/models/gemma4/run_gemma4.py:205
↓ 1 callersMethod_build_instruction
( self, builder: flatbuffers.Builder, instr: Instruction )
backends/mlx/serialization/mlx_graph_serialize.py:221
↓ 1 callersMethod_build_io_maps
Build input/output/mutable_buffer maps and named slots. Returns: (input_map, output_map, mutable_buffer_map, named_slots
backends/mlx/builder/program_builder.py:773
↓ 1 callersMethod_build_layer_norm_graph
Build a simple graph with a layer_norm operation.
backends/cadence/aot/tests/test_quantizer_ops.py:371
↓ 1 callersMethod_build_masks
Build boolean (B=1, H=1, T_q, T_kv) masks for full and sliding attention. True = attend. Built once per forward, shared across layers of the
examples/models/gemma4_31b/model.py:442
↓ 1 callersMethod_build_max_pool2d_graph
Build a graph with max_pool2d_with_indices followed by getitem[0]. Returns: A tuple of (graph_module, getitem_node, max_pool_node
backends/cadence/aot/tests/test_quantizer_ops.py:487
↓ 1 callersMethod_build_mlx_graph
(self)
backends/mlx/builder/program_builder.py:930
↓ 1 callersFunction_build_model
Build a tiny static-attention Llama with random weights.
devtools/intermediate_output_tap/tests/test_coreml_e2e.py:119
↓ 1 callersFunction_build_model_args
(metadata: dict[str, Any])
extension/gguf_util/load_gguf.py:66
↓ 1 callersMethod_build_named_slot
(self, builder: flatbuffers.Builder, ns: NamedSlot)
backends/mlx/serialization/mlx_graph_serialize.py:282
↓ 1 callersFunction_build_non_const_buffer_device
Build the non-CPU buffer device list for serialization. Returns ``None`` when all buffers are CPU (the default), so that no redundant device
exir/memory_planning.py:1394
↓ 1 callersMethod_build_op_node
Build an op node and return (offset, union_type). This is the main dispatch for all op types.
backends/mlx/serialization/mlx_graph_serialize.py:235
↓ 1 callersMethod_build_operator_code
Add a new OperatorCode for given 'op_type' and 'version' to the 'operator_codes' vector.
backends/nxp/backend/ir/converter/builder/model_builder.py:591
↓ 1 callersFunction_build_parser
()
examples/qualcomm/oss_scripts/llama/llama.py:341
↓ 1 callersFunction_build_partitioners
Build per-method XNNPACK partitioner lists.
examples/models/gemma4/export_gemma4.py:613
↓ 1 callersFunction_build_prompt_ids
Assemble the input token ID list for the model turn.
examples/models/gemma4/run_gemma4.py:183
↓ 1 callersMethod_build_relu_graph
Build a simple graph with a relu operation.
backends/cadence/aot/tests/test_quantizer_ops.py:441
↓ 1 callersFunction_build_rescale
Insert a TOSA RESCALE operator configured for the quantized path. Args: tosa_fb (Any): Graph builder receiving the RESCALE operator.
backends/arm/operators/op_tosa_rescale.py:153
↓ 1 callersMethod_build_shape_dim
(self, builder: flatbuffers.Builder, dim)
backends/mlx/serialization/mlx_graph_serialize.py:322
↓ 1 callersMethod_build_softmax_graph
Build a simple graph with a softmax operation.
backends/cadence/aot/tests/test_quantizer_ops.py:350
↓ 1 callersMethod_build_stages
Build the stage registry from the given stages.
export/export.py:296
↓ 1 callersMethod_build_tensor_meta
(self, builder: flatbuffers.Builder, tm: TensorMeta)
backends/mlx/serialization/mlx_graph_serialize.py:295
↓ 1 callersMethod_build_tensor_meta
Build tensor metadata list with shape/dtype information. Static dimensions are stored as ShapeDim(value=N). Dynamic dimensio
backends/mlx/builder/program_builder.py:848
↓ 1 callersFunction_build_transform_passes
Build per-method transform passes (text decoder gets bitwise lowering).
examples/models/gemma4/export_gemma4.py:642
↓ 1 callersMethod_build_transpose_probe_tosa
Creates a tosa flatbuffer only containing a single transpose operator with given shape, permutation and dtype.
backends/arm/_passes/decompose_permute_for_u55_pass.py:65
↓ 1 callersMethod_build_user_signature
(self, node: Node)
backends/arm/_passes/fuse_duplicate_users_pass.py:107
↓ 1 callersMethod_build_vision_dataset
This will processes images using the HuggingFace processor and saves the processed pixel values for runtime evaluation. Args
examples/qualcomm/oss_scripts/llama/dataset.py:112
↓ 1 callersMethod_bump
(self)
backends/mlx/builder/slot_manager.py:62
↓ 1 callersMethod_calculate_flat_indices
The flat index is computed as: sum(index[i] * (stride[i])) for each dimension i in shape.
backends/arm/_passes/rewrite_index_put_pass.py:73
↓ 1 callersMethod_calculate_reference_output
Execute the reference program and return the output. If the output comes from a dequantize node, return the quantization scale as wel
backends/test/harness/tester.py:505
↓ 1 callersMethod_calculate_reference_output
Note: I'd prefer to use the base class method here, but since it use the exported program, I can't. The partitioner stage clears the
backends/arm/test/tester/arm_tester.py:1038
↓ 1 callersMethod_call_quantized_bmm_without_fake_kernel
( self, op, args: tuple[ProxyValue, ...], kwargs: dict[str, Any], meta
backends/arm/_passes/arm_pass.py:103
↓ 1 callersFunction_callable_name
(any_callable: Callable[..., Any])
exir/passes/memory_planning_pass.py:36
↓ 1 callersMethod_can_merge_partitions
Check if merging two partitions would create a cycle.
exir/backend/canonical_partitioners/group_partitioner.py:98
↓ 1 callersMethod_canonicalize_cast
( self, graph_module: torch.fx.GraphModule )
backends/qualcomm/_passes/fuse_consecutive_cast.py:40
↓ 1 callersFunction_canonicalize_graph
( sorted_inputs, sorted_outputs, graph )
exir/serde/export_serialize.py:2413
↓ 1 callersMethod_canonicalize_sdpa_call
( cls, node: torch.fx.Node )
backends/transforms/decompose_sdpa.py:60
↓ 1 callersMethod_cast_constant_to_int32
(self, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/i64_to_i32.py:129
↓ 1 callersFunction_cast_fp32
Insert a fp32 cast (no-op semantically if already fp32).
devtools/intermediate_output_tap/_reducers.py:82
↓ 1 callersMethod_cast_op_args_to_i64
(self, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/i64_to_i32.py:155
↓ 1 callersMethod_ceate_args
(self, target: torch.fx.node.Target, quant_attrs: Dict)
backends/qualcomm/_passes/insert_io_qdq.py:51
↓ 1 callersMethod_change_depthwise_weight_to_hwc
Convert depthwise weight from OIHW [OC, 1, KH, KW] to HWC [KH, KW, OC]. NNLib depthwise convolution expects weights in [KH, KW, OC] format wh
backends/cadence/aot/replace_ops.py:1082
↓ 1 callersMethod_change_nchw_to_nhwc
Convert NCHW format to NHWC format.
backends/cadence/aot/replace_ops.py:1214
↓ 1 callersMethod_change_nhwc_to_nchw
Convert NHWC format to NCHW format.
backends/cadence/aot/replace_ops.py:1069
↓ 1 callersMethod_change_nhwc_to_nchw
Convert NHWC format to NCHW format.
backends/cadence/aot/replace_ops.py:1224
↓ 1 callersMethod_change_shape
(self)
examples/models/llama/experimental/subclass.py:207
↓ 1 callersMethod_check
(self, out, ref, tol=0.15)
backends/cuda/tests/test_int4_dispatch.py:169
↓ 1 callersFunction_check_default_mem_ids
(gm: torch.fx.GraphModule)
exir/passes/memory_planning_pass.py:120
↓ 1 callersFunction_check_feature_flags
Check all feature flags: a pass is included only if every feature it requires is enabled in the config. Iterates over EdgePassesConfig fields
backends/cadence/aot/pass_utils.py:73
↓ 1 callersMethod_check_if_called_from_to_backend
Check if the partition method is being called from the deprecated to_backend workflow. Returns True if called from deprecated direct
backends/xnnpack/partition/xnnpack_partitioner.py:68
↓ 1 callersMethod_check_if_called_from_to_backend
Check if the partition method is being called from the deprecated to_backend workflow. Returns True if called from deprecated direct
backends/apple/coreml/partition/coreml_partitioner.py:269
↓ 1 callersMethod_check_implicit_q_dq_tagging
( self, graph_module: torch.fx.GraphModule, expected_tagging: list[bool] )
backends/xnnpack/test/passes/test_channels_last_tagged_reshape.py:422
↓ 1 callersFunction_check_input_dtypes
Check if all input tensors to a node have supported dtypes. Args: node: The FX node to check Returns: None if all input
backends/mlx/builder/program_builder.py:87
↓ 1 callersMethod_check_input_qspecs
(self, graph: Graph, input_qspecs)
backends/arm/test/tester/arm_tester.py:732
↓ 1 callersMethod_check_inputs_are_valid_dtypes
(self, node, valid_dtypes)
backends/xnnpack/partition/config/xnnpack_config.py:152
↓ 1 callersMethod_check_kwargs
Check that node's kwargs are all declared in self.kwargs (no unhandled kwargs).
backends/mlx/pattern_utils.py:191
↓ 1 callersMethod_check_lowering_error
Compare original model output with session output using tolerance.
export/tests/test_target_recipes.py:112
↓ 1 callersMethod_check_named_data_entries
( self, reference: Dict[str, DataEntry], actual: Dict[str, DataEntry] )
exir/_serialize/test/test_program.py:300
↓ 1 callersMethod_check_nargs
Check if node has the required number of args.
backends/mlx/pattern_utils.py:180
↓ 1 callersMethod_check_node
(cls, node: Node)
backends/cortex_m/quantizer/pattern_checkers.py:160
↓ 1 callersMethod_check_node_has_valid_dtype
(self, node)
backends/xnnpack/partition/config/xnnpack_config.py:227
↓ 1 callersMethod_check_output_padding
(self, output_padding: list[int], node: fx.Node)
backends/arm/operator_support/convolution_support.py:70
↓ 1 callersMethod_check_output_qspecs
(self, graph: Graph, output_qspecs)
backends/arm/test/tester/arm_tester.py:756
↓ 1 callersMethod_check_outputs_are_valid_dtypes
(self, node, valid_dtypes)
backends/xnnpack/partition/config/xnnpack_config.py:208
↓ 1 callersMethod_check_per_channel_group_params
( quant_params: QuantParams, dims: List[int] )
backends/xnnpack/operators/node_visitor.py:338
↓ 1 callersMethod_check_qspecs
(self, graph: Graph, quantization_annotations)
backends/arm/test/tester/arm_tester.py:778
↓ 1 callersMethod_check_quantization_error
Compare original model output with session output using SQNR.
export/tests/test_target_recipes.py:141
↓ 1 callersFunction_check_sdk_available
Return 0 if the SDK is cached or the download server is reachable, 1 otherwise. Uses requests.head() so HTTPS_PROXY env vars are respected — devv
backends/qualcomm/scripts/download_qnn_sdk.py:773
↓ 1 callersMethod_check_squeeze_unsqueeze_view
(self, node: torch.fx.Node)
backends/transforms/remove_permutes_around_elementwise_ops.py:104
↓ 1 callersFunction_check_tensor_args_matching_op_allowed_dtype
(gm: GraphModule)
exir/verification/verifier.py:213
↓ 1 callersFunction_check_tensors_are_contiguous
(gm: GraphModule)
exir/verification/verifier.py:42
↓ 1 callersMethod_check_transposed_conv_u55
Implement the condition checks specified in https://gitlab.arm.com/artificial-intelligence/ethos-u/ethos-u-vela/-/blob/main/SUPPORTED_OPS.md?r
backends/arm/operator_support/convolution_support.py:127
↓ 1 callersMethod_check_transposed_support
( self, node: fx.Node, groups: int, output_padding: list[int] )
backends/arm/operator_support/convolution_support.py:80
↓ 1 callersFunction_check_valid_dim_order_ops
(op, use_dim_order)
exir/verification/verifier.py:52
↓ 1 callersMethod_chunk_ranges
(size: int, max_chunk: int)
backends/arm/_passes/decompose_permute_for_u55_pass.py:134
↓ 1 callersFunction_class_string_assignments
(module: ast.Module, class_name: str)
examples/models/lfm2/test_lfm2_5_mlx.py:32
↓ 1 callersMethod_clone_transpose
( self, graph_module: torch.fx.GraphModule )
backends/qualcomm/_passes/fuse_consecutive_transpose.py:40
↓ 1 callersMethod_collect_conv_in_channels
Collects in_channels from all conv2d nodes in fp32_gm.
examples/qualcomm/oss_scripts/llama/mix_precision_analyzer.py:148
↓ 1 callersFunction_collect_disallow_flags
(graph: torch.fx.Graph)
backends/arm/test/quantizer/test_partial_quantization.py:49
↓ 1 callersFunction_collect_leaves
(arg, nodes)
backends/arm/tosa/backend.py:63
↓ 1 callersMethod_collect_ngrams
Collect new n-grams from the current state and predictions.
examples/apple/coreml/llama/llama_transformer.py:736
↓ 1 callersMethod_collect_output_nodes
( output_value: Any, counts: Counter[torch.fx.Node] )
backends/arm/_passes/ensure_unique_output_nodes_pass.py:28
↓ 1 callersFunction_collect_quant_params
(nodes)
backends/arm/test/misc/test_shared_qspecs.py:46
↓ 1 callersMethod_collect_run_outputs
Given a list of events, search the events for ProgramOutputs (aka lists of InferenceOutputs) marked as run outputs
devtools/inspector/_inspector.py:906
↓ 1 callersMethod_collect_used_slots
Collect all used slots and count tensors/values per IdSpace. For constants and temps, only includes those actually referenced by
backends/mlx/builder/program_builder.py:662
↓ 1 callersFunction_collect_w4_replacement_targets
(model)
examples/models/qwen3_5_moe/export.py:576
↓ 1 callersFunction_combine_aot_overlapped_intermediate_outputs
Ensure the AOT combined debug_handles are the same as the runtime debug_handles (order ignored), then pick the last intermediate output based
devtools/inspector/_inspector_utils.py:644
↓ 1 callersMethod_combine_recipes
Util to combine multiple backend recipes into a single multi-backend recipe. Args: backend_recipes: List of ExportRecipe
export/recipe.py:235
↓ 1 callersFunction_combine_tokens_into_words
Groups tokens by word. Returns a tuple containing a list of strings with the words, and a list of `token_id` sequences with the tokens making
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_whisper.py:1380
↓ 1 callersMethod_compare_ep_state_dict
(self, et_ep1, et_ep2)
backends/transforms/test/test_create_mutable_buffer.py:266
↓ 1 callersMethod_compare_intermediate_outputs
Compare two outputs, handling both sequence and non-sequence cases. Args: a: The first intermediate output to compare.
devtools/inspector/numerical_comparator/numerical_comparator_base.py:165
↓ 1 callersMethod_compare_outputs
Compares the original of the original nn module with the output of the generated artifact. This requres calling run_method before cal
backends/test/harness/tester.py:469
↓ 1 callersMethod_compare_outputs
( self, reference_output, stage_output, quantization_scale=None, atol=
backends/arm/test/tester/arm_tester.py:1052
← previousnext →5,501–5,600 of 28,493, ranked by callers