Skip to content

Commit 6c63610

Browse files
authored
Merge pull request #12892 from seiriosPlus/samplingIdOp
bug fix
2 parents 8ad9055 + acdd95d commit 6c63610

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
@@ -63,7 +63,7 @@ class SamplingIdKernel : public framework::OpKernel<T> {
6363
break;
6464
}
6565
}
66-
ids[i] = ins_vector[i * width + idx];
66+
ids[i] = ins_vector[idx];
6767
}
6868

6969
std::vector<int64_t> out_dim;

0 commit comments

Comments
 (0)