From acdd95d5caf92f38a995bc6d2edf20a56520d799 Mon Sep 17 00:00:00 2001 From: tangwei12 Date: Thu, 23 Aug 2018 16:47:12 +0800 Subject: [PATCH] bug fix --- 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 f730a9746da..3f7860e1faf 100644 --- a/paddle/fluid/operators/sampling_id_op.h +++ b/paddle/fluid/operators/sampling_id_op.h @@ -63,7 +63,7 @@ class SamplingIdKernel : public framework::OpKernel { break; } } - ids[i] = ins_vector[i * width + idx]; + ids[i] = ins_vector[idx]; } std::vector out_dim; -- GitLab