I’m currently tackling my first issue in PyTorch by refactoring two functions. I noticed that there were two functions that appear to do the same thing but I’m guessing that time-wise they don’t operate the same. How would one run tests for benchmarking?
Here’s a relevant screenshot of what I wanna achieve:
@thinking_tower
The performance test part to me is a self wrote script.
If you are under python. You can simply use timeit with string format to get the same output layout as above.