Skip to content

torch.nn.InstanceNorm1d has inconsistent semantics of train and eval #4348

@The-Fonz

Description

@The-Fonz

For torch.nn.InstanceNorm1d the docs say:

At evaluation time (.eval()), the default behaviour of the InstanceNorm module stays the same i.e. running mean/variance is NOT used for normalization. One can force using stored mean and variance with .train(False) method.

However, the source for .eval() shows that it simply calls .train(False).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions