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

Method testInvalidNames

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

Source from the content-addressed store, hash-verified

618 op3.node_def)
619
620 def testInvalidNames(self):
621 g = ops.Graph()
622 with self.assertRaises(ValueError):
623 ops.Operation(ops._NodeDef("op", ""), g)
624 with self.assertRaises(ValueError):
625 ops.Operation(ops._NodeDef("op", "_invalid"), g)
626 with self.assertRaises(ValueError):
627 ops.Operation(ops._NodeDef("op", "-invalid"), g)
628 with self.assertRaises(ValueError):
629 ops.Operation(ops._NodeDef("op", "/invalid"), g)
630 with self.assertRaises(ValueError):
631 ops.Operation(ops._NodeDef("op", "invalid:0"), g)
632
633 @test_util.run_deprecated_v1
634 def testNoShapeFunction(self):

Callers

nothing calls this directly

Calls 2

GraphMethod · 0.45
OperationMethod · 0.45

Tested by

no test coverage detected