Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add contribution of recursive calls to total_output_bytes #181

Merged
merged 1 commit into from
Oct 14, 2022
Merged

Add contribution of recursive calls to total_output_bytes #181

merged 1 commit into from
Oct 14, 2022

Conversation

mert-kurttutan
Copy link
Contributor

I think we should count recursive calls towards total_output_bytes (hence memory for storing intermediate gradient/output values)
It seems that this is ignored (see the relevant change in formatting.py)
This problem can be seen in #144

@codecov
Copy link

codecov bot commented Oct 13, 2022

Codecov Report

Merging #181 (118dedc) into main (b639a8b) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #181   +/-   ##
=======================================
  Coverage   97.36%   97.36%           
=======================================
  Files           6        6           
  Lines         570      570           
=======================================
  Hits          555      555           
  Misses         15       15           
Impacted Files Coverage Δ
torchinfo/model_statistics.py 98.11% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@TylerYep
Copy link
Owner

This makes sense to me, thanks for fixing this.

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.

2 participants