MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 3 callersMethodprefill
Avoiding the torch.where() call to find <image> placeholder and insert image embedding. Taking 3 inputs instead.
examples/models/llava/model.py:270
↓ 3 callersMethodprefill_embedding
( self, prompt_before_image: torch.Tensor, images: torch.Tensor, prompt_after_
examples/models/llava/model.py:257
↓ 3 callersMethodprepack_ref
(self, ref: ValueRef)
backends/vulkan/test/op_tests/utils/gen_computegraph.py:303
↓ 3 callersMethodprepare_feedfoward_conv
(self)
examples/qualcomm/oss_scripts/llama/model/static_llama.py:539
↓ 3 callersFunctionprepend
(text, tag="[prepend]")
util/collect_env.py:636
↓ 3 callersFunctionpreprocess_binary
(ctx_bin, compiler_specs)
examples/qualcomm/qaihub_scripts/utils/utils.py:17
↓ 3 callersFunctionprofile_framework_tax_table
( prof_framework_tax_data: Dict[str, ProfileEventFrameworkTax] )
profiler/parse_profiler_results.py:410
↓ 3 callersFunctionprofile_table
( profile_data: Dict[str, List[ProfileEvent]], model_buffer=None )
profiler/parse_profiler_results.py:326
↓ 3 callersMethodpull_etdump
(self, output_path, callback=None)
backends/qualcomm/export_utils.py:485
↓ 3 callersFunctionqnn_edge_config
()
backends/qualcomm/utils/utils.py:142
↓ 3 callersFunctionquantize_and_lower_module
( model: torch.nn.Module, sample_inputs: Tuple[torch.Tensor], quantizer: Quantizer, dynamic_sh
backends/vulkan/test/test_vulkan_delegate.py:69
↓ 3 callersFunctionquantize_input
Modify the program to expect quantized input at given index. The input is expected to be quantizing this input as the first step. Must be cal
exir/passes/quantize_io_pass.py:30
↓ 3 callersFunctionquantize_model
( model: GraphModule, example_inputs: Tuple[torch.Tensor], compile_spec, model_name: str,
backends/arm/scripts/aot_arm_compiler.py:800
↓ 3 callersFunctionquantize_tensor_multiplier
Given requantize_scale_tensor with values in the interval (0, 1), produce a pair of tensors (out_multiplier, right_shift) where out_multiplie
backends/cadence/aot/compiler_utils.py:212
↓ 3 callersFunctionquantized_conv2d_nhwc_per_tensor
Quantized convolution operation. Args: - input_tensor (Tensor): The activations tensor - weight (Tensor): The weight tensor
backends/cadence/aot/ref_implementations.py:1435
↓ 3 callersMethodrealign
(self, new_alignment: int)
exir/tensor.py:185
↓ 3 callersFunctionrebuild_op_test_runner
Rebuild the op_test_runner binary using cmake. Args: verbose: Whether to print build output. Returns: True if build suc
backends/mlx/test/test_utils.py:560
↓ 3 callersMethodrecompile_module
Recompile the graph and re-trace the metadata. This should ensure that the datatypes and shapes are correct.
backends/nxp/edge_passes/neutron_edge_pass.py:50
↓ 3 callersMethodreduce_to
Reduce the legal dtype to given t. t must be a legal type for this type alias. return True if reduction succeed; otherwise False.
exir/dialects/edge/_ops.py:45
↓ 3 callersFunctionreplace_linear_with_split_linear
( model, out_target_split_size, out_max_splits, in_target_split_size, in_max_splits=1 )
examples/apple/coreml/llama/utils.py:102
↓ 3 callersFunctionreplace_sdpa_with_quantized_sdpa
(module: torch.nn.Module)
examples/models/llama/source_transformation/sdpa.py:234
↓ 3 callersFunctionrequire_static_int
Validate that a parameter is a static integer (not a Slot/SymInt). Raises NotImplementedError if the value is dynamic. Args: va
backends/mlx/ops.py:165
↓ 3 callersMethodreset
(self, k_zeros: torch.Tensor, v_zeros: torch.Tensor)
exir/tests/test_memory_planning.py:1362
↓ 3 callersMethodreset
(self)
examples/models/llama/static_attention.py:418
↓ 3 callersMethodresetNative
@deprecated Use {@link #close()} instead.
extension/android/executorch_android/src/main/java/org/pytorch/executorch/extension/llm/LlmModule.java:231
↓ 3 callersMethodresolve_relative_loc_constraints
(self, spec: TensorSpec)
backends/cadence/aot/memory_constraints.py:206
↓ 3 callersFunctionreturn_type
(r: Return)
codegen/api/et_cpp.py:197
↓ 3 callersFunctionrotate_half
Rotates half the hidden dims of the input.
examples/models/llama/rope.py:228
↓ 3 callersFunctionrotate_half
Rotates half the hidden dims of the input (HuggingFace style).
examples/models/gemma4/text_decoder/gemma4_attention.py:31
↓ 3 callersMethodrun
( self, artifact: torch.nn.Module, inputs: Tuple[torch.Tensor], )
backends/xnnpack/test/passes/test_propagate_custom_meta_pass.py:75
↓ 3 callersMethodrun
(self, params, alt, section)
docs/source/custom_directives.py:62
↓ 3 callersMethodrun
(self, artifact: PipelineArtifact)
export/stages.py:413
↓ 3 callersMethodrun_and_capture
(self, *args, **kwargs)
devtools/inspector/_intermediate_output_capturer.py:33
↓ 3 callersFunctionrun_and_read_all
Run command using run_lambda; reads and returns entire output if rc is 0.
util/collect_env.py:118
↓ 3 callersFunctionrun_git
Runs a git command and returns its stdout as a list of lines. Prints the command and its output to debug_log() if verbosity is greater than 1
scripts/pick_doc_commits.py:45
↓ 3 callersFunctionsave_json
Save training/validation history to a JSON file. This function takes a dictionary containing training/validation metrics organized by ep
extension/training/examples/CIFAR/train_utils.py:27
↓ 3 callersFunctionsave_model
Save an ExecuTorch model to a specified file path. This function writes the buffer of an ExecuTorchModule to a file in binary format.
extension/training/examples/CIFAR/export.py:146
↓ 3 callersMethodsave_vocabulary
Save vocab.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_gpt2.py:322
↓ 3 callersFunctionselect_all_call_function
Match every `call_function` node whose target name is not in `exclude`.
devtools/intermediate_output_tap/_selectors.py:35
↓ 3 callersMethodserialize
(self, graph_module: torch.fx.GraphModule)
exir/serde/export_serialize.py:1357
↓ 3 callersMethodserialize
Serializes a list of tensors and named data into a blob.
extension/flat_tensor/serialize/serialize.py:296
↓ 3 callersMethodserialize_metadata
(self, node: torch.fx.Node)
exir/serde/serialize.py:141
↓ 3 callersFunctionserialize_tensor_meta
Extract a TensorMeta describing `t`.
exir/serde/export_serialize.py:270
↓ 3 callersFunctionserialize_torch_artifact
(artifact: Dict[str, Any])
exir/serde/export_serialize.py:311
↓ 3 callersMethodsetUp
(self)
extension/llm/custom_ops/test_sdpa_with_kv_cache.py:49
↓ 3 callersMethodset_input_mask
(self, input_mask)
examples/models/llama/static_attention.py:197
↓ 3 callersMethodset_metadata
( # noqa: C901 self, node: torch.fx.Node, value: Argument, )
exir/pass_base.py:234
↓ 3 callersFunctionset_parameter
( param: torch.Tensor, node: torch.fx.Node, edge_program: torch.export.ExportedProgram )
backends/qualcomm/builders/utils.py:47
↓ 3 callersMethodset_scale
(self, scale)
examples/qualcomm/oss_scripts/llama/range_setting_pt2e.py:111
↓ 3 callersMethodsetup_caches
(self)
extension/llm/custom_ops/test_sdpa_with_kv_cache.py:413
↓ 3 callersMethodskipped_spec
(self, spec: TensorSpec)
backends/cadence/aot/memory_constraints.py:161
↓ 3 callersMethodstage_banner
Returns banner string for this stage
backends/test/harness/stages/stage.py:75
↓ 3 callersMethodtag_qdq_clusters
Identifies QDQ clusters and tag them based on compute operation inside.
backends/nxp/neutron_partitioner.py:184
↓ 3 callersFunctiontest_operator_set
Test if a set of operators works correctly when combined with known good operators.
backends/vulkan/test/utils.py:943
↓ 3 callersFunctiontflite_compute_padding_with_offset
Calculate padding and offset for each dimension for particular convolution setting as NeutronIR. Implementation corresponds to tensorflow/lit
backends/nxp/backend/ir/converter/conversion/translator.py:204
↓ 3 callersFunctionto_float
Dequantize GGUF's Q4_0 tensor. Expecting input to be a uint8 tensor with a dimension of [num_group // 2, 18], the first 2 values of each
examples/models/llama/experimental/subclass.py:118
↓ 3 callersFunctionto_int
Return an int for supported numeric types, otherwise None.
backends/arm/common/as_strided_utils.py:20
↓ 3 callersFunctionto_np_arr_fp64
(x: Union[np.ndarray, torch.Tensor])
backends/cadence/runtime/utils.py:84
↓ 3 callersFunctionto_out_variant
r""" Convert the passed in OpOverload to its out variant. Raise an exception if on return the op_overload is not guaranteed to be an out varia
exir/operator/convert.py:295
↓ 3 callersMethodtorch_dtype_to_mps_dtype
(self, torch_dtype: torch.dtype)
backends/apple/mps/operators/node_visitor.py:320
↓ 3 callersFunctiontrace
Trace the model with export and return an ExportedProgram.
backends/cadence/aot/compiler.py:55
↓ 3 callersMethodtrace_node_users_to_constrain_repset
BFS over downstream users to constrain an ambiguous repset. Explores all immediate users at each level before going deeper, so that n
backends/vulkan/_passes/tag_memory_meta_pass.py:330
↓ 3 callersFunctiontransform_and_check_numerics
Run a graph transformation and validate numerical equivalence. Args: original_graph: The original graph module before transformation
backends/cadence/aot/tests/test_simplify_ops_passes.py:27
↓ 3 callersFunctiontransform_fn
(frame)
examples/models/yolo26/export_and_validate.py:241
↓ 3 callersMethodtransform_for_preprocess_pipeline
( self, exported_program: ExportedProgram, use_mha2sha=False )
backends/qualcomm/_passes/qnn_pass_manager.py:295
↓ 3 callersFunctiontranslate_native_yaml
Translates Executorch DSL dialect to use the same syntax as native_functions.yaml. The major difference is that Executorch DSL dialect support
codegen/gen.py:642
↓ 3 callersMethodtraverse
(self, node: torch.fx.Node, graph_module: torch.fx.GraphModule)
backends/qualcomm/_passes/layout_transform.py:283
↓ 3 callersFunctiontry_addoption
(*args, **kwargs)
backends/arm/test/conftest.py:36
↓ 3 callersMethodturn_operator_to_identity
Turn the operator 't_op' to a Transpose operator, which does nothing. 't_op' MUST have exactly 1 input tensor. :param t_op: TFLit
backends/nxp/backend/ir/converter/builder/model_builder.py:687
↓ 3 callersMethodupdate
( self, input_pos: torch.Tensor, k_val: torch.Tensor, v_val: torch.Tensor,
examples/models/llama/source_transformation/custom_kv_cache.py:330
↓ 3 callersMethodupdate_post_processor
Updates the underlying post processor with the current `bos_token` and `eos_token`.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_gemma_fast.py:126
↓ 3 callersMethodupdate_proxy
(self, proxy: torch.fx.Proxy)
exir/tracer.py:256
↓ 3 callersFunctionupdate_to_real_program
Update the fake exported program to point to the real state dict. Modifies the fake exported program in-place.
exir/program/_fake_program.py:60
↓ 3 callersFunctionupdate_type_alias
Update type_alias with new type alias
exir/dialects/edge/spec/utils.py:164
↓ 3 callersFunctionused_getitem_indices
Return the set of getitem indices actually consumed downstream. Only includes indices where the getitem node has at least one user.
backends/mlx/ops.py:314
↓ 3 callersMethoduses_shape_broadcasting
Determine if given PyTorch fx Node uses shape broadcasting for it's input nodes or not. :param node: PyTorch fx Node with 'all_input_nodes' i
backends/nxp/backend/ir/converter/node_converter.py:386
↓ 3 callersMethodvalidate
(self, model: GraphModule)
backends/cortex_m/quantizer/quantizer.py:84
↓ 3 callersMethodvalidate
( self, *, target: str, inputs: List[TosaArg], output: TosaArg,
backends/arm/operators/node_visitor.py:106
↓ 3 callersFunctionvalidate_file_exists
(file_path: Path)
examples/arm/visualize.py:247
↓ 3 callersFunctionvalidate_input
(input_node: torch.fx.Node, qspec: QuantizationSpec | None)
backends/arm/test/quantizer/test_set_module_name.py:75
↓ 3 callersMethodvalidate_lowered_module_program
For any program emitted from lowered_backend_module, we expect only one delegate call
exir/backend/test/test_lowered_backend_module.py:30
↓ 3 callersFunctionvalidate_lpbq_support
(soc_info: SocInfo)
backends/qualcomm/quantizer/annotators/htp_rules.py:89
↓ 3 callersFunctionvalidate_node
( node: torch.fx.Node, quantization_config: QuantizationConfig | None )
backends/arm/test/quantizer/test_set_module_name.py:101
↓ 3 callersFunctionvisualize
Wraps the visualize_from_config call from model_explorer. For convenience, figures out how to find the exported_program from EdgeProgramManage
devtools/visualization/visualization_utils.py:112
↓ 3 callersMethodwrite_to
Writes the files to the specified directory. File names are based on the original resource names.
exir/_serialize/_flatbuffer.py:145
↓ 3 callersMethodwrite_to_file
Writes the serialized ExecuTorch binary to the file at `open_file`. Prefer to use this over `buffer`, as it writes to file without co
exir/program/_program.py:694
↓ 3 callersFunctionxt_objcopy_sections
(dsp_dir, dsp_exe, output_obj_path, obj_name, sections)
backends/cadence/utils/post_compilation.py:77
↓ 2 callersFunctionAllocationDetailsAddMemoryId
(builder: flatbuffers.Builder, memoryId: int)
exir/_serialize/generated/executorch_flatbuffer/AllocationDetails.py:59
↓ 2 callersFunctionAllocationDetailsAddMemoryOffsetHigh
(builder: flatbuffers.Builder, memoryOffsetHigh: int)
exir/_serialize/generated/executorch_flatbuffer/AllocationDetails.py:71
↓ 2 callersFunctionAllocationDetailsAddMemoryOffsetLow
(builder: flatbuffers.Builder, memoryOffsetLow: int)
exir/_serialize/generated/executorch_flatbuffer/AllocationDetails.py:65
↓ 2 callersFunctionAllocationDetailsEnd
(builder: flatbuffers.Builder)
exir/_serialize/generated/executorch_flatbuffer/AllocationDetails.py:77
↓ 2 callersFunctionAllocationDetailsStart
(builder: flatbuffers.Builder)
exir/_serialize/generated/executorch_flatbuffer/AllocationDetails.py:53
↓ 2 callersMethodAllocationInfo
(self)
exir/_serialize/generated/executorch_flatbuffer/Tensor.py:119
↓ 2 callersFunctionBackendDelegateAddCompileSpecs
(builder: flatbuffers.Builder, compileSpecs: int)
exir/_serialize/generated/executorch_flatbuffer/BackendDelegate.py:95
↓ 2 callersFunctionBackendDelegateAddId
(builder: flatbuffers.Builder, id: int)
exir/_serialize/generated/executorch_flatbuffer/BackendDelegate.py:83
↓ 2 callersFunctionBackendDelegateAddProcessed
(builder: flatbuffers.Builder, processed: int)
exir/_serialize/generated/executorch_flatbuffer/BackendDelegate.py:89
↓ 2 callersMethodBackendDelegateData
(self, j: int)
exir/_serialize/generated/executorch_flatbuffer/Program.py:96
↓ 2 callersFunctionBackendDelegateDataReferenceAddIndex
(builder: flatbuffers.Builder, index: int)
exir/_serialize/generated/executorch_flatbuffer/BackendDelegateDataReference.py:58
↓ 2 callersFunctionBackendDelegateDataReferenceAddLocation
(builder: flatbuffers.Builder, location: int)
exir/_serialize/generated/executorch_flatbuffer/BackendDelegateDataReference.py:52
↓ 2 callersFunctionBackendDelegateDataReferenceEnd
(builder: flatbuffers.Builder)
exir/_serialize/generated/executorch_flatbuffer/BackendDelegateDataReference.py:64
← previousnext →2,201–2,300 of 28,493, ranked by callers