MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 2 callersMethod_split_prompt
Split user prompt by special tokens. Args: prompt (str): Input prompt containing special tokens Returns:
examples/qualcomm/oss_scripts/llama/tokenizer.py:316
↓ 2 callersFunction_split_tokens_on_unicode
Combine tokens into words by splitting at any position where the tokens are decoded as valid unicode points.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_whisper.py:1409
↓ 2 callersFunction_stacktrace_to_framelist
Creates a frame list from a stacktrace string.
exir/print_program.py:357
↓ 2 callersMethod_strip_prompt
( self, token_ids: List[int], prompt_token_id: int, decoder_start_token_id: int )
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_whisper.py:959
↓ 2 callersFunction_strip_sampler_from_forward
Bind ``model.forward`` to a minimal ``(tokens, input_pos) -> logits`` variant for non-CUDA export. The default ``Qwen35MoE.forward`` carries
examples/models/qwen3_5_moe/export.py:711
↓ 2 callersMethod_switch_to_target_mode
Private method to put the tokenizer in target mode (when it has different modes for input/outputs).
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:4228
↓ 2 callersFunction_symbol_values
(symbol: sympy.Symbol, shape_env: ShapeEnv)
backends/arm/_passes/symbolic_value_range.py:27
↓ 2 callersFunction_sympy_int_to_int
(val: sympy.Expr, adjust: str)
exir/serde/export_serialize.py:344
↓ 2 callersFunction_tag_specs_with_device
Apply device annotation to a TensorSpec or a collection of TensorSpecs. Args: specs: A TensorSpec, a tuple/list of TensorSpecs, or None.
exir/passes/propagate_device_pass.py:97
↓ 2 callersFunction_tensor
(values)
backends/arm/test/ops/test_log10.py:27
↓ 2 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_gelu.py:43
↓ 2 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_div.py:28
↓ 2 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_select.py:30
↓ 2 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_mean_dim.py:29
↓ 2 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_cat.py:29
↓ 2 callersMethod_test
(self, module: torch.nn.Module, inputs)
backends/samsung/test/ops/test_relu.py:43
↓ 2 callersMethod_test
(self, dtype: torch.dtype = torch.float)
backends/xnnpack/test/models/llama2_et_example.py:27
↓ 2 callersMethod_test_add
(self, inputs)
backends/xnnpack/test/ops/test_add.py:48
↓ 2 callersMethod_test_argpool2d
(self, inputs)
backends/xnnpack/test/ops/test_avgpool2d.py:34
↓ 2 callersMethod_test_basic_manual_identifier
Using the iteration of identifiers: 1) Create a Delegate Map Builder 2) Add an entry with a list of Nodes using the first ide
exir/backend/test/test_delegate_map_builder.py:218
↓ 2 callersMethod_test_bmm
(self, inputs)
backends/xnnpack/test/ops/test_bmm.py:24
↓ 2 callersMethod_test_ceil
(self, inputs)
backends/xnnpack/test/ops/test_ceil.py:25
↓ 2 callersMethod_test_const_tensor_argument_translate_ctype
( self, unboxing: Unboxing, types: ModuleType )
codegen/test/test_executorch_unboxing.py:86
↓ 2 callersMethod_test_div
(self, inputs)
backends/xnnpack/test/ops/test_div.py:33
↓ 2 callersMethod_test_edge_dialect_verifier
( self, callable, validate_ir=True, exception_list=None )
exir/program/test/test_program.py:622
↓ 2 callersMethod_test_elu
(self, inputs)
backends/xnnpack/test/ops/test_elu.py:29
↓ 2 callersMethod_test_exported_vit
(self, tester, check_nots=None)
backends/xnnpack/test/models/torchvision_vit.py:63
↓ 2 callersMethod_test_floor
(self, inputs)
backends/xnnpack/test/ops/test_floor.py:25
↓ 2 callersMethod_test_groupwise_dq_linear
Helper function to test groupwise dynamic quantized linear op with different configurations.
backends/xnnpack/test/ops/test_linear.py:382
↓ 2 callersMethod_test_hardswish
(self, inputs)
backends/xnnpack/test/ops/test_hardswish.py:29
↓ 2 callersMethod_test_leaky_relu
(self, module, inputs)
backends/xnnpack/test/ops/test_leaky_relu.py:31
↓ 2 callersMethod_test_linear
( self, partitioner: XnnpackPartitioner, quantization_stage: Union[BaseStages.Quantize
backends/xnnpack/test/passes/test_propagate_custom_meta_pass.py:92
↓ 2 callersMethod_test_max_dim
(self, inputs)
backends/xnnpack/test/ops/test_max_dim.py:29
↓ 2 callersMethod_test_max_dim_no_indicies
(self, inputs)
backends/xnnpack/test/ops/test_max_dim.py:39
↓ 2 callersMethod_test_maximum
(self, inputs)
backends/xnnpack/test/ops/test_maximum.py:24
↓ 2 callersMethod_test_maxpool2d
Note that the export process generates aten.max_pool2d_with_indices. The remove_getitem_op pass transforms it into aten.max_pool2d (i
backends/xnnpack/test/ops/test_maxpool2d.py:58
↓ 2 callersMethod_test_minimum
(self, inputs)
backends/xnnpack/test/ops/test_minimum.py:24
↓ 2 callersFunction_test_model_with_f32_data
(model)
backends/arm/test/passes/test_insert_rescale_i32_pass.py:68
↓ 2 callersMethod_test_mul
(self, inputs)
backends/xnnpack/test/ops/test_multiply.py:37
↓ 2 callersMethod_test_mutable_tensor_argument_translate_ctype
( self, unboxing: Unboxing, types: ModuleType )
codegen/test/test_executorch_unboxing.py:107
↓ 2 callersMethod_test_negate
(self, inputs)
backends/xnnpack/test/ops/test_negate.py:25
↓ 2 callersMethod_test_optional_int_argument_translate_ctype
( self, unboxing: Unboxing, types: ModuleType )
codegen/test/test_executorch_unboxing.py:149
↓ 2 callersMethod_test_pass
( self, ep: ExportedProgram, unused_param_names_and_args: dict[str, str], exam
exir/tests/test_remove_unused_parameters_pass.py:134
↓ 2 callersMethod_test_permute
(self, inputs)
backends/xnnpack/test/ops/test_permute.py:37
↓ 2 callersMethod_test_pow2
(self, inputs)
backends/xnnpack/test/ops/test_pow.py:26
↓ 2 callersMethod_test_prelu
(self, module, inputs)
backends/xnnpack/test/ops/test_prelu.py:26
↓ 2 callersMethod_test_qd8_linear_per_tensor_unsupported
(self, dtype: torch.dtype = torch.float)
backends/xnnpack/test/ops/test_linear.py:585
↓ 2 callersMethod_test_qd8_per_channel_4w_linear
(self, dtype: torch.dtype = torch.float)
backends/xnnpack/test/ops/test_linear.py:643
↓ 2 callersMethod_test_qd8_per_channel_linear
(self, dtype: torch.dtype = torch.float)
backends/xnnpack/test/ops/test_linear.py:566
↓ 2 callersMethod_test_qd8_per_token_weight_per_channel_group_int4
( self, dtype: torch.dtype = torch.float )
backends/xnnpack/test/ops/test_linear.py:681
↓ 2 callersMethod_test_rsqrt
(self, inputs)
backends/xnnpack/test/ops/test_rsqrt.py:26
↓ 2 callersMethod_test_sigmoid
(self, inputs)
backends/xnnpack/test/ops/test_sigmoid.py:26
↓ 2 callersMethod_test_softmax
(self, inputs)
backends/xnnpack/test/ops/test_softmax.py:25
↓ 2 callersMethod_test_sqrt
(self, inputs)
backends/xnnpack/test/ops/test_sqrt.py:26
↓ 2 callersMethod_test_square
Note that torch.square maps to aten.pow.Tensor_Scalar. The pow visitor has logic to emit the appropriate XNNPACK square op when the e
backends/xnnpack/test/ops/test_square.py:25
↓ 2 callersMethod_test_static_constant_pad_functional
(self, inputs)
backends/xnnpack/test/ops/test_static_constant_pad.py:116
↓ 2 callersMethod_test_sub
(self, inputs)
backends/xnnpack/test/ops/test_sub.py:33
↓ 2 callersMethod_test_tensor_list_argument_translate_ctype
( self, unboxing: Unboxing, types: ModuleType )
codegen/test/test_executorch_unboxing.py:128
↓ 2 callersMethod_to_bytes
(self, value: int | float, dtype: torch.dtype)
backends/arm/operators/op_clamp.py:62
↓ 2 callersFunction_to_c_bool
(s: Any)
kernels/test/gen_supported_features.py:16
↓ 2 callersFunction_to_channels_last
(x)
backends/arm/scripts/aot_arm_compiler.py:881
↓ 2 callersFunction_to_core_aten
( model: Union[torch.fx.GraphModule, torch.nn.Module], example_inputs: Tuple[Value, ...], *, e
extension/export_util/utils.py:26
↓ 2 callersFunction_to_device_skip_meta
Move submodules to device, skipping any that have meta-device buffers. Uses module.to() on leaf submodules (not p.data = p.data.to()) to corr
examples/models/qwen3_5_moe/export.py:385
↓ 2 callersMethod_to_hashable
Convert arbitrarily nested structures into hashable tuples.
backends/arm/_passes/fuse_duplicate_users_pass.py:125
↓ 2 callersFunction_to_pascal_case
Convert snake_case to PascalCase.
backends/mlx/serialization/generate.py:947
↓ 2 callersMethod_to_pos_dim
(d: int, rank: int)
backends/nxp/backend/ir/converter/node_converters/ops_converters/mean_dim_converter.py:83
↓ 2 callersFunction_to_sympy_expr
Lift a shape value to a SymPy expression without forcing hints.
backends/arm/tosa/dialect/ops/shape_ops.py:52
↓ 2 callersMethod_tosa_context
(self, graph_module: GraphModule)
backends/arm/_passes/arm_pass_manager.py:376
↓ 2 callersFunction_tosa_spec_supports_cf
(tosa_spec: TosaSpecification)
backends/arm/operator_support/control_flow_support.py:91
↓ 2 callersFunction_tq4_sdpa_fwd_kernel_body
( Q_ptr, KP_ptr, KN_ptr, VP_ptr, VN_ptr, LUT_hi_ptr, LUT_lo_ptr, Mask_ptr,
backends/cuda/triton/kernels/tq4_sdpa.py:70
↓ 2 callersFunction_transform_eager_model
Apply splitting, quantization, and graph breaks to a model.
examples/apple/coreml/llama/export_static_llm_coreml.py:312
↓ 2 callersMethod_transform_for_pre_quantization
(self, checkpoint, model_args)
examples/models/llama/model.py:313
↓ 2 callersFunction_transform_with_pass_manager
Transforms the program using the provided pass_manager. Args: self: The ExportedProgram instance to transform pass_manager:
exir/program/_program.py:250
↓ 2 callersMethod_try_unwrap_repeat_kv
Try to unwrap a HuggingFace repeat_kv pattern. HuggingFace's repeat_kv expands KV heads for grouped query attention: hidden_state
backends/mlx/patterns.py:425
↓ 2 callersMethod_update_cache
Copies new cache data from start to start + length to cache
examples/apple/coreml/llama/llama_transformer.py:546
↓ 2 callersFunction_update_placeholder_meta
( exported_program: ExportedProgram, target: str, kind: InputKind, )
exir/passes/convert_constant_dim_order_pass.py:16
↓ 2 callersMethod_update_states
(self, attn_updates, update_pos, update_len)
examples/models/llama/static_attention.py:655
↓ 2 callersMethod_update_total_vocab_size
Update the size of the full vocabulary with the added tokens. Counts the `keys` and not the `values` because otherwise if there is a
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils.py:394
↓ 2 callersFunction_use_partial_quantizer
Set the pipeline's quantizer to only include Linear layers.
backends/arm/test/models/test_llama.py:168
↓ 2 callersFunction_use_partial_quantizer
Set the pipeline's quantizer to only include Conv2d and ReLU6.
backends/arm/test/models/test_mobilenet_v2_arm.py:44
↓ 2 callersFunction_validate_args
(llm_config)
examples/models/llama/export_llama_lib.py:898
↓ 2 callersFunction_validate_cross_attn_cache_params
(value: torch.Tensor, cache: torch.Tensor)
extension/llm/custom_ops/custom_ops.py:423
↓ 2 callersFunction_validate_or_set_quant_params
Set quantization parameters 'quant' in the tensor. If tensor already has any quantization parameters, checks if equals to quant :param te
backends/nxp/backend/ir/converter/quantization_utils.py:17
↓ 2 callersFunction_validate_params
( query, key, value, key_cache, value_cache, start_pos, seq_len, attn_mask,
extension/llm/custom_ops/custom_ops.py:55
↓ 2 callersFunction_validate_qkv_shapes
Validate dimensions and return shape info. Args: query: Query tensor [B, H_q, L_q, D] key: Key tensor [B, H_kv, L_kv, D]
backends/cuda/triton/kernels/sdpa.py:100
↓ 2 callersFunction_validate_resize_parameters
(input_hw, output_hw, scale, offset, border, tosa_spec)
backends/arm/tosa/dialect/ops/resize.py:57
↓ 2 callersFunction_validate_sdpa_inputs
Validate SDPA input tensors and unsupported feature flags.
backends/cuda/triton/kernels/sdpa.py:681
↓ 2 callersFunction_validate_update_cache_params
( value, cache, start_pos, indices=None, )
extension/llm/custom_ops/custom_ops.py:189
↓ 2 callersMethod_value_number
Assign an integer value number to a node (global value numbering). Two nodes with the same value number are structurally equivalent
exir/passes/cse_pass.py:140
↓ 2 callersMethod_verify_successful_delegation
(module, converter_spy, input_shape)
backends/nxp/tests/ir/converter/node_converter/test_max_pool_2d_converter.py:76
↓ 2 callersMethod_violates_u55_worst_case_constraint
Checks the worst case scenario for a permute operation, any permute which does not violate this constraint is guaranteed to be supported.
backends/arm/_passes/decompose_permute_for_u55_pass.py:45
↓ 2 callersMethod_warn_if_redundant_preserve_io_quantization
Warn when preserve_io_quantization has no effect for INT-only specs.
backends/arm/common/arm_compile_spec.py:253
↓ 2 callersFunction_write_if_different
(path: Path, content: str)
codegen/tools/gen_max_kernel_num.py:110
↓ 2 callersFunction_write_pte
(exec_program, filename: str)
extension/apple/ExecuTorch/__tests__/resources/generate_coreml_test_models.py:44
↓ 2 callersFunction_yarn_find_correction_dim
( num_rotations, dim, base, max_position_embeddings )
examples/mediatek/aot_utils/llm_utils/utils.py:647
↓ 2 callersFunctionaccuracy_per_class
(preds, goldens, labels)
examples/qualcomm/scripts/mobilebert_fine_tune.py:55
↓ 2 callersMethodaddTest
(self, test)
backends/openvino/tests/test_runner.py:12
↓ 2 callersFunctionadd_candidate
(idx: int)
exir/serde/export_serialize.py:2554
↓ 2 callersFunctionadd_cursor_to_graph
Insert a cursor at the node location in the fx.Graph. e.g: # graph(): # %x : [#users=1] = placeholder[target=x] # %param : [#
exir/print_program.py:320
↓ 2 callersMethodadd_custom_quant_annotations
Add custom annotation functions to be applied during prepare_pt2e. Args: custom_quant_annotations (Sequence[Callable]):
backends/qualcomm/quantizer/quantizer.py:511
← previousnext →3,001–3,100 of 28,493, ranked by callers