Skip to content

Support old-style torch.load and torch.save? #190

@adamlerer

Description

@adamlerer

Is there a reason we don't support torch.load(path) in addition to with open(path, 'rb') as f: torch.load(f)? I know that the the latter matches pickle, but the former matches torch, and is shorter, and avoids errors in serialize/deserialize with non-matching binary flags.

Metadata

Metadata

Assignees

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