diff --git a/src/recipes/FuseMulAdd.cpp b/src/recipes/FuseMulAdd.cpp index 6582038e981bb58534d04ded57052f6a0f83e9a9..9a89f8af583fa8567f62ed7c8f42d160d80a1e99 100644 --- a/src/recipes/FuseMulAdd.cpp +++ b/src/recipes/FuseMulAdd.cpp @@ -85,8 +85,12 @@ void Aidge::fuseMulAdd(std::shared_ptr<Aidge::Node> matmulNode, std::shared_ptr< AIDGE_ASSERT(outSize, "Couldnt get output number of channels for FC operator."); // Instanciate FC - //std::shared_ptr<Node> fc = FC(dim[0], false, "Fc"); - std::shared_ptr<Node> fc = std::make_shared<Node>(std::make_shared<FC_Op>(outSize, bias ? false : true)); + std::string fcName = matmulNode->name(); + if (!addNode->name().empty()) { + fcName += "_" + addNode->name(); + } + + std::shared_ptr<Node> fc = std::make_shared<Node>(std::make_shared<FC_Op>(outSize, bias ? false : true), fcName); // Step 2 : Branch existing producers & create the others // link weights & bias