MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 4 callersFunction_make_conv
Create a Conv2d layer without bias (used before batch-norm).
examples/models/mlperf_tiny/resnet8.py:22
↓ 4 callersFunction_make_gru_fp_pipeline
(module: GRU)
backends/arm/test/modules/test_gru.py:91
↓ 4 callersFunction_make_gru_int_pipeline
(module: GRU)
backends/arm/test/modules/test_gru.py:106
↓ 4 callersFunction_make_image_grid_thw
(device: torch.device)
backends/arm/test/models/Qwen3_VL/test_qwen3_vl_layers.py:62
↓ 4 callersFunction_make_q4_k_block
Build one Q4_K block (144 bytes) from components.
examples/models/gemma4_31b/quant/tests/test_gguf.py:40
↓ 4 callersFunction_make_tensor_info
( evalue_idx: int, tensor: Tensor, op_map: Dict[int, List[OperatorUsage]], )
devtools/pte_tool/diff_pte.py:307
↓ 4 callersFunction_make_text_position_ids
( batch_size: int, seq_length: int, device: torch.device )
backends/arm/test/models/Qwen3_VL/test_qwen3_vl_layers.py:46
↓ 4 callersFunction_mark_node_as_quantized
Fill metadata fields used for quantization, partitioning, and lowering.
backends/arm/quantizer/arm_quantizer_utils.py:106
↓ 4 callersMethod_mark_unsupported
(self, nodes: Union[List[Node], Node], reason: str)
backends/mlx/builder/program_builder.py:383
↓ 4 callersMethod_merge_chain
Merges the chain generated from subgraphs (like those originating from control flow) back into the main program chain.
exir/emit/_emitter.py:679
↓ 4 callersFunction_op_schema
Return the underlying ``FunctionSchema`` for an op overload. Delegates to ``unwrap_op_overload`` to peel any edge-dialect or backend wrapper
exir/passes/reinplace.py:45
↓ 4 callersFunction_pad_to_logical_order
Inverse of _to_physical_order: map physical-order padding back to logical.
backends/cortex_m/ops/operators.py:578
↓ 4 callersFunction_phi3_config
()
backends/arm/test/models/phi3/test_phi3_layers.py:41
↓ 4 callersFunction_position_ids
(batch: int = 2, seq: int = 4)
backends/arm/test/models/phi3/test_phi3_layers.py:54
↓ 4 callersFunction_prepend_env_path
(existing: str | None, value: str)
backends/arm/test/runner_utils.py:604
↓ 4 callersFunction_print_df
(df: pd.DataFrame, header: str)
devtools/intermediate_output_tap/tests/test_xnnpack_e2e.py:181
↓ 4 callersFunction_program_json_to_flatbuffer
Converts Program-compatible JSON into binary flatbuffer data. Args: program_json: The JSON to convert. Must be compatible with the root
exir/_serialize/_flatbuffer.py:387
↓ 4 callersFunction_program_to_flatbuffer
Converts a Program dataclass into binary flatbuffer data. Unlike _program_json_to_flatbuffer(), this does not use JSON or invoke flatc to bui
exir/_serialize/_flatbuffer_program.py:210
↓ 4 callersFunction_qat_prepare_convert
QAT prepare -> calibrate -> convert_pt2e, returns GraphModule with get_attr nodes.
backends/transforms/test/test_quantize_fused_convbn_bias_pass.py:102
↓ 4 callersMethod_quantize
(self, m, quantizer, example_inputs, is_qat: bool = False)
backends/xnnpack/test/quantizer/test_pt2e_quantization.py:57
↓ 4 callersMethod_quantize_with_submodules
Quantizes a GraphModule in a way such that conditional submodules are handled properly. Note: torchao's prepare_pt2e and convert_pt2e
backends/arm/quantizer/arm_quantizer.py:782
↓ 4 callersFunction_raw_tensor
Wrap a numpy mmap view as a uint8 torch tensor (zero-copy).
examples/models/gemma4_31b/quant/gguf.py:29
↓ 4 callersFunction_require_cuda
(testcase: unittest.TestCase)
examples/models/gemma4_31b/tests/test_cuda_pipeline.py:47
↓ 4 callersMethod_rescale_submodule_inputs
Insert rescales at the inputs of `submodule` to match the qparams outside the submodule. Matching the correct qparams gets a bit tricky:
backends/arm/_passes/insert_rescales_pass.py:486
↓ 4 callersFunction_resolve_shared_qspec
Resolve a SharedQuantizationSpec into a concrete QuantizationSpecBase. Resolution strategy: 1) If `spec` is not a SharedQuantizationSp
backends/qualcomm/quantizer/validators.py:110
↓ 4 callersMethod_rewrite_weight
Create a convolution-local rewritten weight placeholder.
backends/arm/_passes/rewrite_conv_pass.py:176
↓ 4 callersMethod_run
(self, M, N, K, group_size)
backends/cuda/tests/test_int4_matmul.py:258
↓ 4 callersFunction_run_fp_test
(module)
backends/arm/test/modules/test_lstm.py:95
↓ 4 callersMethod_run_generation
Run prefill + decode for num_tokens total, return all outputs.
examples/models/llama/source_transformation/test_attention_sink.py:358
↓ 4 callersFunction_run_int_test
(module)
backends/arm/test/modules/test_lstm.py:113
↓ 4 callersMethod_run_reference
Run reference and return (output, new_state).
backends/cuda/tests/test_fused_deltanet_decode.py:131
↓ 4 callersFunction_section_header
Generate a section-header banner for generated output.
backends/mlx/serialization/generate.py:128
↓ 4 callersMethod_set_preserve_io_quantization
Preserve Q/DQ nodes at IO boundaries when lowering.
backends/arm/common/arm_compile_spec.py:247
↓ 4 callersFunction_slot_type_display
Return display string for a slot type. *style* controls the format: - ``"full"``: "Tensor", "Int", etc. (for summary tables) - ``"s
backends/mlx/pte_inspector.py:523
↓ 4 callersFunction_sum_op_counts
A utility function to count the total number of nodes in an op count dict.
backends/test/suite/reporting.py:344
↓ 4 callersMethod_tensor_rules_satisfied
Check if all currently applicable tensor rules are satisfied.
backends/nxp/backend/ir/neutron_ir_post_processing/pattern_matcher.py:547
↓ 4 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_conv2d.py:66
↓ 4 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_max_pool2d.py:42
↓ 4 callersMethod_test
(self, args, assume_causal_mask=False)
extension/llm/export/test_export_passes.py:178
↓ 4 callersMethod_test_abs
(self, inputs, legacy_mode: bool = False)
backends/xnnpack/test/ops/test_abs.py:25
↓ 4 callersMethod_test_clamp
(self, module, inputs)
backends/xnnpack/test/ops/test_clamp.py:27
↓ 4 callersMethod_test_clone_partitioned
Test that dim-order preserving clones are partitioned (removed)
backends/xnnpack/test/ops/test_clone.py:36
↓ 4 callersMethod_test_cos
(self, inputs, legacy_mode: bool = False, atol: float = 1e-4)
backends/xnnpack/test/ops/test_cos.py:25
↓ 4 callersFunction_test_create_delete
Tests the utility functions create_constant_placeholder and delete_constant_placeholder
backends/transforms/test/test_create_delete_constant_placeholder.py:24
↓ 4 callersMethod_test_pass_e2e
( self, model: torch.nn.Module, example_inputs: Sequence[torch.Tensor], strict
exir/tests/test_remove_unused_parameters_pass.py:166
↓ 4 callersMethod_test_roundtrip
Test: quantize -> save -> load_prequantized_model -> forward produces same output as quantize -> forward.
examples/models/qwen3_5_moe/test_quantize_roundtrip.py:127
↓ 4 callersMethod_test_simple_update_fetch
( self, is_dynamic_shape=False, use_custom_update_cache_op=False )
examples/models/llama/source_transformation/test_quantized_kv_cache.py:45
↓ 4 callersMethod_test_sin
(self, inputs, legacy_mode: bool = False)
backends/xnnpack/test/ops/test_sin.py:25
↓ 4 callersMethod_test_slice_copy
(self, module, inputs, copy_count=1, edge_copy_count=1)
backends/xnnpack/test/ops/test_slice_copy.py:17
↓ 4 callersMethod_test_to_edge_with_preserved_ops
( self, program, preserved_ops, expected_preserved_ops )
exir/program/test/test_program.py:811
↓ 4 callersMethod_to_physical_order
Permute a 4-element logical-dim-order list to physical memory order.
backends/cortex_m/passes/quantized_op_fusion_pass.py:43
↓ 4 callersMethod_to_slot_variant
Convert a Slot to a SlotVariant using the provided mappings.
backends/mlx/builder/program_builder.py:753
↓ 4 callersMethod_transform
(self, graph_module: GraphModule)
backends/arm/_passes/arm_pass_manager.py:380
↓ 4 callersMethod_transpose
(self, x, meta)
extension/llm/export/export_passes.py:189
↓ 4 callersMethod_transpose_dims
Helper function to transpose dims of a node.
backends/cadence/aot/replace_ops.py:1276
↓ 4 callersMethod_update_module_mapping
( node: Node, module_mapping: Dict[Tuple[str, str], List[Node]], metadata: Dict[str, A
devtools/debug_format/et_schema.py:96
↓ 4 callersFunction_write_schema
(d: str, schema_name: str)
devtools/etdump/serialize.py:25
↓ 4 callersMethodadd_custom_quant_annotations
( self, custom_quant_annotations: Sequence[Callable] )
backends/samsung/quantizer/quantizer.py:55
↓ 4 callersMethodadd_extra_export_modules
Add extra export modules to the ETRecord after it has been created. This method allows users to add more export modules they want to
devtools/etrecord/_etrecord.py:318
↓ 4 callersMethodadd_log
( self, importance: MessageImportance, message: str, error_code: Code | None =
backends/nxp/backend/ir/logger.py:186
↓ 4 callersMethodadd_suite
(self, op_reg_name: str, f: NativeFunction, all_input_cases)
backends/vulkan/test/op_tests/utils/gen_benchmark_vk.py:336
↓ 4 callersFunctionaligned_size
(data_len: int, alignment: int = 16)
backends/vulkan/serialization/vulkan_graph_serialize.py:178
↓ 4 callersFunctionannotate_weighted_mod_pattern
Annotates all nodes in ``model``, which match the pattern specified by ``pattern_gm`` using ``quantization_config``. ``pattern_gm`` capt
backends/apple/coreml/quantizer/_coreml_quantizer_utils.py:421
↓ 4 callersMethodappend_new_tensor
Append the TFLite tensor 't_tensor' to the 'SubGraph.tensors' and register it.
backends/nxp/backend/ir/converter/builder/model_builder.py:859
↓ 4 callersMethodapply_chat_template
Converts a list of dictionaries with `"role"` and `"content"` keys to a list of token ids. This method is intended for use with chat models,
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:1607
↓ 4 callersMethodassertIOListEqual
( self, tl1: List[Union[bool, float, int, torch.Tensor]], tl2: List[Union[bool, float,
devtools/bundled_program/test/test_config.py:27
↓ 4 callersMethodassertIOsetDataEqual
( self, program_ioset_data: List[bp_schema.Value], config_ioset_data: List[ConfigValue
devtools/bundled_program/test/test_bundle_data.py:25
↓ 4 callersMethodassert_delegated
(self, model, input_shape, mocker, use_qat=False)
backends/nxp/tests/ir/converter/node_converter/test_leaky_relu_converter.py:130
↓ 4 callersMethodassert_etrecord_has_no_exported_program
Assert that ETRecord has no exported program data.
devtools/etrecord/tests/etrecord_test.py:72
↓ 4 callersMethodassert_etrecord_saveable
Assert ETRecord contains all essential information for saving
devtools/etrecord/tests/etrecord_test.py:102
↓ 4 callersMethodassert_representative_inputs_equal
Utility function to compare representative inputs. This function handles the comparison of representative inputs, which are lists of
devtools/etrecord/tests/etrecord_test.py:36
↓ 4 callersMethodbias
(self)
examples/models/llama/lora.py:40
↓ 4 callersFunctionbuild_args_parser
()
examples/models/llama/export_llama_lib.py:191
↓ 4 callersMethodbuild_empty_buffer
Create, register and return a new empty 'Buffer' object.
backends/nxp/backend/ir/converter/builder/model_builder.py:599
↓ 4 callersFunctionbuild_tensor
(tensors, dtype_map)
backends/qualcomm/utils/utils.py:869
↓ 4 callersMethodcache_key
(self)
examples/models/llama/static_attention.py:53
↓ 4 callersFunctioncalculate_aligned_num_bytes
(num: int, alignment: int)
exir/tensor.py:129
↓ 4 callersMethodcall_data_gen_fn
(self, arg: Argument, data: Any, terminate: bool = True)
backends/vulkan/test/op_tests/utils/gen_correctness_base.py:132
↓ 4 callersMethodcall_operator
(self, op, args, kwargs, meta, updated: bool | None = False)
backends/arm/_passes/rewrite_index_put_pass.py:123
↓ 4 callersFunctioncanonicalize_transposed_dim
Canonicalize transpose ops so it gets easier to pattern-match and fuse transpose ops.
backends/cadence/aot/replace_ops.py:1014
↓ 4 callersMethodcheck_backend_delegate
( self, program: Program, delegate: BackendDelegate, expected_id: str,
exir/backend/test/test_backends_lifted.py:109
↓ 4 callersFunctioncheck_count
( graph_module: GraphModule, op: torch.fx.node.Target, expected_count: int )
backends/cortex_m/test/test_helpers_passes_utils.py:82
↓ 4 callersMethodcheck_fully_delegated
(self, program: Program)
backends/xnnpack/test/recipes/test_xnnpack_recipes.py:46
↓ 4 callersMethodcheck_vk_delegation
(self, et_program: ExecutorchProgramManager)
backends/vulkan/test/test_vulkan_delegate.py:178
↓ 4 callersFunctioncompare_aot_runtime_dataframe
Build a side-by-side AOT-vs-runtime DataFrame from the flat outputs of the *tapped* ExportedProgram (eager) and the post-strip runtime progra
devtools/intermediate_output_tap/_convenience.py:143
↓ 4 callersFunctioncompare_results
Compares the results of two runs and returns a dictionary of metric names -> lists of metric values. This list matches the reference output &
devtools/inspector/_inspector_utils.py:512
↓ 4 callersFunctioncontiguous_strides
Compute row-major contiguous strides for the provided shape.
backends/arm/common/as_strided_utils.py:64
↓ 4 callersMethodconvert
Convert the torch.Node in 'node' to TFLite and append changes to ModelBuilder. Classes which implement conversion for individual operator
backends/nxp/backend/ir/converter/node_converter.py:68
↓ 4 callersMethodconvert_program
Convert ExportedProgram in Edge dialect to IR (TFLite flatbuffers) as bytes. :param edge_program: Converter ExportedProgram.
backends/nxp/backend/edge_program_converter.py:75
↓ 4 callersMethodcreate_binary_node
( self, node: torch.fx.Node, mps_graph: MPSGraph, binary_op: MPSNodeUnion )
backends/apple/mps/operators/node_visitor.py:345
↓ 4 callersFunctioncreate_channels_last_to_channels_first_permutation
Return a numpy array with data that describes the permutation, which would change a tensor from the channels last (NeutronIR) format to the channe
backends/nxp/backend/ir/converter/conversion/translator.py:445
↓ 4 callersMethodcreate_node_value
(self, node: Node)
backends/vulkan/serialization/vulkan_graph_builder.py:162
↓ 4 callersMethodcreate_pad_operator_before
Create a TFLite 'Pad' operator before the 'before_op' operator. The input of 'before_op' on index 'on_input_index' is where the 'Pad' ope
backends/nxp/backend/ir/converter/builder/model_builder.py:150
↓ 4 callersFunctioncreate_partitioner
( compile_spec: ArmCompileSpec, additional_checks: list[OperatorSupportBase] | None = None, )
backends/arm/util/_factory.py:37
↓ 4 callersMethodcreate_partitioner
(self, exported_program, inputNodes)
exir/backend/test/test_group_partitioner.py:119
↓ 4 callersFunctioncreate_quantizer
(compile_spec: ArmCompileSpec)
backends/arm/util/_factory.py:51
↓ 4 callersMethodcreate_recipe
( self, recipe_type: RecipeType, **kwargs: Any )
export/tests/test_recipe_registry.py:40
↓ 4 callersMethodcreate_value_list_value
(self, arg: tuple | list)
backends/vulkan/serialization/vulkan_graph_builder.py:330
↓ 4 callersMethoddecode_token
Decodes a single token ID into a string. Args: t (int): The token ID to be decoded. Returns: str: T
examples/models/llama/tokenizer/tiktoken.py:188
↓ 4 callersMethoddefine_node
( self, node: torch.fx.Node, nodes_to_wrappers: Dict[torch.fx.Node, PyQnnManager.Tenso
backends/qualcomm/builders/op_to.py:79
← previousnext →1,401–1,500 of 28,493, ranked by callers