MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / testDeviceFull

Method testDeviceFull

tensorflow/python/framework/ops_test.py:1474–1485  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 5

deviceMethod · 0.95
create_opMethod · 0.95
as_graph_defMethod · 0.95
GraphMethod · 0.45

Tested by

no test coverage detected