zheng-da commented on a change in pull request #11831: [MXNET-484] MKLDNN C++ test for LRN operator URL: https://github.com/apache/incubator-mxnet/pull/11831#discussion_r209790490
########## File path: tests/cpp/operator/mkldnn.cc ########## @@ -535,6 +552,40 @@ void PrintVerifyMsg(const NDArrayAttrs &arr1, const NDArrayAttrs &arr2) { t1 << " with " << arr2.desc.c_str() << " " << t2 << "\n"; } +OpAttrs GetLRNOp() { + OpAttrs attrs; + attrs.attrs.op = Op::Get("LRN"); + attrs.num_inputs = 1; + attrs.num_outputs = 2; + attrs.attrs.dict.insert({"nsize" , "3"}); + attrs.attrs.op->attr_parser(&attrs.attrs); + attrs.dispatches.resize(2); + attrs.requests.insert(OpReqType::kWriteTo); + attrs.input_types = ArrayTypes::Normal | + ArrayTypes::MKLDNN | + ArrayTypes::NormalReshaped | + ArrayTypes::NormalReshaped | Review comment: it seems you have `NormalReshaped` twice. ---------------------------------------------------------------- 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