New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[installation] set_seed
not an attribute
#625
Comments
The reason of this error is because the old version of jaxlib Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import jax
jax.devi>>> jax.devices()
[GpuDevice(id=0, process_index=0)]
>>> jax.devices()[0]
GpuDevice(id=0, process_index=0)
>>> dir(jax.devices()[0])
['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'client', 'device_kind', 'device_vendor', 'host_id', 'id', 'live_buffers', 'platform', 'process_index', 'task_id', 'transfer_from_outfeed', 'transfer_to_infeed'] The solution is to update the jaxlib Python 3.8.12 | packaged by conda-forge | (default, Oct 12 2021, 21:59:51)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import jax
<frozen importlib._bootstrap>:219: RuntimeWarning: scipy._lib.messagestream.MessageStream size changed, may indicate binary incompatibility. Expected 56 from C header, got 64 from PyObject
>>> jax.devices()
[GpuDevice(id=0, process_index=0), GpuDevice(id=1, process_index=0), GpuDevice(id=2, process_index=0), GpuDevice(id=3, process_index=0)]
>>> jax.devices()[0]
GpuDevice(id=0, process_index=0)
>>> dir(jax.devices()[0])
['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'available_memory', 'clear_memory_stats', 'client', 'device_kind', 'device_vendor', 'host_id', 'id', 'live_buffers', 'max_memory_allocated', 'memory_allocated', 'platform', 'process_index', 'set_seed', 'synchronize_all_activity', 'task_id', 'transfer_from_outfeed', 'transfer_to_infeed'] |
more trouble shooting: see #496 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
get the error of the following
The text was updated successfully, but these errors were encountered: