(self)
| 66 | assert dat.shape == () |
| 67 | |
| 68 | def test_data_float32(self): |
| 69 | a = Tensor([[1,2.5],[3,4]], dtype=dtypes.float32) |
| 70 | dat = a.data() |
| 71 | assert dat.format == "f" |
| 72 | assert dat[0, 1] == 2.5 |
| 73 | |
| 74 | @unittest.skip("requires python 3.12") |
| 75 | def test_data_float16(self): |