haojin2 commented on a change in pull request #17254: [numpy] change unary infer type URL: https://github.com/apache/incubator-mxnet/pull/17254#discussion_r365556852
########## File path: src/operator/numpy/np_elemwise_unary_op_basic.cc ########## @@ -82,6 +82,39 @@ NNVM_REGISTER_OP(_np_copy) .set_attr<FCompute>("FCompute<cpu>", UnaryOp::Compute<cpu, __kernel$>) \ .add_argument(__input_name$, "NDArray-or-Symbol", "The input array.") +inline bool UnaryOpType(const nnvm::NodeAttrs& attrs, + std::vector<int>* in_attrs, Review comment: pay attention to alignments ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to 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