(self)
| 21 | self.assertListEqual(out.tolist(), [3.0, 7.0]) |
| 22 | |
| 23 | def test_plus(self): |
| 24 | out = Tensor([1.,2,3]) + Tensor([4.,5,6]) |
| 25 | self.assertListEqual(out.tolist(), [5.0, 7.0, 9.0]) |
| 26 | |
| 27 | def test_plus_int(self): |
| 28 | out = Tensor([1,2,3], dtype=dtypes.int) + Tensor([4,5,6], dtype=dtypes.int) |