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

Method testAvailableOps

tensorflow/python/grappler/cluster_test.py:133–138  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131 self.assertTrue(step_stats.dev_stats)
132
133 def testAvailableOps(self):
134 with cluster.Provision() as gcluster:
135 op_names = gcluster.ListAvailableOps()
136 self.assertTrue('Add' in op_names)
137 self.assertTrue('MatMul' in op_names)
138 self.assertEqual(op_names, sorted(op_names))
139
140 def testSupportDevices(self):
141 with ops.Graph().as_default() as g:

Callers

nothing calls this directly

Calls 2

ListAvailableOpsMethod · 0.80
ProvisionMethod · 0.45

Tested by

no test coverage detected