google / google/flax

Flax dataclasses do not support new-style PRNGKeyArray in serialisation

Open
#4,130 0 comments 0 reactions 0 assignees View on GitHub
Priority: P1 - soon
Dominant language
Jupyter Notebook
Stars
7.3k
Forks
833
Avg merge
5h 11m
Merged PRs (30d)
5

Description

New-style `PRNGKeyArray` cannot be serialised by flax.
This is inconveniente as one has to manually override the serailization/deserialization methods automatically generated by flax's data class to wrap/unwrap those fields..

Would it be possible to support natively PRNGKeyArray (which are technically leafs) within flax.serialization?

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.