Skip to content

load model with pytorch0.4 with model saved with pytorch0.3 #10120

@xiaopuLee

Description

@xiaopuLee

When I load the weight saved with pytorch0.3 with pytorch 0.4.
I met this exceptions.

RuntimeError: storages don't support slicing

import torch
import sys
cp = torch.load(<model_saved_from_pytorch_0.3>, map_location=lambda storage, loc: storage)

how can I fix this?
please help me.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions