From 7aa8b2ccf2b51e9dd61c2547b9a6483a1a315347 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Tue, 13 Nov 2018 16:35:27 +0800 Subject: [PATCH] optimize code --- paddle/fluid/framework/selected_rows.cc | 2 +- paddle/fluid/operators/lookup_sparse_table_op.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/framework/selected_rows.cc b/paddle/fluid/framework/selected_rows.cc index 578740ab20f..c41b95193e2 100644 --- a/paddle/fluid/framework/selected_rows.cc +++ b/paddle/fluid/framework/selected_rows.cc @@ -70,7 +70,7 @@ struct TensorFillVisitor { template void apply() const { - // TODO(Yancey1989): support other place + // TODO(qiao): support other place platform::CPUPlace cpu; auto* tensor_data = dst_->mutable_data(cpu); auto* start = tensor_data + dst_offset_; diff --git a/paddle/fluid/operators/lookup_sparse_table_op.cc b/paddle/fluid/operators/lookup_sparse_table_op.cc index 01d67990a87..a6843f20a59 100644 --- a/paddle/fluid/operators/lookup_sparse_table_op.cc +++ b/paddle/fluid/operators/lookup_sparse_table_op.cc @@ -94,7 +94,7 @@ class LookupSparseTableOpMaker : public framework::OpProtoAndCheckerMaker { .SetDefault(true); AddAttr("is_test", "In test mode, lookup_sparse_table will " - "return a default value for unknown id") + "return a 0 for unknown id") .SetDefault(false); AddComment(R"DOC( Lookup Sprase Tablel Operator. -- GitLab