-
Dear List: It is a basic question about precision, and many similar queries existed in the forum, and sorry for similar query; When I ran the following code in default precision( f32) in TPU-V2 it works fine:
But when, Traceback (most recent call last): The stack trace below excludes JAX-internal frames. The above exception was the direct cause of the following exception: Traceback (most recent call last): it clearly indicates, "...Only F32 and C64 types are implemented in LuDecomposition " (perhaps only for TPUs and not for GPUs/CPUs, I guess and I also think (LUdecomp) is used in jnp's inv function. Is any solutions existed to calculate inverse of a matrix in Jax with f64 precision (that doesn't use f32 bound LUdecomp etc.)? Or any other GIT libraries are there to do this (especially for TPUs) with this precision? Thanks in advance Kiran |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi - thanks for the question! Unlike CPUs and some GPUs, TPUs have very little support for 64-bit operations, and typically you'll have the best experience on TPUs if you leave |
Beta Was this translation helpful? Give feedback.
-
Thanks Jake! I |
Beta Was this translation helpful? Give feedback.
Hi - thanks for the question! Unlike CPUs and some GPUs, TPUs have very little support for 64-bit operations, and typically you'll have the best experience on TPUs if you leave
jax_enable_x64
at its default setting offalse
. I don't know of any workarounds for this, because it's a matter of hardware capabilities, not a matter of missing implementations.