From 3fa056fe7d667d5250012ebe2cc023fc78daaea8 Mon Sep 17 00:00:00 2001 From: abh2k <41710346+abh2k@users.noreply.github.com> Date: Wed, 21 Jul 2021 20:50:48 +0530 Subject: [PATCH] Update ann_layer_test.cpp --- src/mlpack/tests/ann_layer_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mlpack/tests/ann_layer_test.cpp b/src/mlpack/tests/ann_layer_test.cpp index a4e1eba922..7e7bb91a6f 100644 --- a/src/mlpack/tests/ann_layer_test.cpp +++ b/src/mlpack/tests/ann_layer_test.cpp @@ -2156,8 +2156,10 @@ TEST_CASE("SimpleNearestInterpolationLayerTest", "[ANNLayerTest]") input1.reshape(6, 1); NearestInterpolation<> layer1(inRowSize, inColSize, outRowSize, outColSize, depth); + layer1.Forward(input1, output1); layer1.Backward(output1, output1, unzoomedOutput1); + REQUIRE(arma::accu(output1) - 1317.00 == Approx(0.0).margin(1e-05)); REQUIRE(arma::accu(unzoomedOutput1) - 1317.00 == Approx(0.0).margin(1e-05));