()
| 310 | |
| 311 | |
| 312 | def test_tensor_cpu_from_numpy(): |
| 313 | def create_tmp(idx): |
| 314 | a = np.full((4, 4), idx) |
| 315 | return tensors.TensorCPU(a, "") |
| 316 | |
| 317 | out = [create_tmp(i) for i in range(4)] |
| 318 | for i, t in enumerate(out): |
| 319 | np.testing.assert_array_equal(np.array(t), np.full((4, 4), i)) |
| 320 | |
| 321 | |
| 322 | def test_tensor_list_cpu_from_numpy(): |
nothing calls this directly
no test coverage detected