MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 1 callersMethod_pre
(self, stage)
backends/test/harness/tester.py:181
↓ 1 callersFunction_pred
(node, pat)
backends/qualcomm/_passes/utils.py:189
↓ 1 callersFunction_prefill_chunking
( inputs: DecoderInputs, module: torch.fx.GraphModule, ar_len: int, collect_logits, result
examples/qualcomm/oss_scripts/llama/decoder_utils.py:400
↓ 1 callersMethod_prep_conv_biases
Delegate bias prep to the shared helper. Creates zero biases for biasless convs and quantizes any float biases.
backends/cadence/aot/quantizer/passes/fuse_ops.py:171
↓ 1 callersFunction_prepare_and_quantize_metal
Metal: apply source transforms, quantize experts + non-expert layers.
examples/models/qwen3_5_moe/export.py:72
↓ 1 callersFunction_prepare_and_quantize_mlx
MLX: apply source transforms, quantize via torchao, pack experts.
examples/models/qwen3_5_moe/export.py:33
↓ 1 callersMethod_prepare_inputs
( self, prompt: str, )
backends/arm/test/models/test_T5ForConditionalGeneration_arm.py:51
↓ 1 callersMethod_prepare_inputs
(self, batch_size=4, num_channels=3, sizes=(32, 32))
backends/arm/test/models/stable_diffusion/test_vae_AutoencoderKL.py:37
↓ 1 callersMethod_prepare_inputs
( self, batch_size=12, seq_length=7, vocab_size=1000, )
backends/arm/test/models/stable_diffusion/test_T5EncoderModel.py:56
↓ 1 callersMethod_prepare_inputs
( self, batch_size=2, num_channels=4, height=32, width=32, emb
backends/arm/test/models/stable_diffusion/test_SD3Transformer2DModel.py:53
↓ 1 callersMethod_prepare_inputs
( self, batch_size=12, seq_length=7, vocab_size=1000, )
backends/arm/test/models/stable_diffusion/test_CLIPTextModelWithProjection.py:54
↓ 1 callersMethod_prepare_model
(self)
examples/qualcomm/oss_scripts/llama/wrappers/attention_sink_wrappers.py:259
↓ 1 callersMethod_prepare_model
(self)
examples/qualcomm/oss_scripts/llama/wrappers/llm_wrappers.py:155
↓ 1 callersMethod_prepare_qkv
Prepare Q/K/V with standard projection (non-YOCO path).
examples/models/llama/attention.py:511
↓ 1 callersMethod_prepare_qkv_shared
Prepare Q/K/V when using shared KV from a donor layer (YOCO).
examples/models/llama/attention.py:485
↓ 1 callersFunction_prepare_validation
( model: YOLO, dataset_yaml_path: str )
examples/models/yolo26/export_and_validate.py:280
↓ 1 callersMethod_preprocess_module
Convert an FX ``graph_module`` to TOSA serializer calls. Args: graph_module (GraphModule): Module to lower recursively.
backends/arm/tosa/backend.py:305
↓ 1 callersMethod_preserve_io_quantization_enabled
Return True if IO quantization should be preserved from compile specs.
backends/arm/tosa/partitioner.py:252
↓ 1 callersMethod_preserve_output_dtype
(self, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/i64_to_i32.py:78
↓ 1 callersMethod_preserve_qdq
(self, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/fold_qdq.py:101
↓ 1 callersFunction_print_channels
( result: torch.Tensor, reference: torch.Tensor, channels_close: Sequence[bool], C: int, H
backends/arm/test/tester/analyze_output_utils.py:32
↓ 1 callersFunction_print_df
(df: pd.DataFrame, header: str)
devtools/intermediate_output_tap/tests/test_coreml_e2e.py:104
↓ 1 callersFunction_print_elements
( result: torch.Tensor, reference: torch.Tensor, C: int, H: int, W: int, rtol: float,
backends/arm/test/tester/analyze_output_utils.py:91
↓ 1 callersFunction_probe
( cur, hist, pat_idx, asterisk_life_count=max_wildcard_life, verbose=verbose )
backends/qualcomm/_passes/utils.py:223
↓ 1 callersMethod_process_all_nodes
Process nodes into a partition.
exir/backend/canonical_partitioners/group_partitioner.py:137
↓ 1 callersFunction_process_checkpoint_key
Remap a single checkpoint key and store into state_dict or expert_weights.
examples/models/qwen3_5_moe/model.py:850
↓ 1 callersFunction_process_edge_dialect_program
Process edge dialect program and return the exported program(s). For EdgeProgramManager with multiple methods, returns a Dict[str, ExportedProgra
devtools/etrecord/_etrecord.py:671
↓ 1 callersFunction_process_executorch_program
Process executorch program and return debug maps and bundled program data.
devtools/etrecord/_etrecord.py:703
↓ 1 callersFunction_process_exported_program
Process exported program and return the processed program and export graph id.
devtools/etrecord/_etrecord.py:617
↓ 1 callersMethod_process_getitem_nodes
Post-process getitem nodes.
exir/backend/canonical_partitioners/group_partitioner.py:275
↓ 1 callersMethod_process_inputs
( self, *args, **kwargs )
examples/openvino/stable_diffusion/export_lcm.py:92
↓ 1 callersMethod_process_nodes
Go through program nodes and append their TFLite siblings into ModelBuilder. :param nodes: Program's nodes. :param conversio
backends/nxp/backend/edge_program_converter.py:149
↓ 1 callersMethod_process_normal_kv
Process normal KV. Args: new_qs (list): List of new queries. new_ks (list): List of new keys. new_vs (lis
examples/models/llama/static_attention.py:1205
↓ 1 callersMethod_process_shared_kv
Process shared KV. Args: new_qs (list): List of new queries. shared_kv (tuple): Shared KV. freqs_cos (lis
examples/models/llama/static_attention.py:1166
↓ 1 callersFunction_process_single_runtime_output
Process a single runtime output and map it to the corresponding AOT output. Returns: A tuple of ((aot_debug_handle, aot_output), (ru
devtools/inspector/_inspector_utils.py:867
↓ 1 callersFunction_promote_dtype
Promote to common dtype following PyTorch type promotion rules.
backends/vulkan/_passes/insert_dtype_promotion.py:36
↓ 1 callersMethod_propagate_quant_params
(self, node: Node)
backends/samsung/_passes/annotate_qparams.py:85
↓ 1 callersMethod_propagate_special_dtype
Propagate special dtype meta if it exists.
backends/arm/_passes/fuse_constant_ops_pass.py:88
↓ 1 callersFunction_ptq_calibrate
(captured_model, quantizer, dataset)
backends/qualcomm/export_utils.py:963
↓ 1 callersFunction_q4_k_reference_dequant
Reference Q4_K dequantization from the GGUF spec.
examples/models/gemma4_31b/quant/tests/test_gguf.py:101
↓ 1 callersFunction_q6_k_reference_dequant
Reference Q6_K dequantization from the GGUF spec.
examples/models/gemma4_31b/quant/tests/test_gguf.py:111
↓ 1 callersFunction_qat_train
(ori_model, captured_model, quantizer, dataset)
backends/qualcomm/export_utils.py:934
↓ 1 callersMethod_quant_params_match
(self, node1: torch.fx.Node, node2: torch.fx.Node)
backends/cadence/aot/fuse_ops.py:672
↓ 1 callersMethod_quant_recipe_suggestion
Compare fp32 vs QDQ intermediate outputs and write SQNR reports. fp32_gm: Fp32 exported GraphModule (before prepare_pt2e). q
examples/qualcomm/oss_scripts/llama/wrappers/llm_wrappers.py:432
↓ 1 callersMethod_quantize
(self, mod, example_inputs)
exir/tests/test_quantize_io_pass.py:37
↓ 1 callersFunction_quantize_experts_int4
Quantize expert weights to packed INT4 for the fused MoE kernel. Two quantization methods: --hqq: HQQ (Half-Quadratic Quantization) iterati
examples/models/qwen3_5_moe/export.py:302
↓ 1 callersFunction_quantize_hqq_asymmetric
Full HQQ (asymmetric, optimizes scale + zero). Requires CUDA.
examples/models/gemma4_31b/quant/quantize.py:65
↓ 1 callersFunction_quantize_hqq_symmetric
Scale-only HQQ (symmetric 4-bit, optimizes scale only). Runs on CPU or CUDA.
examples/models/gemma4_31b/quant/quantize.py:95
↓ 1 callersFunction_quantize_int4_affine
Quantize float weights to packed INT4 using MLX affine format. Args: w: [..., K] float weight tensor (last dim is quantized). gro
backends/apple/metal/ops/gather_qmv.py:45
↓ 1 callersFunction_quantize_min_max
Standard min/max 4-bit quantization. Returns (int_data, scale, zero_point).
examples/models/gemma4_31b/quant/quantize.py:27
↓ 1 callersFunction_quantize_per_channel
( in_tensor: torch.Tensor, scales: List[float], zeropoints: List[int], dtype: torch.dtype,
backends/samsung/utils/utils.py:61
↓ 1 callersFunction_quantize_per_tensor
( in_tensor: torch.Tensor, scales: List[float], zeropoints: List[int], dtype: torch.dtype,
backends/samsung/utils/utils.py:41
↓ 1 callersFunction_quantize_position_embedding_table
Quantize position embedding table from fp32 to int8 per-channel. The table is (2, 10240, 768) = 60 MB at fp32 -> 15 MB at int8 + scales. Qual
examples/models/gemma4/export_gemma4.py:362
↓ 1 callersFunction_quantize_w4_affine
(w_float, N, effective_gs)
examples/models/qwen3_5_moe/export.py:523
↓ 1 callersFunction_quantize_w4_hqq
(w_float, N, K, effective_gs)
examples/models/qwen3_5_moe/export.py:509
↓ 1 callersFunction_quantizer
()
backends/arm/test/passes/test_rewrite_conv_pass.py:72
↓ 1 callersFunction_raise_if_check_prim_ops_fail
(options)
codegen/tools/gen_all_oplist.py:50
↓ 1 callersMethod_rational_approximation
Creates a (2,1) Padé approximation for atan(x) on [-1, 1].
backends/arm/_passes/decompose_atan_pass.py:53
↓ 1 callersFunction_read_qnn_config
Parse qnn_config.sh to extract QNN_VERSION and QNN_ZIP_URL.
backends/qualcomm/scripts/download_qnn_sdk.py:51
↓ 1 callersMethod_recombine_heads
(self, x: Tensor)
examples/models/efficient_sam/efficient_sam_core/two_way_transformer.py:243
↓ 1 callersMethod_record_original_output_dtype
(self, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/i64_to_i32.py:68
↓ 1 callersMethod_record_output_quant_attrs_map
(self, gm: torch.fx.GraphModule)
backends/qualcomm/_passes/tag_quant_io.py:31
↓ 1 callersMethod_recurrent_gated_delta_rule
( self, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, g
examples/models/llama/attention.py:765
↓ 1 callersFunction_recurse
(parent: nn.Module)
backends/mlx/llm/source_transformation.py:40
↓ 1 callersMethod_reduce_bias_scales
_summary_ If transpose_conv has groups, need special handle for bias_node's per channel quant. Check _derived_bias_quant_spec under ba
backends/qualcomm/builders/op_conv.py:104
↓ 1 callersMethod_reduce_by_sum
(self, op, input_node, dims, meta)
backends/arm/_passes/decompose_meandim_pass.py:207
↓ 1 callersMethod_reduce_by_sum_symbolic
(self, op, input_node, dims, meta)
backends/arm/_passes/decompose_meandim_pass.py:173
↓ 1 callersFunction_reference_deltanet_decode
Reference PyTorch implementation matching model.py's original T=1 path. Does Q/K/V split, L2 norm, head repeat, gating, then recurrent update.
backends/cuda/tests/test_fused_deltanet_decode.py:45
↓ 1 callersFunction_reference_tq4_sdpa
Reference: compress K/V, decompress, run standard SDPA in float32.
backends/cuda/tests/test_tq4_sdpa.py:89
↓ 1 callersMethod_register_attention_mask_for_4_53
(self, exportable_module: torch.nn.Module)
examples/qualcomm/oss_scripts/llm_utils/decoder_model_wrapper.py:141
↓ 1 callersFunction_register_no_decomp_op
(op_aten)
exir/program/_program.py:1007
↓ 1 callersMethod_register_tensor
( self, gm: torch.fx.GraphModule, node: torch.fx.Node, tensor_constant: torch.
backends/qualcomm/_passes/convert_linear_to_conv2d.py:30
↓ 1 callersFunction_register_vadd_handler
Register an MLX op handler that emits MetalKernelNode for vadd.
backends/mlx/test/test_ops.py:5665
↓ 1 callersFunction_regroup_intx
Regroup an ``IntxUnpackedToInt8Tensor`` to a finer group_size.
examples/models/gemma4_31b/quant/pack_mlx.py:89
↓ 1 callersMethod_regularize_submodule
To make a submodule fit into the normal flow of a graph_module, we need to do some regularizations. - Buffers created before passes a
backends/arm/tosa/backend.py:262
↓ 1 callersMethod_rejected_pattern_label
(self, rejected: RejectedPatternReport)
backends/cortex_m/quantizer_reporter.py:273
↓ 1 callersMethod_remap_input_pos
Remap positions: sink tokens stay, window tokens wrap in ring buffer.
examples/models/llama/source_transformation/attention_sink.py:55
↓ 1 callersMethod_remove
(self, graph_module: torch.fx.GraphModule)
backends/transforms/remove_clone_ops.py:37
↓ 1 callersMethod_remove
(self, graph_module: torch.fx.GraphModule)
backends/vulkan/_passes/remove_redundant_ops.py:69
↓ 1 callersMethod_remove
(self, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/remove_redundancy.py:57
↓ 1 callersMethod_remove_annotations
(self, model: GraphModule)
backends/arm/quantizer/arm_quantizer.py:1096
↓ 1 callersFunction_remove_denorm_and_late_bias
(graph_module: GraphModule)
backends/nxp/aten_passes/simulated_linear_bn_fusion_passes/remove_simulated_linear_bn_fusion_qat_pass.py:154
↓ 1 callersFunction_remove_dtype_getattr_nodes
(model: GraphModule)
exir/passes/quant_fusion_pass.py:97
↓ 1 callersFunction_remove_late_bias_pattern
(graph_module: GraphModule, bias_node: Node)
backends/nxp/aten_passes/simulated_linear_bn_fusion_passes/remove_simulated_linear_bn_fusion_qat_pass.py:111
↓ 1 callersFunction_remove_non_user_outputs
(exported_program: ExportedProgram)
exir/emit/_emit_program.py:63
↓ 1 callersMethod_remove_seq_mse
( self, graph_module: torch.fx.GraphModule )
backends/qualcomm/_passes/seq_mse.py:202
↓ 1 callersMethod_remove_useless
( self, graph_module: GraphModule, )
backends/samsung/_passes/remove_useless_ops.py:62
↓ 1 callersMethod_rename_partition_kernel_selection_file
(delegation_tag)
backends/nxp/backend/neutron_converter_manager.py:42
↓ 1 callersMethod_replace
(self, gm: torch.fx.GraphModule)
backends/qualcomm/_passes/decompose_wrap_with_autocast.py:52
↓ 1 callersFunction_replace_aten_ops_with_transformed_ops
( name: str, program: ExportedProgram, partitioner, )
exir/program/_program.py:930
↓ 1 callersFunction_replace_attention
( module: torch.nn.Module, rope_with_attention_sink: RopeWithAttentionSink, sink_size: int, wi
examples/models/llama/source_transformation/attention_sink.py:311
↓ 1 callersFunction_replace_attention
( module: torch.nn.Module, )
examples/qualcomm/oss_scripts/cvt.py:83
↓ 1 callersFunction_replace_attention_forward
Replace a Gemma4Attention's forward with one that uses MLX custom ops.
examples/models/gemma4_31b/mlx_source_transformations.py:29
↓ 1 callersMethod_replace_colons
Replace '::' with '_'
backends/nxp/nxp_backend.py:58
↓ 1 callersFunction_replace_dense_with_w4dequant
Replace quantized dense linears with W4DequantLinear. Dequantizes Int4TilePackedTo4dTensor weights to BF16, re-quantizes to simple [N, K//2]
examples/models/qwen3_5_moe/export.py:587
↓ 1 callersFunction_replace_embedding_with_quantized_group_embedding_for_pre_quantization
( module: torch.nn.Module, checkpoint: Any, dtype: torch.dtype, bit_width: int, group_size
examples/models/llama/source_transformation/pre_quantization.py:140
↓ 1 callersFunction_replace_infinity_in_json_file
Replace -inf and inf with "inf" and "-inf" in the JSON file. program.fbs is used to convert from flatbuffer to JSON. +-inf float values are not
exir/_serialize/_flatbuffer.py:453
↓ 1 callersFunction_replace_kv_cache_with_custom_kv_cache
(module)
examples/models/llama/source_transformation/custom_kv_cache.py:373
↓ 1 callersFunction_replace_kv_cache_with_quantized_kv_cache
(module)
examples/models/llama/source_transformation/custom_kv_cache.py:290
↓ 1 callersFunction_replace_kv_cache_with_quantized_kv_cache
Recursively replace Gemma4KVCache with Gemma4QuantizedKVCache.
examples/models/gemma4/text_decoder/gemma4_attention.py:612
← previousnext →6,501–6,600 of 28,493, ranked by callers