Skip to content

Containers should allow module assignments #89

@soumith

Description

@soumith

Right now, after you created a Container, you can assign modules at a later time to it like this:

container.add_module('linear', nn.Linear())

Instead, also allow this simpler interface:

container.linear = nn.Linear()

Metadata

Metadata

Assignees

No one assigned

    Labels

    todoNot as important as medium or high priority tasks, but we will work on these.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions