Update logical_op.cc

test=develop
shanyi15-patch-1
Yan Chunwei 6 years ago committed by GitHub
parent 916930a8ae
commit 8cff2b4231
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 = context->IsRuntime() || (product_x >= 0 && product_y >= 0);
if (check) {
PADDLE_ENFORCE_EQ(
product_x, product_y,

Loading…
Cancel
Save