Skip to content

Commit dd55cc1

Browse files
authored
fix warning (#11518)
1 parent 3438dfe commit dd55cc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/crop_op.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static std::vector<int> GetOffsets(const framework::ExecutionContext& ctx) {
5252
} else {
5353
res = ctx.Attr<std::vector<int>>("offsets");
5454
PADDLE_ENFORCE_EQ(
55-
rank, res.size(),
55+
rank, static_cast<int>(res.size()),
5656
"Offsets size should be equal to dimension size of input tensor.");
5757
}
5858
return res;

0 commit comments

Comments
 (0)