MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 2 callersMethodis_mem_id_in_blocklist
(self, spec: TensorSpec, mem_id: int)
backends/cadence/aot/memory_constraints.py:123
↓ 2 callersFunctionis_node
returns true if node is a torch.fx.Node, otherwise false
backends/xnnpack/utils/utils.py:43
↓ 2 callersMethodis_non_constant_tensor_node
Fails the check for: * Nodes that are not associated with tensor values * Nodes associated with constant tensors *
backends/vulkan/_passes/tag_memory_meta_pass.py:181
↓ 2 callersFunctionis_op_node
(node: Node, target_op)
backends/nxp/backend/graph_utils.py:22
↓ 2 callersFunctionis_param_node
(exp_prog: ExportedProgram, node: torch.fx.Node)
exir/backend/test/backend_with_preprocess_all_demo.py:29
↓ 2 callersFunctionis_parameter
Check if a node is a lifted parameter (static data like weights and bias are are supplied as inputs to the graph. Args: exp_prog
backends/apple/mps/utils/mps_utils.py:70
↓ 2 callersMethodis_per_tensor
Determine if this quantization is per tensor
backends/nxp/backend/ir/tflite_generator/tflite_model.py:264
↓ 2 callersFunctionis_per_token
(node: torch.fx.Node)
backends/xnnpack/utils/quant_utils.py:145
↓ 2 callersFunctionis_persistent_buffer
(exp_prog: ExportedProgram, node: torch.fx.Node)
backends/arm/_passes/arm_pass_utils.py:96
↓ 2 callersFunctionis_quantized
Checks if the node is quantized. A node is considered quantized if any of the following is true: - Its output dtype is not floating point or
backends/arm/operator_support/tosa_supported_operators.py:172
↓ 2 callersMethodis_quantized
(self)
backends/arm/test/tester/arm_tester.py:514
↓ 2 callersFunctionis_reduce_node_supported_by_general_impl
(node: torch.fx.Node)
backends/vulkan/op_registry.py:681
↓ 2 callersFunctionis_reduce_node_supported_by_per_row_impl
Checks if a reduction node is supported by the Vulkan backend's reduce per row special case implementation.
backends/vulkan/op_registry.py:669
↓ 2 callersFunctionis_shape_dynamic
Check if the node shape is dynamic.
exir/backend/utils.py:437
↓ 2 callersFunctionis_shape_op_node
Check if a node is a shape operation node based on TosaSpecialDtype metadata.
backends/arm/tosa/dialect/shape.py:11
↓ 2 callersMethodis_static_shape
(self)
backends/apple/coreml/compiler/enumerated_shape_utils.py:64
↓ 2 callersMethodis_supported
Check if the given `node` is supported in the IR and on the given `target` platform. :param node: torch.Node to check. :param neutron
backends/nxp/backend/ir/converter/node_converter.py:119
↓ 2 callersMethodis_sym_bool_arg
(self, arg)
exir/serde/export_serialize.py:692
↓ 2 callersMethodis_sym_int_arg
(self, arg)
exir/serde/export_serialize.py:686
↓ 2 callersFunctionis_symint_node
Returns true if the given node produces a SymInt value
backends/vulkan/utils.py:206
↓ 2 callersFunctionis_tap_node
(n: fx.Node)
devtools/intermediate_output_tap/_tap_pass.py:53
↓ 2 callersFunctionis_tensor_arg
Check if a given argument is a Tensor argument.
exir/dialects/edge/spec/utils.py:18
↓ 2 callersFunctionis_tensor_arg_node
(node: Any)
backends/vulkan/utils.py:267
↓ 2 callersMethodis_tosa_ref_model_available
Checks if the TOSA reference model is available.
backends/arm/test/tester/test_pipeline.py:399
↓ 2 callersMethodis_unallocated_output
(self, graph: torch.fx.Graph, node: torch.fx.Node)
backends/cadence/aot/memory_constraints.py:196
↓ 2 callersMethodis_valid
Sanity checks the the XNNHeader. We check that the flatbuffer size is non_zero and that the constant data offset is after th
backends/xnnpack/serialization/xnnpack_graph_serialize.py:187
↓ 2 callersMethodis_valid
(self)
backends/vulkan/serialization/vulkan_graph_serialize.py:137
↓ 2 callersFunctionis_view_copy_node
(node: torch.fx.Node)
backends/vulkan/utils.py:163
↓ 2 callersFunctionis_vision_model
(model_name)
examples/vulkan/export.py:37
↓ 2 callersMethodis_weight_perchannel_quantized
(self)
backends/vulkan/patterns/quantized_linear.py:227
↓ 2 callersMethodis_weight_pergroup_quantized
(self)
backends/vulkan/patterns/quantized_linear.py:213
↓ 2 callersFunctioniterable_to_html
(s)
exir/verification/dev_html.py:21
↓ 2 callersFunctionkernel_check
Check if kernel size is within U55 constraints. Checks that ``kernel_x * kernel_y`` is in ``[1, 65536]`` and ``kernel_y`` is in ``[1, 256]``
backends/arm/operator_support/pool_2d_support.py:28
↓ 2 callersMethodline_search
(self, x)
backends/qualcomm/quantizer/observers/per_channel_param_observer.py:83
↓ 2 callersFunctionlinear_op
(act, weight, bias=None)
backends/xnnpack/quantizer/xnnpack_quantizer.py:61
↓ 2 callersMethodlinear_to_conv2d
(self)
examples/models/llama/static_attention.py:1508
↓ 2 callersFunctionlist_image_paths
(path: str | Path)
examples/arm/super_resolution_example_vgf/model_export/common.py:53
↓ 2 callersFunctionload_and_pack_for_cuda
Load a quantized safetensors file and assign weights to the model.
examples/models/gemma4_31b/quant/pack_cuda.py:66
↓ 2 callersFunctionload_audio
Load audio file and resample to target sample rate.
examples/models/parakeet/export_parakeet_tdt.py:22
↓ 2 callersFunctionload_calibration_sample
( path: str, example_inputs: Tuple[torch.Tensor, ...] )
backends/arm/scripts/aot_arm_compiler.py:264
↓ 2 callersFunctionload_calibration_samples
( calibration_data: str | None, example_inputs: Tuple[torch.Tensor, ...], )
backends/arm/scripts/aot_arm_compiler.py:274
↓ 2 callersFunctionload_checkpoint
(input_dir: str)
examples/models/smollm3/convert_weights.py:77
↓ 2 callersFunctionload_checkpoint
(input_dir: str)
examples/models/lfm2/convert_weights.py:62
↓ 2 callersFunctionload_gguf_model
Load a GGUF file, remap keys, and pack for the target backend. Streams tensors one at a time for low peak memory. GGUF ties ``embed_tokens``
examples/models/gemma4_31b/gguf_loader.py:97
↓ 2 callersMethodload_imagenet_folder
(directory: str)
backends/arm/util/arm_model_evaluator.py:205
↓ 2 callersFunctionload_model
Load VoxtralTTSModel from a Mistral checkpoint. Uses meta-device construction + assign-based loading to minimize peak memory.
examples/models/voxtral_tts/model.py:1491
↓ 2 callersFunctionload_tensors_from_bin
(path: Union[str, Path])
backends/mlx/test/test_utils.py:201
↓ 2 callersFunctionload_voice_embedding_tensor
( path: str | Path, dim: int = 3072, expected_frames_hint: int | None = None, )
examples/models/voxtral_tts/voice.py:32
↓ 2 callersMethodlookahead_decode
( # noqa: C901 self, model: Callable[..., Any], init_token: int, n: int,
examples/models/llama/static_attention.py:489
↓ 2 callersMethodlower_and_test_without_partitioner
( self, graph_module, example_inputs, func_name: str, use_fp16: bool =
backends/apple/mps/test/test_mps_utils.py:306
↓ 2 callersFunctionlower_to_executorch
Lower exported programs to ExecuTorch. Args: triton_kernel_mode: For CUDA backend only. "ON" replaces ATen SDPA with Triton s
examples/models/voxtral_tts/export_voxtral_tts.py:478
↓ 2 callersMethodmake_offsets
(self)
examples/models/voxtral_tts/model.py:552
↓ 2 callersMethodmake_resource_files
Returns a _ResourceFiles containing the injected fake files. Args: files: Mapping of filename to contents.
exir/_serialize/test/test_flatbuffer.py:39
↓ 2 callersFunctionmake_tensor_repset
Given a TensorRepr, return a TensorRepSet that contains only that TensorRepr
backends/vulkan/utils.py:1094
↓ 2 callersFunctionmark_node_as_annotated
( node, input_qspec_map, output_qspec, is_quantized, )
backends/cortex_m/quantizer/quantizer.py:37
↓ 2 callersFunctionmatching_instance_ids
(n: fx.Node)
devtools/intermediate_output_tap/_selectors.py:99
↓ 2 callersMethodmaybe_wrap_dim
(self, dim: int, n: int)
backends/apple/mps/operators/indexing_ops.py:124
↓ 2 callersFunctionmeasure_time
(code, log_n, type_name, method_name, num_it=3)
extension/llm/custom_ops/spinquant/third-party/FFHT/gen.py:744
↓ 2 callersFunctionmem_profile_table
(mem_allocations: Dict[str, List[MemEvent]])
profiler/parse_profiler_results.py:359
↓ 2 callersMethodmod
(lhs: _ExactValues, rhs: _ExactValues)
backends/arm/_passes/symbolic_value_range.py:78
↓ 2 callersFunctionmodel_converter_env
Return an env dict suitable for running model-converter as a subprocess. If MODEL_CONVERTER_LIB_DIR is set, it is prepended to LD_LIBRARY_PATH so
backends/arm/vgf/model_converter.py:28
↓ 2 callersMethodmodel_type_from_compile_specs
Returns the model type by parsing the list of compile specs.
backends/apple/coreml/compiler/coreml_preprocess.py:123
↓ 2 callersMethodnamed_gradients
(self)
extension/training/pybindings/_training_module.py:62
↓ 2 callersFunctionnext_power_of_two
(n)
examples/qualcomm/oss_scripts/llama/wrappers/base_component.py:68
↓ 2 callersFunctionno_dispatch
()
exir/common.py:18
↓ 2 callersFunctionnode_has_well_defined_shape
(node: Node)
backends/nxp/backend/edge_helper.py:361
↓ 2 callersMethodnode_is_compatible
( self, node: torch.fx.Node, features: Optional[OpFeatures] = None )
backends/vulkan/partitioner/vulkan_partitioner.py:147
↓ 2 callersMethodnode_is_followed_only_by_getitem_nodes
(node: Node)
backends/nxp/aten_passes/remove_nodes_with_known_outputs.py:66
↓ 2 callersFunctionnodes_not_adjacent_in_gm
( graph_module: torch.fx.GraphModule, pred_target: torch.fx.Node, succ_target: torch.fx.Node, )
backends/cadence/aot/pass_utils.py:199
↓ 2 callersFunctionnodes_not_connected_in_gm
( graph_module: torch.fx.GraphModule, pred_target: torch.fx.Node, succ_target: torch.fx.Node, )
backends/cadence/aot/pass_utils.py:170
↓ 2 callersFunctionnormalize_mean_dims
Return mean dims as non-negative indices for the given rank.
backends/xnnpack/utils/utils.py:61
↓ 2 callersFunctionnumpy_to_torch_tensor
(array: np.ndarray, output_node: Node)
backends/arm/test/runner_utils.py:202
↓ 2 callersMethodonGenerationStopped
()
extension/benchmark/android/benchmark/app/src/main/java/org/pytorch/minibench/LlmBenchmark.java:72
↓ 2 callersFunctionop_counts_match
( graph_module: torch.fx.GraphModule, expected_op_counts: dict[EdgeOpOverload, int], )
backends/cadence/aot/pass_utils.py:145
↓ 2 callersMethodop_index
(self, in_index, out_index)
examples/apple/coreml/llama/utils.py:51
↓ 2 callersMethodout
(self)
exir/dialects/edge/arg/model.py:194
↓ 2 callersFunctionpack_4bit_weight_tensor
Given a 8-bit weight tensor containing values quantized to 4 bits, create a packed weight tensor by transposing the weight tensor, then packi
backends/vulkan/patterns/quantized_linear.py:293
↓ 2 callersFunctionpack_embedding_for_cuda
Assign a quantized weight to an ``nn.Embedding`` (INT8 only).
examples/models/gemma4_31b/quant/pack_cuda.py:41
↓ 2 callersFunctionpad_to_target
( image: torch.Tensor, target_size: Tuple[int, int], )
examples/models/yolo26/export_and_validate.py:166
↓ 2 callersFunctionpadding_required
(data_len: int, alignment: int = 16)
backends/vulkan/serialization/vulkan_graph_serialize.py:171
↓ 2 callersFunctionparse_compile_spec
(compile_specs: list[CompileSpec])
backends/arm/util/_factory.py:20
↓ 2 callersFunctionparse_dequant_nvfp4_node
Parse a torchao.dequantize_nvfp4 node. Returns (qdata, scale, per_tensor_scale, output_dtype) or None if not a dequantize_nvfp4 node or the c
backends/mlx/builder/op_helpers.py:284
↓ 2 callersFunctionparse_mlx_payload
Parse raw MLX delegate payload bytes into a dict. This is the public entry point for callers that already have the raw delegate payload (e.g.
backends/mlx/pte_inspector.py:434
↓ 2 callersFunctionparse_value
(text_num: str, text_unit: Optional[str])
backends/arm/test/test_memory_allocator_log.py:41
↓ 2 callersFunctionparse_yaml
( path: str | None, tags_yaml_path: str, function_filter: Callable[[NativeFunction], bool], sk
codegen/gen.py:741
↓ 2 callersMethodpartition
(self, partition_stage: Optional[BaseStages.Partition] = None)
backends/arm/test/tester/arm_tester.py:438
↓ 2 callersFunctionpatch_alignment
Replaces an existing alignment with a new alignment.
exir/_serialize/_flatbuffer.py:63
↓ 2 callersMethodplaceholder
(self, name: str, arg: Argument, meta: NodeMetadata)
exir/pass_base.py:498
↓ 2 callersMethodplaceholder
(self, name: str, arg: Argument, meta: NodeMetadata)
exir/passes/dynamic_shape_prop_pass.py:217
↓ 2 callersMethodplan
Plan memory allocation for the given tensor specs.
backends/cadence/aot/memory_planning_algo.py:155
↓ 2 callersMethodplan_with_constraints
Callable interface for ET memory planning.
backends/cadence/aot/memory_planning_algo.py:275
↓ 2 callersFunctionpop_config_arg
Removes '--config' and its value from sys.argv. Assumes --config is specified and argparse has already validated the args. Returns the co
extension/llm/export/export_llm.py:55
↓ 2 callersFunctionpost_process_logits
( output_holder: List, host_logits_path: str, kv_io_bit_width: int, num_input_tokens: int,
examples/qualcomm/oss_scripts/llama/decoder_runtime_evaluator.py:65
↓ 2 callersMethodpostprocess
Post-process.
examples/mediatek/aot_utils/llm_utils/tokenizers_/english_normalizer.py:509
↓ 2 callersFunctionpostprocess_output_and_save
(output, image_height, image_width, output_image_path)
examples/qualcomm/oss_scripts/depthanything_v2_small.py:37
↓ 2 callersFunctionprecompute_freqs_cis
( dim: int, end: int, theta: float = 10000.0, use_scaled: bool = False, scale_factor: Opti
examples/models/llama/rope.py:43
↓ 2 callersFunctionprecompute_freqs_cis
Pairwise interleaved RoPE matching mistral_inference's complex convention.
examples/models/voxtral_tts/model.py:194
↓ 2 callersMethodprefillImagesInput
(int[] image, int width, int height, int channels)
extension/android/executorch_android/src/main/java/org/pytorch/executorch/extension/llm/LlmModule.java:639
↓ 2 callersMethodprepare_for_model
Prepares a sequence of input id, or a pair of sequences of inputs ids so that it can be used by the model. It adds special tokens, truncates
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:3660
↓ 2 callersFunctionprepare_image
Read image into a tensor and resize the image so that it fits in a target_h x target_w canvas. Args: image (Image): An Image object.
examples/models/llava/model.py:39
← previousnext →3,601–3,700 of 28,493, ranked by callers