Skip to content

Flax dataclasses do not support new-style PRNGKeyArray in serialisation #4130

Open
@PhilipVinc

Description

@PhilipVinc

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: P1 - soonResponse within 5 business days. Resolution within 30 days. (Assignee required)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions