mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 11:56:07 +00:00
Catch ImportError when importing tf
instead of a broad exception catch. If not, this leads to weird errors in the other tests down the line.
PiperOrigin-RevId: 510206006
This commit is contained in:
parent
54269c1145
commit
34324f80e9
@ -37,7 +37,7 @@ try:
|
||||
import tensorflow as tf
|
||||
tf_version = tuple(
|
||||
int(x) for x in tf.version.VERSION.split("-")[0].split("."))
|
||||
except:
|
||||
except ImportError:
|
||||
tf = None
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user