Getting Started
Tutorials
Reference Documentation
Extending NetKet
API documentation
Developer Documentation
cast x the types of target
x (Any) – a pytree with arrays as leaves
Any
target (Any) – a pytree with the same treedef as x where only the dtypes of the leaves are accessed
A pytree where each leaf of x is cast to the dtype of the corresponding leaf in target. The imaginary part of complex leaves which are cast to real is discarded.