Skip to content

Commit 8a07811

Browse files
author
DarrenZhang01
committed
Remove the tests for _compose_output_rep since it is a private method.
1 parent 2e2c614 commit 8a07811

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

trax/tf_numpy/extensions/extensions_test.py

-16
Original file line numberDiff line numberDiff line change
@@ -371,22 +371,6 @@ def f(a):
371371
tf.convert_to_tensor(value=1), tf.convert_to_tensor(value=2))
372372

373373

374-
@parameterized.parameters(
375-
{"lhs": ['i', 'j'], "rhs": ['j', 'k'], "dims": (((1,), (0,)), ((), ())),
376-
"result": "ik"},
377-
{"lhs": ['a', 'i', 'j'], "rhs": ['a', 'j', 'k'], "dims": \
378-
(((2,), (1,)), ((0,), (0,))), "result": "aik"},
379-
{"lhs": ['a', 'b', 'i', 'j'], "rhs": ['a', 'b', 'j', 'k'], "dims": \
380-
(((3,), (2,)), ((0, 1,), (0, 1,))), "result": "abik"},
381-
)
382-
def test_compose_output_rep(self, lhs, rhs, dims, result):
383-
contraction, batch = dims
384-
lhs_contraction, rhs_contraction = contraction
385-
lhs_batch, rhs_batch = batch
386-
output_rep = compose_output_rep(lhs, rhs, lhs_contraction, rhs_contraction,
387-
lhs_batch, rhs_batch)
388-
self.assertEqual(output_rep, result)
389-
390374
@parameterized.parameters(
391375
{"lhs_np": np.ones((5, 3)), "rhs_np": np.ones((3, 2)),
392376
"dims": (((1,), (0,)), ((), ()))},

0 commit comments

Comments
 (0)