haojin2 commented on a change in pull request #17254: [numpy] change unary 
infer type
URL: https://github.com/apache/incubator-mxnet/pull/17254#discussion_r368162144
 
 

 ##########
 File path: src/operator/tensor/elemwise_binary_op.h
 ##########
 @@ -850,6 +950,16 @@ class ElemwiseBinaryOp : public OpBase {
   .set_attr<FCompute>("FCompute<cpu>", ElemwiseBinaryOp::Compute<cpu, 
__kernel$>)              \
   .set_attr<FComputeEx>("FComputeEx<cpu>", ElemwiseBinaryOp::ComputeEx<cpu, 
__kernel$>)
 
+#define MXNET_OPERATOR_REGISTER_UNARY_MIXEDTYPE_IN_WITH_SPARSE_CPU_DR(__name$, 
__kernel$)       \
+  MXNET_OPERATOR_REGISTER_UNARY_MIXEDTYPE_IN(__name$)                          
                 \
+  .set_attr<FCompute>("FCompute<cpu>", 
ElemwiseBinaryOp::MixedUnaryBackwardUseInCompute<cpu,    \
+                                                                       
__kernel$>)              \
+
+#define 
MXNET_OPERATOR_REGISTER_UNARY_MIXEDTYPE_INOUT_WITH_SPARSE_CPU_DR(__name$, 
__kernel$)    \
 
 Review comment:
   `MXNET_OPERATOR_REGISTER_UNARY_MIXEDTYPE_USEINOUT_BWD_CPU`

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

Reply via email to