Skip to content

馃挕 [REQUEST] - Add model.eval() after loading the mdoel#3965

Description

@Justee21

馃殌 Describe the improvement or the new tutorial

On this site: https://docs.pytorch.org/tutorials/beginner/basics/saveloadrun_tutorial.html after the last final example and line of code: model = torch.load('model.pth', weights_only=False), it may be helpful to add model.eval() below for clarity and consistency as done earlier in this web page. This makes the recommended inference pattern more explicit and is especially helpful for models that include Batch Normalization or Dropouts.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions