Skip to content

Support unpickle py2 NetDef object in py3#26147

Closed
xw285cornell wants to merge 1 commit intopytorch:masterfrom
xw285cornell:export-D17305677
Closed

Support unpickle py2 NetDef object in py3#26147
xw285cornell wants to merge 1 commit intopytorch:masterfrom
xw285cornell:export-D17305677

Conversation

@xw285cornell
Copy link
Copy Markdown
Contributor

Summary: We may try to unpickle a byte string in py3 that was pickled from py2. Therefore we need to add encoding latin1.

Reviewed By: kennyhorror

Differential Revision: D17305677

@pytorchbot pytorchbot added caffe2 module: pybind Related to our Python bindings / interactions with other Python libraries labels Sep 13, 2019
@xw285cornell
Copy link
Copy Markdown
Contributor Author

xw285cornell commented Sep 16, 2019

@pytorchbot retest this please

Summary:
Pull Request resolved: pytorch#26147

We may try to unpickle a byte string in py3 that was pickled from py2. Therefore we need to add encoding latin1.

Reviewed By: kennyhorror

Differential Revision: D17305677

fbshipit-source-id: 3116f3098d1d8fe917d8a17f70fbb57579ec66ae
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in f341291.

laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#26147

We may try to unpickle a byte string in py3 that was pickled from py2. Therefore we need to add encoding latin1.

Reviewed By: kennyhorror

Differential Revision: D17305677

fbshipit-source-id: c0c8a51909629a65eb72bb81cccfbabaee9f8d01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

caffe2 Merged module: pybind Related to our Python bindings / interactions with other Python libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants