Skip to content

Commit 5fe1fe3

Browse files
authored
Fix signed/unsigned comparison warning (#10211)
1 parent 3cd99f4 commit 5fe1fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/softmax_mkldnn_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class SoftmaxMKLDNNKernel : public paddle::framework::OpKernel<T> {
7777
const bool is_test = ctx.Attr<bool>("is_test");
7878
if (!is_test) {
7979
T threshold = exp(-64);
80-
for (size_t i = 0; i < dst_tz[0] * dst_tz[1]; ++i) {
80+
for (int i = 0; i < dst_tz[0] * dst_tz[1]; ++i) {
8181
output_data[i] =
8282
output_data[i] < threshold ? threshold : output_data[i];
8383
}

0 commit comments

Comments
 (0)