Basic information

Repository
pytorch
Skill
profile

About profile

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

profile is an agent skill listed in the AddMCP.net directory, published by pytorch. Runtime: Python. The repository has 5,146 GitHub stars. Source code is hosted on github.com. Related topics: deep-learning, embedded, gpu, machine-learning, mobile.

Overview

What is profile?


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()

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬