diff --git a/unit_tests/operator/Test_AddImpl.cpp b/unit_tests/operator/Test_AddImpl.cpp index 720c4ca2aa59ec3c265cc416871fa76c83dfc7fe..bff9629be152163b2aa92bdc9d0c3029d7987b9b 100644 --- a/unit_tests/operator/Test_AddImpl.cpp +++ b/unit_tests/operator/Test_AddImpl.cpp @@ -100,7 +100,7 @@ TEST_CASE("[cpu/operator] Add(forward)", "[Add][CPU]") { }); // std::shared_ptr<Tensor> input_2 = std::make_shared<Tensor>(Array1D<int,2> {{100,200}}); - std::shared_ptr<Tensor> expectedOutput = std::make_shared<Tensor>(Array4D<int,3,3,3,2> { + Tensor expectedOutput = Array4D<int,3,3,3,2> { { // { // {{ 120, 222},{ 124, 226},{ 128, 230}}, // @@ -118,7 +118,7 @@ TEST_CASE("[cpu/operator] Add(forward)", "[Add][CPU]") { {{ 144, 246},{ 148, 250},{152, 254}} // } // } // - }); // + }; // std::shared_ptr<Node> myAdd_0 = Add(); std::shared_ptr<Node> myAdd_1 = Add(); @@ -135,8 +135,8 @@ TEST_CASE("[cpu/operator] Add(forward)", "[Add][CPU]") { op_1->setBackend("cpu"); myAdd_0->forward(); myAdd_1->forward(); - op_1->getOutput(0)->print(); - expectedOutput->print(); - REQUIRE(*op_1->getOutput(0) == *expectedOutput); + Log::info("Add_1 Tensor:\n{}", *(op_1->getOutput(0))); + Log::info("Expected Add_1 Tensor:\n{}", expectedOutput); + REQUIRE(*op_1->getOutput(0) == expectedOutput); } } \ No newline at end of file