diff --git a/paddle/fluid/framework/scope.h b/paddle/fluid/framework/scope.h index 920d68a51d50872a8764e0694d8ceaa9214012b2..7f80bbc4fc8878979f8fac2d02e618b4b960c609 100644 --- a/paddle/fluid/framework/scope.h +++ b/paddle/fluid/framework/scope.h @@ -118,10 +118,10 @@ class Scope : public ScopeBase { const std::list& kids() const { return kids_; } - // enumerate all the variable names current contains. + // enumerate all the variable names which current scope contains. std::vector LocalVarNames() const; - // enumerate all the variables current contains. + // enumerate all the variables which current scope contains. std::vector LocalVars(); // Rename variable to a new name diff --git a/paddle/fluid/framework/var_desc.cc b/paddle/fluid/framework/var_desc.cc index d015d91b45c8bb144df2265241ab881a18766ebf..6f9574b3f2c46c4cb06dd7743b005d966861d754 100644 --- a/paddle/fluid/framework/var_desc.cc +++ b/paddle/fluid/framework/var_desc.cc @@ -221,11 +221,11 @@ const proto::VarType::TensorDesc &VarDesc::tensor_desc() const { PADDLE_ENFORCE_EQ( desc_.has_type(), true, - platform::errors::NotFound("The variable's type was not be set.")); + platform::errors::NotFound("The variable's type was not set.")); PADDLE_ENFORCE_EQ( desc_.type().has_type(), true, - platform::errors::NotFound("The variable's type was not be set.")); + platform::errors::NotFound("The variable's type was not set.")); switch (desc_.type().type()) { case proto::VarType::SELECTED_ROWS: return desc_.type().selected_rows(); diff --git a/paddle/phi/core/dense_tensor.inl b/paddle/phi/core/dense_tensor.inl index 01c19e8a55fdf482e7226d5b64d553e0c76d4f91..eead55d8a0067b786f89406c773c552a8a39c87a 100644 --- a/paddle/phi/core/dense_tensor.inl +++ b/paddle/phi/core/dense_tensor.inl @@ -38,15 +38,15 @@ T* mutable_data(const DDim& dims, size_t requested_size = 0); void* mutable_data(const phi::Place& place, - paddle::experimental::DataType type, - size_t requested_size = 0); + paddle::experimental::DataType type, + size_t requested_size = 0); void* mutable_data(const phi::Place& place, - size_t requested_size = 0); + size_t requested_size = 0); void* mutable_data(const phi::Place& place, - paddle::experimental::DataType type, - const phi::Stream& stream); + paddle::experimental::DataType type, + const phi::Stream& stream); /* @jim19930609: Remove dependency on protobuf after Tensor Unification. */