Skip to content

Commit

Permalink
Fix signed/unsigned comparison warning (#10211)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidgoyal78 authored Apr 25, 2018
1 parent 3cd99f4 commit 5fe1fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/operators/softmax_mkldnn_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class SoftmaxMKLDNNKernel : public paddle::framework::OpKernel<T> {
const bool is_test = ctx.Attr<bool>("is_test");
if (!is_test) {
T threshold = exp(-64);
for (size_t i = 0; i < dst_tz[0] * dst_tz[1]; ++i) {
for (int i = 0; i < dst_tz[0] * dst_tz[1]; ++i) {
output_data[i] =
output_data[i] < threshold ? threshold : output_data[i];
}
Expand Down

0 comments on commit 5fe1fe3

Please sign in to comment.