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 04:28:51 UTC

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

haojin2 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_r192625024
 
 

 ##########
 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:
   We want to create an artificial NaN here to ensure consistency with cudnn.

----------------------------------------------------------------
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