Files
pytorch/torch/_C/_instruction_counter.pyi
Laith Sakka d6091c8726 Add compile time instruction count metric (#133834)
PYTHONPATH=$(pwd) python benchmarks/update_hint_benchmark.py out
as of this diff, compile_time_instruction_count counts the number of instruction from within
convert_frame.compile_inner
```
update_hint_regression,compile_time_instruction_count,10522459165
```
 will add result from CI once populated.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/133834
Approved by: https://github.com/aorenste
2024-08-27 23:29:02 +00:00

5 lines
109 B
Python

# Defined in torch/csrc/instruction_counter/Module.cpp
def start() -> int: ...
def end(id: int) -> int: ...