You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/06/04 17:49:59 UTC

[GitHub] piiswrong commented on a change in pull request #11021: [MXNET-380] count_include_pad argument for Avg Pooling

piiswrong commented on a change in pull request #11021: [MXNET-380] count_include_pad argument for Avg Pooling
URL: https://github.com/apache/incubator-mxnet/pull/11021#discussion_r192826568
 
 

 ##########
 File path: src/operator/nn/pool.cuh
 ##########
 @@ -311,7 +322,9 @@ __global__ void pool_sum_3d_gpu_kernel(const int nthreads, const DType* in_data,
         }
       }
     }
-    out_data[index] = a_root_p<DType, p>::Map(sum);
+    out_data[index] = (pool_size == 0) ?
+                      DType(0.0f / pool_size) :
 
 Review comment:
   Why would pool_size be 0? Shouldn't that be invalid?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services