(self)
| 1472 | """, gd) |
| 1473 | |
| 1474 | def testDeviceFull(self): |
| 1475 | g = ops.Graph() |
| 1476 | with g.device( |
| 1477 | pydev.DeviceSpec( |
| 1478 | job="worker", replica=2, task=0, device_type="CPU", |
| 1479 | device_index=3)): |
| 1480 | g.create_op("FloatOutput", [], [dtypes.float32]) |
| 1481 | gd = g.as_graph_def() |
| 1482 | self.assertProtoEqualsVersion(""" |
| 1483 | node { name: "FloatOutput" op: "FloatOutput" |
| 1484 | device: "/job:worker/replica:2/task:0/device:CPU:3" } |
| 1485 | """, gd) |
| 1486 | |
| 1487 | def testNesting(self): |
| 1488 | g = ops.Graph() |
nothing calls this directly
no test coverage detected