Skip to content

Bad practice in GAN example #20331

@MrWhatZitToYaa

Description

@MrWhatZitToYaa

📚 Documentation

In the examples section the GAN tutorial creates instances of generator and discriminator (which are nn.Modules) inside the init function, which is bad practice according to this in the class type defaults section. I propose changing the GAN tutorial to conform to best practices.

cc @Borda

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation relatedneeds triageWaiting to be triaged by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions