Thanks to visit codestin.com
Credit goes to github.com

Skip to content

InstanceNorm1d does not match documentation and is redundant. #9776

@veugene

Description

@veugene

InstanceNorm1d expects only 3D inputs, while the documentation states:

"Applies Instance Normalization over a 2D or 3D input (a mini-batch of 1D inputs with optional additional channel dimension)"

Furthermore, InstanceNorm1d, InstanceNorm2d, and InstanceNorm3d appear to be redundant as they add nothing to their parent class _InstanceNorm except an input dimension check.

Proposal A:
Fix the dimension check in InstanceNorm1d to allow both 2D and 3D inputs.

Proposal B:
Merge all instance norm classes into a single class, for any input dimensions > 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions