From 132e62892de91c1dec2ffe1123a106bba0ffd822 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Sat, 19 Aug 2017 16:55:09 +0200 Subject: Implemented proper im2col reference function and completd tests --- test/correctness/testblas.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test/correctness/testblas.hpp') diff --git a/test/correctness/testblas.hpp b/test/correctness/testblas.hpp index 1c0cf9e3..4e02fd28 100644 --- a/test/correctness/testblas.hpp +++ b/test/correctness/testblas.hpp @@ -57,6 +57,7 @@ class TestBlas: public Tester { static const std::vector kMatrixVectorDims; static const std::vector kBandSizes; static const std::vector kPadSizes; + static const std::vector kDilationSizes; static const std::vector kKernelSizes; static const std::vector kBatchCounts; const std::vector kOffsets; @@ -132,7 +133,8 @@ template const std::vector TestBlas::kMatr template const std::vector TestBlas::kMatrixVectorDims = { 61, 256 }; template const std::vector TestBlas::kBandSizes = { 4, 19 }; template const std::vector TestBlas::kBatchCounts = { 1, 3 }; -template const std::vector TestBlas::kPadSizes = { 0 }; +template const std::vector TestBlas::kPadSizes = { 0, 1 }; +template const std::vector TestBlas::kDilationSizes = { 1, 2 }; template const std::vector TestBlas::kKernelSizes = { 1, 3 }; // Test settings for the invalid tests @@ -282,7 +284,7 @@ size_t RunTests(int argc, char *argv[], const bool silent, const std::string &na if (option == kArgImaxOffset) { imax_offsets = tester.kOffsets; } if (option == kArgAlpha) { alphas = tester.kAlphaValues; } if (option == kArgBeta) { betas = tester.kBetaValues; } - if (option == kArgChannels) { channelss = tester.kMatrixDims; } + if (option == kArgChannels) { channelss = tester.kKernelSizes; } if (option == kArgHeight) { heights = tester.kMatrixDims; } if (option == kArgWidth) { widths = tester.kMatrixDims; } if (option == kArgKernelH) { kernel_hs = tester.kKernelSizes; } @@ -291,8 +293,8 @@ size_t RunTests(int argc, char *argv[], const bool silent, const std::string &na if (option == kArgPadW) { pad_ws = tester.kPadSizes; } if (option == kArgStrideH) { stride_hs = tester.kKernelSizes; } if (option == kArgStrideW) { stride_ws = tester.kKernelSizes; } - if (option == kArgDilationH) { dilation_hs = tester.kKernelSizes; } - if (option == kArgDilationW) { dilation_ws = tester.kKernelSizes; } + if (option == kArgDilationH) { dilation_hs = tester.kDilationSizes; } + if (option == kArgDilationW) { dilation_ws = tester.kDilationSizes; } if (option == kArgBatchCount) { batch_counts = tester.kBatchCounts; } if (option == kArgXOffset) { x_sizes = tester.kVecSizes; } -- cgit v1.2.3