Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/operator/regression_output.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
*/

#include "./regression_output-inl.h"
#include "./elemwise_op_common.h"


#define MXNET_OPERATOR_REGISTER_REGRESSION_FWD(__name$, __kernel$, __bwdop$) \
NNVM_REGISTER_OP(__name$) \
Expand All @@ -33,6 +35,7 @@
return std::vector<std::string>{"data", "label"}; \
}) \
.set_attr<nnvm::FInferShape>("FInferShape", RegressionOpShape) \
.set_attr<nnvm::FInferType>("FInferType", ElemwiseType<2, 1>) \
.set_attr<nnvm::FGradient>("FGradient", RegressionOpGrad{__bwdop$}) \
.set_attr<nnvm::FInplaceOption>("FInplaceOption", \
[](const NodeAttrs& attrs){ \
Expand All @@ -48,6 +51,7 @@
.set_num_inputs(2) \
.set_num_outputs(2) \
.set_attr_parser(ParamParser<RegressionOutputParam>) \
.set_attr<nnvm::FInferType>("FInferType", ElemwiseType<2, 2>) \
.set_attr<nnvm::TIsBackward>("TIsBackward", true) \
.set_attr<nnvm::FInplaceOption>("FInplaceOption", \
[](const NodeAttrs& attrs){ \
Expand Down