Skip to content

Commit 899dcba

Browse files
committed
black
1 parent d8f9a1d commit 899dcba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_backends.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,12 +1357,15 @@ def to_backend(z):
13571357
try:
13581358
if "torch" in name:
13591359
import torch
1360+
13601361
return torch.as_tensor(z)
13611362
if "jax" in name:
13621363
import jax.numpy as jnp
1364+
13631365
return jnp.asarray(z)
13641366
if "tf" in name or "tensorflow" in name:
13651367
import tensorflow as tf
1368+
13661369
return tf.convert_to_tensor(z)
13671370
except Exception:
13681371
pass
@@ -1390,4 +1393,4 @@ def to_backend(z):
13901393
yf = to_backend([2.0, 2.0, 2.0])
13911394
expectedf = np.floor_divide(np.array([7.9, 8.1, -3.5]), np.array([2.0, 2.0, 2.0]))
13921395
out = tc.backend.floor_divide(xf, yf)
1393-
np.testing.assert_array_equal(np.array(out), expectedf)
1396+
np.testing.assert_array_equal(np.array(out), expectedf)

0 commit comments

Comments
 (0)