Skip to content

In PytorchTrainer class did not reset model to training mode. #22

Description

@eurush

In PyTorchTrainer class, inside fit() function within the epochs loop when a DataLoader is used, the model is set to self.model.eval() mode while printing the loss, but it is not set back to self.model.train().

A simple fix would be to add self.model.train() right at the start of the epoch loop.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions