MCPcopy Create free account
hub / github.com/pytorch/pytorch / test_invalid_node

Method test_invalid_node

caffe2/python/nomnigraph_test.py:81–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 assert node.getOperator().getName() == "Ceil"
80
81 def test_invalid_node(self):
82 nn = ng.NNModule()
83 dfg = nn.dataFlow
84 with self.assertRaises(Exception):
85 dfg.createNode(7)
86
87 def test_edges_simple(self):
88 nn = ng.NNModule()

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.80
createNodeMethod · 0.80

Tested by

no test coverage detected