fix concat shape check; test=develop

revert-16190-refine_parallel_executor
phlrain 6 years ago
parent 4e3b5e727d
commit 8274d9d733

@ -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] != > 0 && ins[i][j] > 0) {
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