From 0f94c1ac14a62372e0e5a35d5d0a393ca92472a5 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Mon, 7 Jan 2019 16:45:03 +0800 Subject: [PATCH] Polish code test=develop --- paddle/fluid/operators/fused/fused_embedding_seq_pool_op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/fused/fused_embedding_seq_pool_op.h b/paddle/fluid/operators/fused/fused_embedding_seq_pool_op.h index 2d60b9e96c..758432fd9e 100644 --- a/paddle/fluid/operators/fused/fused_embedding_seq_pool_op.h +++ b/paddle/fluid/operators/fused/fused_embedding_seq_pool_op.h @@ -40,7 +40,7 @@ struct EmbeddingVSumFunctor { int64_t row_number = table_t->dims()[0]; int64_t row_width = table_t->dims()[1]; int64_t last_dim = output_t->dims()[1]; - int64_t *ids = ids_t->mutable_data(platform::CPUPlace()); + const int64_t *ids = ids_t->data(); auto ids_lod = ids_t->lod()[0]; int64_t ids_count = ids_t->numel() / ids_lod.back(); -- GitLab