TaoLv commented on a change in pull request #10365: [MXNET-261]Update MKLDNN & 
Add CPP Test
URL: https://github.com/apache/incubator-mxnet/pull/10365#discussion_r178716118
 
 

 ##########
 File path: tests/cpp/operator/mkldnn.cc
 ##########
 @@ -77,4 +77,11 @@ TEST(MKLDNN_UTIL_FUNC, AlignMem) {
   LOG(INFO) << "Skipped for GCC " << __GNUC__ << "." << __GNUC_MINOR__;
 #endif
 }
+
+TEST(MKLDNN_UTIL_FUNC, MemFormat) {
+  // Check whether the number of format is correct.
+  CHECK_EQ(mkldnn_format_last, 56);
 
 Review comment:
   Yes, it's an enum. This request is from @marcoabreu. Please refer 
https://github.com/apache/incubator-mxnet/pull/9918#discussion_r171472242 and 
[jira#98](https://issues.apache.org/jira/browse/MXNET-98) for the background of 
this. Thanks.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to