Serialization supports pathlib.Path object for the input argument (#18562)
authorHyungjoo Andrew Cho <phelahab@gmail.com>
Fri, 29 Mar 2019 03:49:43 +0000 (20:49 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 29 Mar 2019 04:01:15 +0000 (21:01 -0700)
commit37529161326a001e8398bc5b4e75791db94c04b0
treeb1fc073b0686149ff213b8d08ca04da787fe6c3a
parent12abc8a99a5fc60603b3aecf5faa37600ad4fff6
Serialization supports pathlib.Path object for the input argument (#18562)

Summary:
This will allow pathlib.Path object to the torch.load as an input argument.
Fixes #16607
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18562

Differential Revision: D14668255

Pulled By: soumith

fbshipit-source-id: 0ae4f7c210918582912f2d1ef2a98f1ab288c540
torch/serialization.py