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

Set default value for max_steps in _is_epoch_done util #497

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

daniellepintz
Copy link
Contributor

Summary:
In evaluate and predict the user does not pass in a max_steps argument so it may seem strange that state.max_steps is used here: https://github.com/pytorch/tnt/blob/master/torchtnt/framework/evaluate.py#L143

Removing this for better readability

Differential Revision: D48198032

Summary:
In evaluate and predict the user does not pass in a max_steps argument so it may seem strange that `state.max_steps` is used here: https://github.com/pytorch/tnt/blob/master/torchtnt/framework/evaluate.py#L143

Removing this for better readability

Differential Revision: D48198032

fbshipit-source-id: 1533ec73d5b3a84a3c7eff6c7daeb9b722fcfbdf
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48198032

@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #497 (e052e88) into master (5150591) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #497   +/-   ##
=======================================
  Coverage   86.91%   86.91%           
=======================================
  Files         102      102           
  Lines        8337     8337           
=======================================
  Hits         7246     7246           
  Misses       1091     1091           
Files Changed Coverage Δ
torchtnt/framework/evaluate.py 92.06% <ø> (ø)
torchtnt/framework/predict.py 90.76% <ø> (ø)
torchtnt/framework/utils.py 87.83% <ø> (ø)
tests/framework/test_utils.py 77.05% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants