google-deepmind / google-deepmind/chex
Dill pickling chex.dataclass blows the stack
Open
- Dominant language
- Python
- Stars
- 957
- Forks
- 74
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 1
Description
Chex dataclasses can be pickled with `pickle`, but not with `dill`:
```python
import dill
import pickle
import chex
@chex.dataclass
class Point:
x: float
y: float
# Works fine.
pickle.dumps(Point(x=1.0, y=2.0))
# Generates `RecursionError: maximum recursion depth exceeded`
dill.dumps(Point(x=1.0, y=2.0))
```
Contributor guide
Assessment
This issue has not been assessed yet.