-
Notifications
You must be signed in to change notification settings - Fork 122
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
Allowing to use custom activation before computing the loss values #93
Comments
Hi @FMGS666 Said the forward pass below is the desired format: # Forward pass
outputs = model(inputs)
outputs = F.log_softmax(outputs)
loss = criterion(outputs, labels)
If it does not work as expected, please consider sharing the patch you made here, I'll help you resolve it. |
My approach is more similar to the second one, as I directly patched the |
Yeah, I think you can talk with David about this idea if you found this use case is either more commonly recently or can reduce the difficulty of using this library for more complex cases. By the way, the reasons why I would recommend using those 2 above-mentioned approaches are:
Yet these are just my opinions, and hope it can provide development context of this library to you. |
Hello,
It could be good to update the
LRFinder
object so to allow custom final activations to be computed before the loss.I changed this locally in my site-packages directory of the environment im using to overcome the problem, as I need a
log_softmax
activation to be computed before the loss.The text was updated successfully, but these errors were encountered: