Skip to content

Fix buffer memory cost duplicate calculation bug and organized c…#16

Merged
Ahzyuan merged 1 commit intov0.1.xfrom
bugfix/fix-statistic
Mar 4, 2025
Merged

Fix buffer memory cost duplicate calculation bug and organized c…#16
Ahzyuan merged 1 commit intov0.1.xfrom
bugfix/fix-statistic

Conversation

@Ahzyuan
Copy link
Copy Markdown
Member

@Ahzyuan Ahzyuan commented Mar 4, 2025

…ode.

📋 Summary

Important

  • This PR fixes a bug.
  • This PR adds something new.
  • This PR is not a code change (e.g. README, typos, ...)
  • This PR has been tested.

📝 Changes

Details
  • torchmeter/core.py: replace ITTPMeter with its new name IttpMeter.
  • torchmeter/engine.py: replace ITTPMeter with its new name IttpMeter.
  • torchmeter/statistic.py: fix buffer memory cost duplicate calculation bug; add limitation in initializing all of the statistic class (i.e. ParamMeter, CalMeter, MemMeter, IttpMeter); and do some chore for a safer and better usage experience.

@Ahzyuan Ahzyuan self-assigned this Mar 4, 2025
@Ahzyuan Ahzyuan merged commit 131acec into v0.1.x Mar 4, 2025
@Ahzyuan Ahzyuan deleted the bugfix/fix-statistic branch March 4, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant