Skip to content
Snippets Groups Projects
Commit a2248696 authored by Maxence Naud's avatar Maxence Naud
Browse files

[Fix] function getParents() typo to getParent()

parent 5946998f
No related branches found
No related tags found
1 merge request!9Fuse bn
......@@ -56,13 +56,13 @@ void Aidge::fuseMulAdd(std::set<std::shared_ptr<Node>> nodes){
// Step 2 : Branch existing producers & create the others
// link weights & bias
if (matmul->getParents(1)==nullptr) {
matmul->getParents(0)->addChild(fc, 0, 1);
if (matmul->getParent(1)==nullptr) {
matmul->getParent(0)->addChild(fc, 0, 1);
printf("Matmul out[1] == nullptr !\n");
} else {
printf("Matmul out[1] != nullptr !\n");
if (matmul->getParents(0)!=nullptr)
matmul->getParents(0)->addChild(fc, 0, 0);
if (matmul->getParent(0)!=nullptr)
matmul->getParent(0)->addChild(fc, 0, 0);
matmul->input(1).first->addChild(fc, 0, 1);
}
(producer_add_bias.first)->addChild(fc,0,2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment