You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a known bug in Python 3.6 when pickling the genric types python/typing#511
Workaround
The easiest way to get around this is to upgrade to 3.7, which fixes this problem here python/cpython#6216
Action needed.
However, we may consider providing workarounds in Texar. It is also suggested to add unit tests on serialization for affected classes including the metrics class.
The text was updated successfully, but these errors were encountered:
* Change executor test
Pickling certain metrics while specifying input type as generic type
parameter would result in a failure in Python 3.6. Previous tests didn't
cover this case.
* Fix#318: cannot pickle metrics in Python 3.6
Worked around this limitation by using a dummy `Generic` in Python 3.6
and below.
* Fix stupid linting issues
Description
Users may encounter the following error when trying to pickle the objects with generic types, such as Texar metrics (https://github.com/asyml/texar-pytorch/blob/master/texar/torch/evals/metrics.py), as shown in the following stack trace:
This is a known bug in Python 3.6 when pickling the genric types python/typing#511
Workaround
The easiest way to get around this is to upgrade to 3.7, which fixes this problem here python/cpython#6216
Action needed.
However, we may consider providing workarounds in Texar. It is also suggested to add unit tests on serialization for affected classes including the metrics class.
The text was updated successfully, but these errors were encountered: