Skip to content

Make ModelOutput pickle-able#8989

Merged
LysandreJik merged 1 commit intomasterfrom
fix_8978
Dec 8, 2020
Merged

Make ModelOutput pickle-able#8989
LysandreJik merged 1 commit intomasterfrom
fix_8978

Conversation

@sgugger
Copy link
Copy Markdown
Collaborator

@sgugger sgugger commented Dec 8, 2020

What does this PR do?

To be pickle-able or deep-copyable, ModelOutputs need to have all fields with a default. This was already the case on the TF side, just doing it on the PT side as well.

Fixes #8978

@sgugger sgugger requested a review from LysandreJik December 8, 2020 16:24
Copy link
Copy Markdown
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deepcopy and pickling fails for modeling_outputs

2 participants