From f86da86f809c8cbad07db76a3554f23890fe05a3 Mon Sep 17 00:00:00 2001 From: Przemek Tredak Date: Fri, 21 Feb 2020 15:54:14 -0800 Subject: [PATCH] Remove the unused _backward_add op --- .../tensor/elemwise_binary_op_basic.cc | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/operator/tensor/elemwise_binary_op_basic.cc b/src/operator/tensor/elemwise_binary_op_basic.cc index 4bfb2c84f551..3f607b2cc23e 100644 --- a/src/operator/tensor/elemwise_binary_op_basic.cc +++ b/src/operator/tensor/elemwise_binary_op_basic.cc @@ -156,26 +156,6 @@ static inline bool ElemwiseAddBackwardStorageType(const nnvm::NodeAttrs& attrs, return ret; } -NNVM_REGISTER_OP(_backward_add) -.set_num_inputs(1) -.set_num_outputs(2) -.set_attr("TIsBackward", true) -.set_attr("FInplaceOption", - [](const NodeAttrs &attrs) { - return std::vector >{{0, 0}, - {0, 1}}; - }) -#if MXNET_USE_MKLDNN == 1 -.set_attr("FResourceRequest", [](const NodeAttrs& n) { - return std::vector{ResourceRequest::kTempSpace}; -}) -.set_attr("TIsMKLDNN", true) -#endif -.set_attr("FCompute", ElemwiseBinaryOp::BackwardUseNone< - cpu, mshadow_op::identity, mshadow_op::identity>) -.set_attr("FComputeEx", _backward_ElemwiseAddEx) -.set_attr("FInferStorageType", ElemwiseAddBackwardStorageType); - MXNET_OPERATOR_REGISTER_BINARY_WITH_SPARSE_CPU_PD(elemwise_sub, op::mshadow_op::minus) MXNET_ADD_SPARSE_OP_ALIAS(elemwise_sub) .add_alias("_sub").add_alias("_minus").add_alias("_Minus")