Peter Hawkins 5527966b27 [JAX] Deprecate .to_py() property on arrays. Implement __array__ instead.
.to_py() was something of an accidental export from the JAX array classes. There are other mechanisms to turn a JAX array into a NumPy array, including `np.asarray(x)` and `jax.device_get(x)`. Deprecate this mechanism because it is redundant.

PiperOrigin-RevId: 469984029
2022-08-25 07:28:27 -07:00
..
2022-08-18 11:39:07 -07:00
2022-08-18 10:50:50 -07:00
2022-08-18 11:39:07 -07:00
2022-08-04 12:25:03 -07:00
2022-03-08 09:37:33 -05:00
2022-08-18 11:39:07 -07:00
2022-08-22 13:57:31 -07:00
2022-08-22 13:57:31 -07:00