Skip to content

More helpful error message if prepare_for_*() not called #1141

@terrykong

Description

@terrykong

Internal report:

If someone is making large changes or writing their own training loop. Users may encounter "illegal memory access" if the model is offloaded and not moved to the GPU before that API call. We should either document or give more helpful error messages when the appropriate prepare step is not called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UXRelated to user experiencegood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions