chex icon indicating copy to clipboard operation
chex copied to clipboard

Error with Pydantic

Open kaiwenw opened this issue 3 years ago • 0 comments

Hello! I'm interested in using pydantic's recursive constructor / asdict functionality, but jax.jit-ed functions give the following error:

Argument '_Pydantic_OptimConfig_93971134241088(.. SOMETHING HERE...)' of type <class 'pydantic.dataclasses._Pydantic_OptimConfig_93971134241088'> is not a valid JAX type.

kaiwenw avatar Jun 28 '21 19:06 kaiwenw