(self)
| 1485 | """, gd) |
| 1486 | |
| 1487 | def testNesting(self): |
| 1488 | g = ops.Graph() |
| 1489 | with g.device("/job:worker/replica:2"): |
| 1490 | g.create_op("FloatOutput", [], [dtypes.float32]) |
| 1491 | with g.device("/job:worker/replica:3/task:0"): |
| 1492 | g.create_op("FloatOutput", [], [dtypes.float32]) |
| 1493 | g.create_op("FloatOutput", [], [dtypes.float32]) |
| 1494 | gd = g.as_graph_def() |
| 1495 | self.assertProtoEqualsVersion(""" |
| 1496 | node { name: "FloatOutput" op: "FloatOutput" |
| 1497 | device: "/job:worker/replica:2" } |
| 1498 | node { name: "FloatOutput_1" op: "FloatOutput" |
| 1499 | device: "/job:worker/replica:3/task:0" } |
| 1500 | node { name: "FloatOutput_2" op: "FloatOutput" |
| 1501 | device: "/job:worker/replica:2" } |
| 1502 | """, gd) |
| 1503 | |
| 1504 | def testNestingString(self): |
| 1505 | g = ops.Graph() |
nothing calls this directly
no test coverage detected