Merge pull request #16357 from phlrain/fix_concat_check

Fix concat check
revert-16190-refine_parallel_executor
Hongyu Liu 6 years ago committed by GitHub
commit e3bca9011c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -57,7 +57,7 @@ class ConcatOp : public framework::OperatorWithKernel {
"elements except the specify axis.");
} else {
// not check -1 with other in compile time
if (out_dims[j] != -1 && ins[i][j] != -1) {
if (out_dims[j] > 0 && ins[i][j] > 0) {
PADDLE_ENFORCE_EQ(out_dims[j], ins[i][j],
"Input tensors should have the same "
"elements except the specify axis.");

Loading…
Cancel
Save