skylineprof / skyline

🏙 Interactive in-editor performance profiling, visualization, and debugging for PyTorch neural networks.
Apache License 2.0
30 stars 3 forks source link

Breakdown invocation counts are misleading for operations called in a loop #45

Open geoffxy opened 4 years ago

geoffxy commented 4 years ago

When we call an operation in a loop, our hierarchical breakdown builder will group all invocations together into a single breakdown node. We calculate the run time and memory consumption correctly, but our current implementation results in only a single instance of the operation being reported. This can be misleading to the end user.