pytorch/profile
Profile ExecuTorch model execution. Use when measuring performance, analyzing operator timing, or debugging slow models.
npx skills add https://github.com/pytorch/executorch --skill profile
program = runtime.load_program("model.pte", enable_etdump=True, debug_buffer_size=int(1e7))
outputs = program.load_method("forward").execute(inputs)
program.write_etdump_result_to_file("etdump.etdp", "debug.bin")
from executorch.devtools import Inspector
inspector = Inspector(etrecord="model.etrecord", etdump_path="etdump.etdp")
inspector.print_data_tabular()
Take pytorch/profile from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.