Skip to content

Commit 4d1ee0f

Browse files
author
Yibing Liu
committed
Amend license and comments in reshape_op
1 parent 5a3d136 commit 4d1ee0f

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

paddle/operators/reshape_op.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
21
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
32
43
Licensed under the Apache License, Version 2.0 (the "License");
54
you may not use this file except in compliance with the License.
65
You may obtain a copy of the License at
76
8-
http://www.apache.org/licenses/LICENSE-2.0
7+
http://www.apache.org/licenses/LICENSE-2.0
98
109
Unless required by applicable law or agreed to in writing, software
1110
distributed under the License is distributed on an "AS IS" BASIS,
@@ -38,8 +37,8 @@ class ReshapeOp : public framework::OperatorWithKernel {
3837
// TODO(qiao) change batch_size
3938
for (size_t i = 1; i < shape.size(); ++i) {
4039
PADDLE_ENFORCE(shape[i] > 0,
41-
"Each dimension of shape "
42-
"must be positiv except the first.");
40+
"Each dimension of Attr(shape) "
41+
"must be positive except the first one.");
4342
}
4443
if (shape[0] < 0) {
4544
shape[0] = x_dims[0];

paddle/operators/reshape_op.cu.cc renamed to paddle/operators/reshape_op.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
you may not use this file except in compliance with the License.
55
You may obtain a copy of the License at
66
7-
http://www.apache.org/licenses/LICENSE-2.0
7+
http://www.apache.org/licenses/LICENSE-2.0
88
99
Unless required by applicable law or agreed to in writing, software
1010
distributed under the License is distributed on an "AS IS" BASIS,

paddle/operators/reshape_op.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
you may not use this file except in compliance with the License.
55
You may obtain a copy of the License at
66
7-
http://www.apache.org/licenses/LICENSE-2.0
7+
http://www.apache.org/licenses/LICENSE-2.0
88
99
Unless required by applicable law or agreed to in writing, software
1010
distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)