Skip to content

Commit 04a05d1

Browse files
author
zenghsh3
committed
merged
1 parent 62f8d59 commit 04a05d1

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

paddle/fluid/operators/sampling_id_op.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,8 @@ class SamplingIdKernel : public framework::OpKernel<T> {
5353
static_cast<T>(context.Attr<float>("min")),
5454
static_cast<T>(context.Attr<float>("max")));
5555

56-
<<<<<<< HEAD
5756
std::vector<int64_t> ids(batch_size);
5857
for (size_t i = 0; i < batch_size; ++i) {
59-
=======
60-
std::vector<T> ids(batch_size);
61-
for (int i = 0; i < batch_size; ++i) {
62-
>>>>>>> 823c4f87beff04e4029e3f4a183658621ca8f01b
6358
T r = dist(engine);
6459
int idx = width - 1;
6560
for (int j = 0; j < width; ++j) {
@@ -68,11 +63,7 @@ class SamplingIdKernel : public framework::OpKernel<T> {
6863
break;
6964
}
7065
}
71-
<<<<<<< HEAD
7266
ids[i] = int64_t(idx);
73-
=======
74-
ids[i] = ins_vector[idx];
75-
>>>>>>> 823c4f87beff04e4029e3f4a183658621ca8f01b
7667
}
7768

7869
std::vector<int64_t> out_dim;

0 commit comments

Comments
 (0)