Skip to content

Commit d749583

Browse files
author
zenghsh3
committed
refine
1 parent 04a05d1 commit d749583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/sampling_id_op.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class SamplingIdKernel : public framework::OpKernel<T> {
5454
static_cast<T>(context.Attr<float>("max")));
5555

5656
std::vector<int64_t> ids(batch_size);
57-
for (size_t i = 0; i < batch_size; ++i) {
57+
for (int i = 0; i < batch_size; ++i) {
5858
T r = dist(engine);
5959
int idx = width - 1;
6060
for (int j = 0; j < width; ++j) {

0 commit comments

Comments
 (0)