clang format

gangliao-patch-1
qiaolongfei 8 years ago
parent 6ad1d21c4b
commit 3e16f5fdfb

@ -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_;

Loading…
Cancel
Save