(self)
| 625 | np.testing.assert_equal(arg0, arg0_buffer.to_py()) |
| 626 | |
| 627 | def testDevice(self): |
| 628 | x = np.arange(8) |
| 629 | for device in xla_client.get_local_backend().local_devices(): |
| 630 | buf = xla_client.Buffer.from_pyval(x, device=device) |
| 631 | self.assertEqual(buf.device(), device) |
| 632 | np.testing.assert_equal(x, buf.to_py()) |
| 633 | |
| 634 | |
| 635 | class SingleOpTest(ComputationTest): |
nothing calls this directly
no test coverage detected