From dd55cc16472f9669029276e2c198bd3f2ee71b52 Mon Sep 17 00:00:00 2001 From: gongweibao Date: Fri, 15 Jun 2018 08:31:23 -0500 Subject: [PATCH] fix warning (#11518) --- paddle/fluid/operators/crop_op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/crop_op.h b/paddle/fluid/operators/crop_op.h index 91cfbbda735..772e80bbea4 100644 --- a/paddle/fluid/operators/crop_op.h +++ b/paddle/fluid/operators/crop_op.h @@ -52,7 +52,7 @@ static std::vector GetOffsets(const framework::ExecutionContext& ctx) { } else { res = ctx.Attr>("offsets"); PADDLE_ENFORCE_EQ( - rank, res.size(), + rank, static_cast(res.size()), "Offsets size should be equal to dimension size of input tensor."); } return res; -- GitLab