google / deluca

Performant, differentiable reinforcement learning
https://deluca.fyi
Apache License 2.0
121 stars 17 forks source link

[JAX] Avoid private implementation detail _ScalarMeta. #65

Open copybara-service[bot] opened 2 years ago

copybara-service[bot] commented 2 years ago

[JAX] Avoid private implementation detail _ScalarMeta.

The closest public approximation to type(jnp.float32) is type[Any]. Nothing is ever actually an instance of one of these types, either (they build DeviceArrays if instantiated.)