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

Method test_delete_node

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

Source from the content-addressed store, hash-verified

327 assert node.isTensor()
328
329 def test_delete_node(self):
330 nn = ng.NNModule()
331 node = nn.dataFlow.createNode(ng.NeuralNetOperator("TestOp"))
332 nn.dataFlow.deleteNode(node)
333 assert len(nn.dataFlow.getMutableNodes()) == 0
334
335 def test_replace_producer(self):
336 net = core.Net("name")

Callers

nothing calls this directly

Calls 2

createNodeMethod · 0.80
deleteNodeMethod · 0.80

Tested by

no test coverage detected