From 95cadc117b659aa12cf5ed643d75e69ffaa6ff7d Mon Sep 17 00:00:00 2001 From: kshitij12345 Date: Thu, 11 Jul 2019 20:33:43 +0530 Subject: [PATCH] update comments --- src/operator/tensor/elemwise_unary_op_trig.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/operator/tensor/elemwise_unary_op_trig.cc b/src/operator/tensor/elemwise_unary_op_trig.cc index 8f7fd9b1cabc..522a97e41947 100644 --- a/src/operator/tensor/elemwise_unary_op_trig.cc +++ b/src/operator/tensor/elemwise_unary_op_trig.cc @@ -49,7 +49,7 @@ The storage type of ``sin`` output depends upon the input storage type: MXNET_OPERATOR_REGISTER_BINARY_WITH_SPARSE_CPU_DR(_backward_sin, unary_bwd) .set_attr("FGradient", [](const nnvm::NodePtr& n, const std::vector& ograds) { - // ograds[0]: head_grad_grads (dL/dxgrad) + // ograds[0]: head_grad_grads (dL/dy_grad) // inputs[0]: dL/dy // inputs[1]: x (ElemwiseUseIn) // f(x) = sin(x) @@ -92,7 +92,7 @@ The storage type of ``cos`` output is always dense MXNET_OPERATOR_REGISTER_BINARY_WITH_SPARSE_CPU(_backward_cos, unary_bwd) .set_attr("FGradient", [](const nnvm::NodePtr& n, const std::vector& ograds) { - // ograds[0]: head_grad_grads (dL/dx_grad) + // ograds[0]: head_grad_grads (dL/dy_grad) // inputs[0]: dL/dy // inputs[1]: x (ElemwiseUseIn) // f(x) = cos(x) @@ -260,7 +260,7 @@ The storage type of ``sinh`` output depends upon the input storage type: MXNET_OPERATOR_REGISTER_BINARY_WITH_SPARSE_CPU_DR(_backward_sinh, unary_bwd) .set_attr("FGradient", [](const nnvm::NodePtr& n, const std::vector& ograds) { - // ograds[0]: d^2L/dx^2 + // ograds[0]: dL/dy_grad // inputs[0]: dL/dy // inputs[1]: x (ElemwiseUseIn) // f(x) = sinh(x) @@ -298,7 +298,7 @@ The storage type of ``cosh`` output is always dense MXNET_OPERATOR_REGISTER_BINARY_WITH_SPARSE_CPU(_backward_cosh, unary_bwd) .set_attr("FGradient", [](const nnvm::NodePtr& n, const std::vector& ograds) { - // ograds[0]: d^2L/dx^2 + // ograds[0]: dL/dy_grad // inputs[0]: dL/dy // inputs[1]: x (ElemwiseUseIn) // f(x) = cosh(x)