We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3438dfe commit dd55cc1Copy full SHA for dd55cc1
paddle/fluid/operators/crop_op.h
@@ -52,7 +52,7 @@ static std::vector<int> GetOffsets(const framework::ExecutionContext& ctx) {
52
} else {
53
res = ctx.Attr<std::vector<int>>("offsets");
54
PADDLE_ENFORCE_EQ(
55
- rank, res.size(),
+ rank, static_cast<int>(res.size()),
56
"Offsets size should be equal to dimension size of input tensor.");
57
}
58
return res;
0 commit comments