Skip to content

model.train(False) affects gradient tracking? #2230

Closed
@MaverickMeerkat

Description

@MaverickMeerkat

In this tutorial here it says in the comment that "# We don't need gradients on to do reporting". From what I understand the train flag only affects layers such as dropout and batch-normalization. Does it also affect gradient calculations, or is this comment wrong?

# We don't need gradients on to do reporting

cc @suraj813

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions