diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/SpatialMaxPooling.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/SpatialMaxPooling.c b/generic/SpatialMaxPooling.c index b9fab3b..845181b 100644 --- a/generic/SpatialMaxPooling.c +++ b/generic/SpatialMaxPooling.c @@ -75,8 +75,8 @@ static int nn_(SpatialMaxPooling_updateOutput)(lua_State *L) *op = maxval; // store location of max (x,y) - *indyp = (int)(maxindex / dW)+1; - *indxp = (maxindex % dW) +1; + *indyp = (int)(maxindex / kW)+1; + *indxp = (maxindex % kW) +1; } } } |