Skip to content

Feature request: instance norm without the computation of running statistics #4509

@netheril96

Description

@netheril96

The current instance norm implementation delegates to nn.functional.batch_norm for the actual computation, and if my understanding is not wrong, the latter requires the presence of running mean and variance. Instance norm, however, usually never needs these statistics even in testing mode, so it is waste of both time and space. It would be nice if batch_norm could be modified such that running mean and variance are optional. It won't be hard, will it?

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