From 0c233e8870cb66de96eef120fc62ea1e62063f79 Mon Sep 17 00:00:00 2001 From: superjomn Date: Tue, 16 Apr 2019 12:09:10 +0800 Subject: [PATCH] up test=develop --- paddle/fluid/operators/controlflow/logical_op.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/operators/controlflow/logical_op.cc b/paddle/fluid/operators/controlflow/logical_op.cc index 6e37bf1cba..6d8a20e385 100644 --- a/paddle/fluid/operators/controlflow/logical_op.cc +++ b/paddle/fluid/operators/controlflow/logical_op.cc @@ -76,8 +76,10 @@ class BinaryLogicalOpInferShape : public framework::InferShapeBase { int product_y = framework::product(dim_y); bool check = ctx->IsRuntime() && product_x >= 0 && product_y >= 0; if (check) { - PADDLE_ENFORCE_EQ(framework::product(dim_x), framework::product(dim_y), - "The number of elements in X and Y should be same"); + PADDLE_ENFORCE_EQ( + product_x, product_y, + "The number of elements in X and Y should be same, %d != %d", + product_x, product_y); } context->SetOutputDim("Out", context->GetInputDim("X")); -- GitLab