diff --git a/unit_tests/operator/Test_AddImpl.cpp b/unit_tests/operator/Test_AddImpl.cpp index e24d7ac6bd97586ebdeddce5ccb75807ddf530f0..18d98d169ddcb74310c5153d7c2c95103c395bb7 100644 --- a/unit_tests/operator/Test_AddImpl.cpp +++ b/unit_tests/operator/Test_AddImpl.cpp @@ -19,25 +19,25 @@ using namespace Aidge; TEST_CASE("[cpu/operator] Add(forward)") { - std::shared_ptr<Tensor> input1 = std::make_shared<Tensor>(Array4D<int,3,3,3,2> { - { - { - {{20, 47},{21, 48},{22, 49}}, - {{23, 50},{24, 51},{25, 52}}, - {{26, 53},{27, 54},{28, 55}} - }, - { - {{29, 56},{30, 57},{31, 58}}, - {{32, 59},{33, 60},{34, 61}}, - {{35, 62},{36, 63},{37, 64}} - }, - { - {{38, 65},{39, 66},{40, 67}}, - {{41, 68},{42, 69},{43, 70}}, - {{44, 71},{45, 72},{46, 73}} - } - } - }); + std::shared_ptr<Tensor> input1 = std::make_shared<Tensor>(Array4D<int,3,3,3,2> { + { // + { // + {{20, 47},{21, 48},{22, 49}}, // + {{23, 50},{24, 51},{25, 52}}, // + {{26, 53},{27, 54},{28, 55}} // + }, // + { // + {{29, 56},{30, 57},{31, 58}}, // + {{32, 59},{33, 60},{34, 61}}, // + {{35, 62},{36, 63},{37, 64}} // + }, // + { // + {{38, 65},{39, 66},{40, 67}}, // + {{41, 68},{42, 69},{43, 70}}, // + {{44, 71},{45, 72},{46, 73}} // + } // + } // + }); // SECTION("One input") { std::shared_ptr<Node> myAdd = Add<1>(); @@ -51,7 +51,7 @@ TEST_CASE("[cpu/operator] Add(forward)") { } SECTION("Two inputs") { - std::shared_ptr<Tensor> expectedOutput = std::make_shared<Tensor>(Array4D<int,3,3,3,2> { + std::shared_ptr<Tensor> expectedOutput = std::make_shared<Tensor>(Array4D<int,3,3,3,2> { { { {{40, 94},{42, 96},{44, 98}}, @@ -81,9 +81,9 @@ TEST_CASE("[cpu/operator] Add(forward)") { REQUIRE(*std::static_pointer_cast<Tensor>(myAdd->getOperator()->getOutput(0)) == *expectedOutput); } - + SECTION("Three inputs") { - std::shared_ptr<Tensor> expectedOutput = std::make_shared<Tensor>(Array4D<int,3,3,3,2> { + std::shared_ptr<Tensor> expectedOutput = std::make_shared<Tensor>(Array4D<int,3,3,3,2> { { { {{ 60, 141},{ 63, 144},{ 66, 147}},