DickJC123 commented on a change in pull request #13749: Add NHWC layout support
to Pooling (cpu, gpu cuda, gpu cuDNN)
URL: https://github.com/apache/incubator-mxnet/pull/13749#discussion_r257332877
##########
File path: src/operator/nn/cudnn/cudnn_pooling-inl.h
##########
@@ -81,7 +81,8 @@ class CuDNNPoolingOp {
CHECK_EQ(s->dnn_handle_ownership_, mshadow::Stream<gpu>::OwnHandle);
typename DataType<DType>::ScaleType alpha = 1.0f;
typename DataType<DType>::ScaleType beta = 0.0f;
- this->Init(s, in_data, out_data);
+ if (!this->Init(s, in_data, out_data))
+ LOG(FATAL) << "cuDNN Pooling invoked with unsupported parameters.";
Review comment:
Thanks for this tip. Updated per your suggestion.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services