Commit 3e262b9e authored by Sergei Lebedev's avatar Sergei Lebedev
Browse files

tf.errors.OpError and its subclasses are pickleable

The builtin BaseException class defines a generic __reduce__ method which
uses the args attribute, see BaseException_reduce in Objects/exceptions.c.
tf.errors.OpError keeps args empty and therefore cannot be pickled via
BaseException.__reduce__. This commit fixes  the issue by defining
OpError.__reduce__.
parent c73d4e56
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment