From d7495838b34f374f5518608aa35c384f32f2475c Mon Sep 17 00:00:00 2001 From: zenghsh3 Date: Fri, 31 Aug 2018 13:15:16 +0800 Subject: [PATCH] refine --- paddle/fluid/operators/sampling_id_op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/sampling_id_op.h b/paddle/fluid/operators/sampling_id_op.h index 14abb78e0..133d3f72d 100644 --- a/paddle/fluid/operators/sampling_id_op.h +++ b/paddle/fluid/operators/sampling_id_op.h @@ -54,7 +54,7 @@ class SamplingIdKernel : public framework::OpKernel { static_cast(context.Attr("max"))); std::vector ids(batch_size); - for (size_t i = 0; i < batch_size; ++i) { + for (int i = 0; i < batch_size; ++i) { T r = dist(engine); int idx = width - 1; for (int j = 0; j < width; ++j) { -- GitLab