(self)
| 96 | # *** symbolic (to allow less recompilation) *** |
| 97 | |
| 98 | def test_symbolic(self): |
| 99 | i = Variable('i', 1, 10) |
| 100 | ones = Tensor.ones(10).contiguous() |
| 101 | for s in [2,5]: |
| 102 | ret = ones[:i.bind(s)] + 1 |
| 103 | self.assertListEqual(ret.contiguous()[:s].tolist(), [2.0]*s) |
| 104 | |
| 105 | def test_symbolic_reduce(self): |
| 106 | i = Variable('i', 1, 10) |
nothing calls this directly
no test coverage detected