Skip to content

Commit 119e3da

Browse files
committed
different ranks in test
1 parent c894415 commit 119e3da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_backend.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,9 +2107,9 @@ def test_space_to_batchnd(self):
21072107
def test_isinf(self):
21082108
x_types = [np.float32, np.float64]
21092109
for x_type in x_types:
2110-
x_val1 = np.array([1.0, -2.0, 3.0, -4.0], dtype=x_type).reshape((2, 2))
2111-
x_val2 = np.array([np.inf, np.inf, np.inf, np.inf], dtype=x_type).reshape((1, 4))
2112-
x_val3 = np.array([1.0, np.inf, -3.0, np.inf, 5.0, np.inf, -7.0, np.inf, 9.0], dtype=x_type).reshape((3, 3))
2110+
x_val1 = np.array([1.0, -2.0, 3.0, -4.0], dtype=x_type)
2111+
x_val2 = np.array([np.inf, np.inf, np.inf, np.inf], dtype=x_type).reshape((2, 2))
2112+
x_val3 = np.array([1.0, np.inf, -3.0, np.inf, 5.0, np.inf, -7.0, np.inf], dtype=x_type).reshape((2, 2, 2))
21132113
for x_val in [x_val1, x_val2, x_val3]:
21142114
x = tf.placeholder(x_type, x_val.shape, name=_TFINPUT)
21152115
x_ = tf.is_inf(x)

0 commit comments

Comments
 (0)