aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/kernel_tests/sparse_matmul_op_test.py
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <nobody@tensorflow.org>2016-05-13 08:22:21 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-05-13 09:32:13 -0700
commitd52e296bc4adc79663020710aa2b5ae3f61d686e (patch)
tree145130aedfdd4d92750caa99e626b1322f442678 /tensorflow/python/kernel_tests/sparse_matmul_op_test.py
parent228709e2e5bfee4b15b72d23479848fe1ee04152 (diff)
Reduce number of sparse matmul tests
Change: 122265359
Diffstat (limited to 'tensorflow/python/kernel_tests/sparse_matmul_op_test.py')
-rw-r--r--tensorflow/python/kernel_tests/sparse_matmul_op_test.py23
1 files changed, 11 insertions, 12 deletions
diff --git a/tensorflow/python/kernel_tests/sparse_matmul_op_test.py b/tensorflow/python/kernel_tests/sparse_matmul_op_test.py
index 6142bdab9c..dc9ebc6ecd 100644
--- a/tensorflow/python/kernel_tests/sparse_matmul_op_test.py
+++ b/tensorflow/python/kernel_tests/sparse_matmul_op_test.py
@@ -80,18 +80,17 @@ class SparseMatMulTest(tf.test.TestCase):
# Tests random sized matrices.
def testRandom(self):
- for _ in range(10):
- for tr_a in [True, False]:
- for tr_b in [True, False]:
- for sp_a in [True, False]:
- for sp_b in [True, False]:
- for x_dtype in (tf.float32, tf.bfloat16):
- for y_dtype in (tf.float32, tf.bfloat16):
- n, k, m = np.random.randint(1, 100, size=3)
- x = RandMatrix(n, k, tr_a)
- y = RandMatrix(k, m, tr_b)
- self._testCpuMatmul(x, y, tr_a, tr_b, sp_a, sp_b,
- x_dtype=x_dtype, y_dtype=y_dtype)
+ for tr_a in [True, False]:
+ for tr_b in [True, False]:
+ for sp_a in [True, False]:
+ for sp_b in [True, False]:
+ for x_dtype in (tf.float32, tf.bfloat16):
+ for y_dtype in (tf.float32, tf.bfloat16):
+ n, k, m = np.random.randint(1, 100, size=3)
+ x = RandMatrix(n, k, tr_a)
+ y = RandMatrix(k, m, tr_b)
+ self._testCpuMatmul(x, y, tr_a, tr_b, sp_a, sp_b,
+ x_dtype=x_dtype, y_dtype=y_dtype)
class MatMulGradientTest(tf.test.TestCase):