You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it is abstracted to work for batches of various formats, but improving customization in this area would make it easier for users to understand the behavior with minimal code changes.
Inheriting and modifying the _forward() method also makes it possible to manage nn.Module, which implements only inference functions that do not require labels, without wrapping it in nn.Module for training. Specifically, this can be achieved by executing the loss function inside the _forward() method.
The text was updated successfully, but these errors were encountered:
When implementing the ML pipeline using the engine function of PPE, the next part is essentially where the model calculates the loss.
pytorch-pfn-extras/pytorch_pfn_extras/handler/_logic.py
Lines 209 to 217 in c5b4d58
Currently, it is abstracted to work for batches of various formats, but improving customization in this area would make it easier for users to understand the behavior with minimal code changes.
Inheriting and modifying the _forward() method also makes it possible to manage
nn.Module
, which implements only inference functions that do not require labels, without wrapping it innn.Module
for training. Specifically, this can be achieved by executing the loss function inside the _forward() method.The text was updated successfully, but these errors were encountered: