未验证 提交 5edc96e6 编写于 作者: O OccupyMars2025 提交者: GitHub

modify something unimportant when I read source code (#45273)

* Update scope.h

* typo

* Update dense_tensor.inl
上级 8f8ed7de
......@@ -118,10 +118,10 @@ class Scope : public ScopeBase {
const std::list<Scope*>& kids() const { return kids_; }
// enumerate all the variable names current contains.
// enumerate all the variable names which current scope contains.
std::vector<std::string> LocalVarNames() const;
// enumerate all the variables current contains.
// enumerate all the variables which current scope contains.
std::vector<Variable*> LocalVars();
// Rename variable to a new name
......
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册