Skip to content

Commit

Permalink
tensorflow tests: enable type promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmgray committed Oct 23, 2024
1 parent de0671f commit 1067d8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_tensor/test_optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
found_jax = importlib.util.find_spec("jax") is not None
found_tensorflow = importlib.util.find_spec("tensorflow") is not None

if found_tensorflow:
import tensorflow.experimental.numpy as tnp

tnp.experimental_enable_numpy_behavior()

jax_case = pytest.param(
"jax", marks=pytest.mark.skipif(not found_jax, reason="jax not installed")
)
Expand Down

0 comments on commit 1067d8c

Please sign in to comment.