MCPcopy Create free account

hub / github.com/pytorch/executorch / functions

Functions28,493 in github.com/pytorch/executorch

↓ 1 callersFunctionbuild_devtools_runner_including_coreml
( root_dir_path: Path, conda_env_name: str, force: bool = False, )
examples/apple/coreml/scripts/inspector_utils.py:50
↓ 1 callersFunctionbuild_efficient_sam_vitt
()
examples/models/efficient_sam/efficient_sam_core/build_efficient_sam.py:12
↓ 1 callersFunctionbuild_ethosu_runtime
( et_build_root: str, script_path: str, pte_file: str, target: str, system_config: str,
backends/arm/test/test_model.py:179
↓ 1 callersFunctionbuild_graph
( inputs, outputs, qnn_in_order: Optional[List[int]] = None, executorch_in_ord
backends/qualcomm/utils/utils.py:812
↓ 1 callersMethodbuild_graph
(self)
backends/vulkan/serialization/vulkan_graph_builder.py:472
↓ 1 callersFunctionbuild_header
Find the union of all keys and return a dict of header keys and indices. Try to preserve ordering as much as possible.
backends/test/suite/generate_markdown_summary_json.py:190
↓ 1 callersFunctionbuild_hf_checkpoint
(output_dir: str)
examples/models/gemma4_31b/tests/test_pipeline.py:151
↓ 1 callersMethodbuild_inputs_with_special_tokens
Build inputs with special tokens.
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_gpt2.py:246
↓ 1 callersMethodbuild_inputs_with_special_tokens
Build model inputs from a sequence for classification tasks by concatenating and adding special tokens. This implementation does not add spec
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_utils_base.py:3639
↓ 1 callersFunctionbuild_libs
(et_build_root: str, script_path: str)
backends/arm/test/test_model.py:125
↓ 1 callersFunctionbuild_overlay_data
Build ModelExplorer node data from trace and tables files.
examples/arm/visualize.py:233
↓ 1 callersFunctionbuild_perf_df
Build a performance DataFrame summarizing queue metrics grouped by source_id. Returns a tuple of (perf_df, cmd_to_op_df) where cmd_to_op_df i
examples/arm/visualize.py:125
↓ 1 callersFunctionbuild_pte
( et_build_root: str, model_name: str, target: str, system_config: str, memory_mode: str,
backends/arm/test/test_model.py:138
↓ 1 callersFunctionbuild_reshape_tosa
Insert a TOSA reshape operator using the v1.0 semantics. Args: tosa_graph (Any): Graph builder used to emit TOSA operators. input
backends/arm/tosa/utils.py:133
↓ 1 callersFunctionbuild_row
(rec, header: dict[str, int])
backends/test/suite/generate_markdown_summary_json.py:209
↓ 1 callersFunctionbuild_src_df
Merge source table with performance metrics and total NPU cycles. Returns a tuple of (src_df, cmd_to_op_df) where df_cmd_to_op is needed for
examples/arm/visualize.py:185
↓ 1 callersFunctionbuild_test_filter
(args: argparse.Namespace)
backends/test/suite/runner.py:319
↓ 1 callersFunctionbuild_vkml_runtime
( et_build_root: str, script_path: str, extra_flags: str, build_path: str, )
backends/arm/test/test_model.py:238
↓ 1 callersMethodbundled_program_test_data_gen
(**args)
backends/cadence/runtime/executor.py:175
↓ 1 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a mapping to unicode strings. We specifically avoids mapping to whitespace/control characters the bpe code barfs o
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_whisper.py:44
↓ 1 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a mapping to unicode strings. We specifically avoids mapping to whitespace/control characters the bpe code barfs o
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_gpt2.py:33
↓ 1 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a mapping to unicode strings. We specifically avoids mapping to whitespace/control characters the bpe code barfs o
examples/mediatek/aot_utils/llm_utils/tokenizers_/tokenization_qwen2.py:40
↓ 1 callersFunctioncalculate_data_stride
Calculate strides for a flattened view of the destination tensor that are multiplied with the indices to build the [N, W] tensor.
backends/arm/_passes/rewrite_index_put_pass.py:21
↓ 1 callersFunctioncalculate_fp16_exp_tolerance
(ref_output_tensor)
backends/xnnpack/test/ops/test_exp.py:13
↓ 1 callersMethodcalculate_positions_and_update_indices
Calculate indices, into k_cache, v_cache, where to put k_val tensor. Given the input_pos and length of k_val at sequence dim, the inp
examples/models/llama/attention.py:184
↓ 1 callersFunctioncalculate_precision
( true_boxes, true_labels, det_boxes, det_labels, tp, fp, top_k, iou_thres )
examples/qualcomm/oss_scripts/retinanet.py:121
↓ 1 callersFunctioncalculate_project_name
Get a cmake project name for that path using relative path. >>> calculate_project_name("runtime/core/portable_type/test") 'runtime_core_p
test/utils/generate_gtest_cmakelists.py:14
↓ 1 callersFunctioncalculate_relative_path
Return the relative path from the path_to_root to root (i.e. "..") >>> calculate_relative_path("runtime/core/portable_type/test") '../../
test/utils/generate_gtest_cmakelists.py:23
↓ 1 callersFunctioncalibrate
( max_seq_length, tokenizer, whisper_decoder, fx_graph_module_encoder, fx_graph_module_dec
examples/qualcomm/oss_scripts/whisper/whisper.py:101
↓ 1 callersFunctioncalibrate_model
(model, cal_dataset, chunk_idx: str)
examples/mediatek/model_export_scripts/gemma.py:352
↓ 1 callersFunctioncalibrate_model
(model, cal_dataset, chunk_idx: str)
examples/mediatek/model_export_scripts/llama.py:311
↓ 1 callersFunctioncalibrate_model
(model, cal_dataset, chunk_idx: str)
examples/mediatek/model_export_scripts/phi.py:311
↓ 1 callersFunctioncalibrate_model
(model, cal_dataset, chunk_idx: str)
examples/mediatek/model_export_scripts/whisper.py:376
↓ 1 callersFunctioncalibrate_model
(model, cal_dataset, chunk_idx: str)
examples/mediatek/model_export_scripts/qwen.py:312
↓ 1 callersMethodcall
(self, graph_module: torch.fx.GraphModule)
exir/passes/to_device_pass.py:23
↓ 1 callersMethodcall
(self, graph_module: GraphModule)
exir/tests/test_memory_planning.py:225
↓ 1 callersMethodcall
(self, graph_module: GraphModule)
backends/cortex_m/passes/activation_fusion_pass.py:159
↓ 1 callersMethodcall
Call `self.run()` as long as changes are being made. After a pass modifies the graph, it cannot keep on iterating through its nodes, and must
backends/nxp/edge_passes/neutron_edge_pass.py:18
↓ 1 callersMethodcall
(self, graph_module: torch.fx.GraphModule)
backends/arm/_passes/replace_inf_and_limit_values_pass.py:45
↓ 1 callersMethodcall
(self, graph_module: GraphModule)
backends/arm/_passes/fold_qdq_with_annotated_qparams_pass.py:308
↓ 1 callersMethodcall
(self, graph_module)
backends/arm/_passes/fuse_constant_ops_pass.py:171
↓ 1 callersMethodcall
(self, graph_module: torch.fx.GraphModule)
backends/transforms/rank_0_to_rank_1.py:13
↓ 1 callersMethodcall
(self, graph_module: torch.fx.GraphModule)
backends/cadence/aot/fuse_ops.py:717
↓ 1 callersMethodcall
(self, graph_module: torch.fx.GraphModule)
backends/cadence/aot/replace_ops.py:2360
↓ 1 callersMethodcall
(self, graph_module: torch.fx.GraphModule)
backends/cadence/aot/remove_ops.py:753
↓ 1 callersMethodcallWithLoggerEnabled
(self, graph_module: torch.fx.GraphModule)
exir/passes/__init__.py:217
↓ 1 callersMethodcall_cond
( self, pred: ProxyValue, true_fn: torch.fx.GraphModule, false_fn: torch.fx.Gr
exir/pass_base.py:521
↓ 1 callersMethodcall_delegate
( self, # pyre-ignore: Undefined or invalid type [11]: Annotation `LoweredBackendModule` is no
exir/pass_base.py:741
↓ 1 callersMethodcall_getitem
( self, value: ProxyValue, key: int, meta: Optional[NodeMetadata] = None )
backends/test/graph_builder.py:99
↓ 1 callersMethodcall_kernel
Calls operator from kernel: 1. Determines kernel's operation through kernel.op_index, which indexes into operator list fro
exir/verification/interpreter.py:309
↓ 1 callersMethodcall_method
Unsupported in execution IR, so unhandled by the emitter.
exir/emit/_emitter.py:1703
↓ 1 callersMethodcall_operator
(self, op, args, kwargs, meta: NodeMetadata)
exir/passes/sym_to_tensor_pass.py:27
↓ 1 callersMethodcall_operator
(self, op, args, kwargs, meta: NodeMetadata)
exir/passes/remove_mixed_type_operators.py:18
↓ 1 callersMethodcall_operator
( self, op: EdgeOpOverload, args: tuple[Argument, ...], kwargs: Dict[str, Argu
backends/cortex_m/passes/quantized_op_fusion_pass.py:404
↓ 1 callersMethodcall_operator
(self, op, args, kwargs, meta)
backends/arm/_passes/decompose_tosa_unsupported_clamp_pass.py:45
↓ 1 callersMethodcall_scan
( self, combine_fn: torch.fx.GraphModule, init: List[ProxyValue], xs: List[Arg
exir/pass_base.py:584
↓ 1 callersMethodcall_while
( self, cond_fn: torch.fx.GraphModule, body_fn: torch.fx.GraphModule, carried_
exir/pass_base.py:541
↓ 1 callersMethodcan_fuse
Determine whether a batch norm node can be fused with a preceding conv node.
backends/transforms/fuse_batch_norm_with_conv.py:132
↓ 1 callersMethodcan_fuse_for_chain
( self, producer: torch.fx.Node, consumer: torch.fx.Node, consumer_op_packets:
backends/transforms/permute_pass_utils.py:201
↓ 1 callersFunctioncanonicalize
Normalize a serialized ExportedProgram, so that different eager program which shares the same semantics can get a single representation on di
exir/serde/export_serialize.py:2683
↓ 1 callersMethodcapture_nncf_patterns
(self, graph_module: torch.fx.GraphModule)
backends/openvino/partitioner.py:179
↓ 1 callersFunctionchange_linear_weights_to_q4_0_tensors
Converts all linear weight tensors to the `GGMLInt4LinearWeight` tensor subclass, effectively applying the same form of quantization
examples/models/llama/experimental/load_gguf_q4_0.py:100
↓ 1 callersMethodchannels_first_version_of
Get the channels first version of non-static 't_tensor'. If one is not available in the graph yet, add transpose operator to create it.
backends/nxp/backend/ir/converter/builder/model_builder.py:215
↓ 1 callersMethodchat_completion
Perform multi-turn chat with the language model. Args: max_seq_len (int): Maximum number of tokens to generate f
examples/models/llama/runner/generation.py:183
↓ 1 callersFunctioncheck
(commit: _Commit, force_unsafe: bool = False)
exir/serde/schema_check.py:239
↓ 1 callersFunctioncheck_and_update_submodules
()
install_executorch.py:132
↓ 1 callersMethodcheck_argmax
Raises a RuntimeError if the argmax value returned by the min/max op is used in the graph.
backends/arm/_passes/convert_minmax_pass.py:53
↓ 1 callersMethodcheck_constraints
(self, node: torch.fx.Node, ep: ExportedProgram)
backends/xnnpack/partition/config/gemm_configs.py:67
↓ 1 callersFunctioncheck_data
(target_f, predict_f)
examples/mediatek/eval_utils/eval_oss_result.py:16
↓ 1 callersMethodcheck_delegate_input
( self, delegate: LoweredBackendModule, input_len: int )
exir/backend/test/test_backends_lifted.py:100
↓ 1 callersMethodcheck_delegated
Check if the program has been delegated to expected backends.
export/tests/test_target_recipes.py:80
↓ 1 callersFunctioncheck_dependencies
Check that there are no shared object dependencies of a binary executable.
scripts/check_binary_dependencies.py:204
↓ 1 callersFunctioncheck_disallowed_symbols_build_dir
Check that there are no disallowed symbols used in intermediate build files.
scripts/check_binary_dependencies.py:216
↓ 1 callersMethodcheck_dtypes
Check if all tensor inputs/outputs have dtypes supported by this operator. Returns (is_valid, reason_string).
backends/vulkan/op_registry.py:97
↓ 1 callersFunctioncheck_dynamic
Check for dynamic symbols required by an executable, categorizing them from the intermediate files that may have included those symbols.
scripts/check_binary_dependencies.py:243
↓ 1 callersFunctioncheck_embedding_byte_registered
()
extension/llm/export/quantizer_lib.py:100
↓ 1 callersMethodcheck_expand_dims
(self, sizes, in_shape)
backends/samsung/builders/op_expand_copy.py:58
↓ 1 callersFunctioncheck_for_outside_users
Make sure that all the users of this partiton are within the delegatable subgraph, except the last partition. If we quantize partitions that
backends/example/example_quantizer.py:53
↓ 1 callersMethodcheck_graph_out
(self, ref: ValueRefList)
backends/vulkan/test/op_tests/utils/gen_computegraph.py:683
↓ 1 callersFunctioncheck_new_alias_fit_constraints
Check whether new type alias fits the existing constraints. For example, for existing aliases ('Float'): 0, ('Int'): 1, a new alias of ('Float, In
exir/dialects/edge/spec/utils.py:198
↓ 1 callersMethodcheck_no_delegation
(self, et_program: ExecutorchProgramManager)
backends/vulkan/test/test_vulkan_delegate.py:171
↓ 1 callersMethodcheck_num_delegated_nodes
Checks that the number of delegated nodes matches expectations. :param num_dlg_nodes: Actual number of delegated nodes :raises Assert
backends/nxp/tests/graph_verifier.py:81
↓ 1 callersMethodcheck_num_partitions
Check if the program has the expected number of partitions.
export/tests/test_target_recipes.py:103
↓ 1 callersMethodcheck_ok_to_fuse
( self, producer: torch.fx.Node, consumers: list[torch.fx.Node], )
backends/transforms/permute_pass_utils.py:194
↓ 1 callersMethodcheck_partitions
Check if any partitions were found.
backends/mlx/partitioner.py:245
↓ 1 callersMethodcheck_partitions
(partitions: Union[dict, list])
backends/apple/mps/partition/mps_partitioner.py:140
↓ 1 callersMethodcheck_partitions
( backend: QnnExecuTorchBackendType, partitions: List[Any] )
backends/qualcomm/partition/qnn_partitioner.py:204
↓ 1 callersMethodcheck_pattern
(cls, pattern)
backends/cortex_m/quantizer/pattern_checkers.py:266
↓ 1 callersMethodcheck_pattern
( self, node: torch.fx.Node, pattern: type[PatternNode], enabled_ops: list )
backends/openvino/partitioner.py:146
↓ 1 callersMethodcheck_quantization_config
( cls, pattern: list[Node], quantization_config: QuantizationConfig )
backends/cortex_m/quantizer/pattern_checkers.py:280
↓ 1 callersFunctioncheck_release_file
(run_lambda)
util/collect_env.py:415
↓ 1 callersFunctioncheck_requirement
(label: str, cond: str, lines: List[str])
backends/arm/test/test_memory_allocator_log.py:110
↓ 1 callersMethodcheck_scales_zeropoints
(self, node)
backends/xnnpack/operators/op_quant_dequant.py:30
↓ 1 callersFunctioncheck_unmapped_ops
Identify operators in the performance data that are not mapped to any source operation.
examples/arm/visualize.py:158
↓ 1 callersMethodcheck_valid_edge_op
(self, op)
exir/verification/verifier.py:294
↓ 1 callersMethodcheck_valid_op
(self, op)
exir/verification/verifier.py:131
↓ 1 callersFunctionclass_agnostic_mIoU
(predictions, targets)
examples/qualcomm/utils.py:140
↓ 1 callersFunctionclean
()
install_executorch.py:42
↓ 1 callersFunctionclean_text
(rgx_list, text)
examples/qualcomm/oss_scripts/whisper/whisper.py:144
↓ 1 callersFunctioncleanup_memory
Run GC and clear GPU memory.
examples/models/llama/source_transformation/apply_spin_quant_r1_r2.py:88
← previousnext →7,001–7,100 of 28,493, ranked by callers