Skip to content

[feature request] add nn.init.zeros_ and nn.init.ones_ #7454

@acgtyrant

Description

@acgtyrant

nn.int.ones_(module.weight) is always more readable than nn.init.constant_(module.weight, 1), and for nn.init.zeros_ as well.

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