From 2549675637e40fe453867a26f03a3c0467831962 Mon Sep 17 00:00:00 2001 From: Jerome Hue <jerome.hue@cea.fr> Date: Wed, 19 Feb 2025 14:43:50 +0100 Subject: [PATCH] Cleanup files --- include/aidge/operator/Pop.hpp | 4 ++-- unit_tests/operator/Test_PopImpl.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/aidge/operator/Pop.hpp b/include/aidge/operator/Pop.hpp index 206fd04f4..2cf567329 100644 --- a/include/aidge/operator/Pop.hpp +++ b/include/aidge/operator/Pop.hpp @@ -88,7 +88,7 @@ public: void forward() override; /** - * @brief Executes the forward pass for the `Pop` operation. + * @brief Executes the backward pass for the `Pop` operation. */ void backward() override; }; @@ -99,7 +99,7 @@ public: */ enum class PopAttr { ForwardStep, // Tracks the current step in the forward pass - BackwardStep + BackwardStep // Tracks the current step in the backward pass }; /** diff --git a/unit_tests/operator/Test_PopImpl.cpp b/unit_tests/operator/Test_PopImpl.cpp index 389ed0a57..2f639a139 100644 --- a/unit_tests/operator/Test_PopImpl.cpp +++ b/unit_tests/operator/Test_PopImpl.cpp @@ -19,7 +19,7 @@ using namespace Aidge; -TEST_CASE("[cpu/operator] Pop(forward)", "[Pop][CPU]") { +TEST_CASE("[cpu/operator] Pop", "[Pop][CPU]") { std::shared_ptr<Tensor> pop1 = std::make_shared<Tensor>(Array1D<int,3>{{4,5,6}}); std::shared_ptr<Tensor> pop2 = std::make_shared<Tensor>(Array1D<int,3>{{1,2,3}}); std::shared_ptr<Tensor> input = std::make_shared<Tensor>(Array2D<int,2,3>{{{1,2,3}, {4,5,6}}}); @@ -35,7 +35,6 @@ TEST_CASE("[cpu/operator] Pop(forward)", "[Pop][CPU]") { REQUIRE(*op->getOutput(0) == *pop2); REQUIRE_NOTHROW(pop->forward()); REQUIRE(*op->getOutput(0) == *pop1); - // Backward -- GitLab