File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,10 +71,10 @@ class MaxOutOp : public framework::OperatorWithKernel {
71
71
using framework::OperatorWithKernel::OperatorWithKernel;
72
72
void InferShape (framework::InferShapeContext* ctx) const override {
73
73
PADDLE_ENFORCE (ctx->HasInput (" X" ),
74
- " Input(X) of MaxoutOp"
74
+ " Input tensor of MaxoutOp"
75
75
" should not be null." );
76
76
PADDLE_ENFORCE (ctx->HasOutput (" Out" ),
77
- " Output(Out) of MaxoutOp should not be null." );
77
+ " Output tensor of MaxoutOp should not be null." );
78
78
auto in_x_dims = ctx->GetInputDim (" X" );
79
79
int groups = ctx->Attrs ().Get <int >(" groups" );
80
80
// check groups > 1
@@ -90,9 +90,9 @@ class MaxOutOpGrad : public framework::OperatorWithKernel {
90
90
public:
91
91
using framework::OperatorWithKernel::OperatorWithKernel;
92
92
void InferShape (framework::InferShapeContext* ctx) const override {
93
- PADDLE_ENFORCE (ctx->HasInput (" X" ), " Input(X) must not be null." );
93
+ PADDLE_ENFORCE (ctx->HasInput (" X" ), " Input tensor must not be null." );
94
94
PADDLE_ENFORCE (ctx->HasOutput (framework::GradVarName (" X" )),
95
- " Input(X@GRAD) should not be null." );
95
+ " Output gradient tensor should not be null." );
96
96
ctx->SetOutputDim (framework::GradVarName (" X" ), ctx->GetInputDim (" X" ));
97
97
}
98
98
};
You can’t perform that action at this time.
0 commit comments