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

Method test_simple

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

Source from the content-addressed store, hash-verified

14
15class TestBindings(test_util.TestCase):
16 def test_simple(self):
17 nn = ng.NNModule()
18 dfg = nn.dataFlow
19 dfg.createNode(ng.NeuralNetData("X"))
20 dfg.createNode(ng.NeuralNetOperator("FC"))
21 assert len(nn.dataFlow.getMutableNodes()) == 2
22
23 def test_core_net_simple(self):
24 net = core.Net("name")

Callers

nothing calls this directly

Calls 1

createNodeMethod · 0.80

Tested by

no test coverage detected