We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04a05d1 commit d749583Copy full SHA for d749583
paddle/fluid/operators/sampling_id_op.h
@@ -54,7 +54,7 @@ class SamplingIdKernel : public framework::OpKernel<T> {
54
static_cast<T>(context.Attr<float>("max")));
55
56
std::vector<int64_t> ids(batch_size);
57
- for (size_t i = 0; i < batch_size; ++i) {
+ for (int i = 0; i < batch_size; ++i) {
58
T r = dist(engine);
59
int idx = width - 1;
60
for (int j = 0; j < width; ++j) {
0 commit comments