larroy commented on a change in pull request #15530: [MXNET-978] Higher Order Gradient Support `arcsinh`, `arccosh`. URL: https://github.com/apache/incubator-mxnet/pull/15530#discussion_r304112629
########## File path: src/operator/tensor/elemwise_unary_op_trig.cc ########## @@ -307,7 +307,36 @@ The storage type of ``arcsinh`` output depends upon the input storage type: .set_attr<nnvm::FGradient>("FGradient", ElemwiseGradUseIn{ "_backward_arcsinh" }); MXNET_OPERATOR_REGISTER_BINARY_WITH_SPARSE_CPU_DR(_backward_arcsinh, - unary_bwd<mshadow_op::arcsinh_grad>); + unary_bwd<mshadow_op::arcsinh_grad>) +.set_attr<nnvm::FGradient>("FGradient", + [](const nnvm::NodePtr& n, const std::vector<nnvm::NodeEntry>& ograds) { + // ograds[0]: head_grad_grads (dL/dy_grad) Review comment: dL/dx_grad ? https://github.com/apache/incubator-mxnet/pull/15331#issuecomment-511978900 ---------------------------------------------------------------- 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