Update logical_op.cc

test=develop
shanyi15-patch-1
Yan Chunwei 6 years ago committed by GitHub
parent 0c233e8870
commit 916930a8ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -74,7 +74,7 @@ class BinaryLogicalOpInferShape : public framework::InferShapeBase {
int product_x = framework::product(dim_x);
int product_y = framework::product(dim_y);
bool check = ctx->IsRuntime() && product_x >= 0 && product_y >= 0;
bool check = ctx->IsRuntime() || (product_x >= 0 && product_y >= 0);
if (check) {
PADDLE_ENFORCE_EQ(
product_x, product_y,

Loading…
Cancel
Save