Skip to main content

profile

Profile ExecuTorch model execution. Use when measuring performance, analyzing operator timing, or debugging slow models.

来源信息

仓库
pytorch/executorch
最近来源活动
2026年2月8日 05:21
检测到的 SKILL.md 语言
英语
星标
5,172
Forks
1,245

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
profile
description
Profile ExecuTorch model execution. Use when measuring performance, analyzing operator timing, or debugging slow models.
# Profile ## 1. Enable ETDump when loading ```python program = runtime.load_program("model.pte", enable_etdump=True, debug_buffer_size=int(1e7)) ``` ## 2. Execute and save ```python outputs = program.load_method("forward").execute(inputs) program.write_etdump_result_to_file("etdump.etdp", "debug.bin") ``` ## 3. Analyze with Inspector ```python from executorch.devtools import Inspector inspector = Inspector(etrecord="model.etrecord", etdump_path="etdump.etdp") inspector.print_data_tabular() ```
在 GitHub 查看