(self)
| 1446 | class DeviceTest(test_util.TensorFlowTestCase): |
| 1447 | |
| 1448 | def testNoDevice(self): |
| 1449 | g = ops.Graph() |
| 1450 | op = g.create_op("FloatOutput", [], [dtypes.float32]) |
| 1451 | self.assertDeviceEqual(None, op.device) |
| 1452 | gd = g.as_graph_def() |
| 1453 | self.assertProtoEqualsVersion(""" |
| 1454 | node { name: "FloatOutput" op: "FloatOutput" } |
| 1455 | """, gd) |
| 1456 | |
| 1457 | def testEagerBackingDevice(self): |
| 1458 | with context.eager_mode(): |
nothing calls this directly
no test coverage detected