We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6abac88 commit b66b925Copy full SHA for b66b925
paddle/fluid/operators/concat_op.cc
@@ -57,7 +57,7 @@ class ConcatOp : public framework::OperatorWithKernel {
57
"elements except the specify axis.");
58
} else {
59
// not check -1 with other in compile time
60
- if (out_dims[j] != -1 && ins[i][j] != -1) {
+ if (out_dims[j] > 0 && ins[i][j] > 0) {
61
PADDLE_ENFORCE_EQ(out_dims[j], ins[i][j],
62
"Input tensors should have the same "
63
0 commit comments