profile

star 4.7k

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

pytorch By pytorch schedule Updated 2/8/2026

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

Profile

1. Enable ETDump when loading

program = runtime.load_program("model.pte", enable_etdump=True, debug_buffer_size=int(1e7))

2. Execute and save

outputs = program.load_method("forward").execute(inputs)
program.write_etdump_result_to_file("etdump.etdp", "debug.bin")

3. Analyze with Inspector

from executorch.devtools import Inspector
inspector = Inspector(etrecord="model.etrecord", etdump_path="etdump.etdp")
inspector.print_data_tabular()
Install via CLI
npx skills add https://github.com/pytorch/executorch --skill profile
Repository Details
star Stars 4,735
call_split Forks 1,033
navigation Branch main
article Path SKILL.md
More from Creator