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
Issue: Using program.populate in the middle of a training iteration results in the loss being None on the next training epoch.
Seems to be because program.populate sets the mode as Mode.POPULATE. The model should set it back on the beginning of training, but PrimalDual program uses self.train(), which only changes the pytorch setting.
Changing line 100 of primaldualprogram.py to self.model.mode(Mode.TRAIN) fixes this.
The text was updated successfully, but these errors were encountered:
Issue: Using program.populate in the middle of a training iteration results in the loss being None on the next training epoch.
Seems to be because program.populate sets the mode as Mode.POPULATE. The model should set it back on the beginning of training, but PrimalDual program uses self.train(), which only changes the pytorch setting.
Changing line 100 of primaldualprogram.py to self.model.mode(Mode.TRAIN) fixes this.
The text was updated successfully, but these errors were encountered: