Skip to content

Directly calling module.setup() should raise an exception #667

Closed
@andsteing

Description

@andsteing

flax.linen.Module.setup() should not be called directly because it needs a flax.linen.Scope to be set up properly.

Since #653 there is no more exception risen when a user inadvertently calls flax.linen.Module.setup() (though there probably will be error messages if the user tries to access the scope...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: P2 - no scheduleBest effort response and resolution. We have no plan to work on this at the moment.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions