(self)
| 356 | assert op.inputs[0].name == "T" |
| 357 | |
| 358 | def test_replace_as_consumer(self): |
| 359 | net = core.Net("name") |
| 360 | net.FC(["X", "W"], ["Y"]) |
| 361 | nn = ng.NNModule(net) |
| 362 | fc = nn.controlFlow[0] |
| 363 | test_op = nn.dataFlow.createNode(ng.NeuralNetOperator("TestOp")) |
| 364 | nn.replaceAsConsumer(fc, test_op) |
| 365 | nn.deleteNode(fc) |
| 366 | assert len(nn.controlFlow) == 1 |
| 367 | assert nn.controlFlow[0].name == "TestOp" |
| 368 | assert nn.controlFlow[0].inputs[0].name == "X" |
| 369 | assert nn.controlFlow[0].inputs[1].name == "W" |
| 370 | |
| 371 | def test_annotation_basic(self): |
| 372 | annot = ng.Annotation() |
nothing calls this directly
no test coverage detected