| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,7 @@ class TestTensorflowBigQuery(unittest.TestCase): | |||
| 9 | 9 | # Some versions of bigquery crashed tensorflow, add this test to make sure that doesn't happen. | |
| 10 | 10 | # python -c "from google.cloud import bigquery; import tensorflow". This flow is common because bigquery is imported in kaggle_gcp.py | |
| 11 | 11 | # which is loaded at startup. | |
| 12 | - def test_addition(self): | ||
| 12 | + def test_matrix_addition(self): | ||
| 13 | 13 | result = tf.add([1, 2], [3, 4]) | |
| 14 | 14 | self.assertEqual([2], result.shape) | |
| 15 | + self.assertListEqual([4, 6], [x for x in result.numpy()]) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments