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

Method test_genericGraph

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

Source from the content-addressed store, hash-verified

249 assert nn.controlFlow[0].name == "new_op"
250
251 def test_genericGraph(self):
252 g = ng.Graph()
253 n1 = g.createNode("hello1")
254 n2 = g.createNode("hello2")
255 e = g.createEdge(n1, n2)
256 ng.render(g)
257
258 def test_createUniqueDataNode(self):
259 net = core.Net("name")

Callers

nothing calls this directly

Calls 3

createNodeMethod · 0.80
createEdgeMethod · 0.80
renderMethod · 0.45

Tested by

no test coverage detected