Make DeviceValue and subclasses weakref friendly
Make DeviceValue and subclasses weakref friendly

https://stackoverflow.com/questions/19526340/weakref-and-slots
google/jax,google/jax,tensorflow/probability,google/jax,tensorflow/probability,google/jax