google-deepmind / google-deepmind/chex

Dill pickling chex.dataclass blows the stack

Open
#188 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.