We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
listings::ch06::calc_loss_batch
train
listings::ch06::calc_loss_loader
Similar to ch05, calc_loss_batch is used for both inference and training, so it should have a param to be able to control the model modes.
calc_loss_batch
Accordingly, since calc_loss_loader is only used for inference, it should set train to false when it invokes calc_loss_batch.
calc_loss_loader
false
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Similar to ch05,
calc_loss_batch
is used for both inference and training, so it should have a param to be able to control the model modes.Accordingly, since
calc_loss_loader
is only used for inference, it should settrain
tofalse
when it invokescalc_loss_batch
.The text was updated successfully, but these errors were encountered: