jax

Rewriting for loop with jax.lax.scan

Rewriting for loop with jax.lax.scan Question: I’m having troubles understanding the JAX documentation. Can somebody give me a hint on how to rewrite simple code like this with jax.lax.scan? numbers = numpy.array( [ [3.0, 14.0], [15.0, -7.0], [16.0, -11.0] ]) evenNumbers = 0 for row in numbers: for n in row: if n % 2 …

Total answers: 1

ERROR: No matching distribution found for jaxlib==0.1.67

ERROR: No matching distribution found for jaxlib==0.1.67 Question: I need jaxlib==0.1.67 for a project I’m working on, but I can’t downgrade. At the moment I have jaxlib==0.1.75 and my program keeps failing due to an error I can’t find a solution to either. I compared all versions of the important packages to another machines versions …

Total answers: 2

Is there a module to convert a tensorflow NN to Jax?

Is there a module to convert a tensorflow NN to Jax? Question: There is a libary to convert Jax functions to Tensorflow functions. Is there a similar library to convert TensorFlow functions to Jax functions? Asked By: Tom McLean || Source Answers: No, there is no library supported by the JAX team to convert tensorflow …

Total answers: 3

Turn a tf.data.Dataset to a jax.numpy iterator

Turn a tf.data.Dataset to a jax.numpy iterator Question: I am interested about training a neural network using JAX. I had a look on tf.data.Dataset, but it provides exclusively tf tensors. I looked for a way to change the dataset into JAX numpy array and I found a lot of implementations that use Dataset.as_numpy_generator() to turn …

Total answers: 2

jax woes (on an NVDIA DGX box, no less)

jax woes (on an NVDIA DGX box, no less) Question: I am trying to run jax on an nvidia dgx box, but am failing miserably, thus: >>> import jax >>> import jax.numpy as jnp >>> x = jnp.arange(10) 2021-10-25 13:00:05.863667: W external/org_tensorflow/tensorflow/stream_executor/gpu/asm_compiler.cc:80] Couldn’t get ptxas version string: INTERNAL: Couldn’t invoke ptxas –version 2021-10-25 13:00:05.864713: F …

Total answers: 2