Skip to content

map_location hasn't been implemented in load_from_checkpoint #600

@haossr

Description

@haossr

Describe the bug
Current load_from_checkpoint function does not support to load a gpu checkpoint on cpu devices, i.e. map the location.

To Reproduce

# on a cpu only device:
Model.load_from_checkpoint("GPU_CHECKPOINT_FILE")

Expected behavior
AssertionError: Torch not compiled with CUDA enabled

Desktop (please complete the following information):

  • OS: macOS Catalina 10.15.1
  • Browser: chrome
  • Version: 0.5.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIs an improvement or enhancementhelp wantedOpen to be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions