diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-19 21:09:24 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-19 21:09:24 +0100 |
commit | 5467c0cac55b02bda69057fe0a130379934b8edb (patch) | |
tree | 603886e444d95cd4c2ca1ee5f412d076a6fe2d30 /test/routines/levelx/xim2col.hpp | |
parent | da76d7ab81555452a1049eb1a6d130073427067d (diff) |
Fixed a variety of warnings and an error for MSVC2013 compilation
Diffstat (limited to 'test/routines/levelx/xim2col.hpp')
-rw-r--r-- | test/routines/levelx/xim2col.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/routines/levelx/xim2col.hpp b/test/routines/levelx/xim2col.hpp index ebffe85e..abd6af86 100644 --- a/test/routines/levelx/xim2col.hpp +++ b/test/routines/levelx/xim2col.hpp @@ -165,8 +165,8 @@ StatusCode RunReference(const Arguments<T> &args, BuffersHost<T> &buffers_host) for (auto w_id = size_t{0}; w_id < output_w; ++w_id) { // image width // Retrieves the input value - const auto h_index = -args.pad_h + kh_id * args.dilation_h + args.stride_h * h_id; - const auto w_index = -args.pad_w + kw_id * args.dilation_w + args.stride_w * w_id; + const auto h_index = kh_id * args.dilation_h + args.stride_h * h_id - args.pad_h; + const auto w_index = kw_id * args.dilation_w + args.stride_w * w_id - args.pad_w; auto val = ConstantZero<T>(); if (h_index >= 0 && h_index < args.height && w_index >= 0 && w_index < args.width) { |