提交 3e16f5fd 编写于 作者: Q qiaolongfei

clang format

上级 6ad1d21c
......@@ -42,7 +42,7 @@ Variable* Scope::GetVariable(const std::string& name) const {
}
}
bool Scope::HasVariable(const std::string &name) {
bool Scope::HasVariable(const std::string& name) {
return (vars_.count(name) > 0 || (parent_ && parent_->HasVariable(name)));
}
......
......@@ -14,9 +14,9 @@ limitations under the License. */
#pragma once
#include <string>
#include <unordered_map>
#include <vector>
#include <string>
#include "paddle/framework/variable.h"
......@@ -49,7 +49,7 @@ class Scope {
Variable* GetVarLocally(const std::string& name) const;
// Find if there is a Variable in this scope and it's parent scope
bool HasVariable(const std::string &name);
bool HasVariable(const std::string& name);
private:
std::unordered_map<std::string, std::unique_ptr<Variable>> vars_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册