提交 b5b8e6cc 编写于 作者: Q Qiao Longfei

revert the change of scope test=develop

上级 ecedd531
...@@ -255,32 +255,5 @@ std::string GenScopeTreeDebugInfo(Scope* root) { ...@@ -255,32 +255,5 @@ std::string GenScopeTreeDebugInfo(Scope* root) {
return os.str(); return os.str();
} }
std::string GenParentScopeTreeDebugInfo(Scope* leaf) {
std::stringstream os;
if (!leaf) return "";
// level traversal
std::vector<const Scope*> scopes;
const Scope* current_scope = leaf;
while (current_scope != nullptr) {
scopes.push_back(current_scope);
current_scope = current_scope->parent();
}
os << "\n--------------GenParentScopeTreeDebugInfo--------------\n";
for (int i = scopes.size() - 1; i >= 0; --i) {
os << "=======level [" << i << "]=======\n";
os << scopes[i] << ":\n";
for (auto& var : scopes[i]->LocalVarNames()) {
os << " - " << var << "\n";
}
}
return os.str();
}
} // namespace framework } // namespace framework
} // namespace paddle } // namespace paddle
...@@ -144,7 +144,6 @@ class Scope { ...@@ -144,7 +144,6 @@ class Scope {
// Generate some debug string about the inherience structure of scope, quite // Generate some debug string about the inherience structure of scope, quite
// naive. // naive.
std::string GenScopeTreeDebugInfo(Scope*); std::string GenScopeTreeDebugInfo(Scope*);
std::string GenParentScopeTreeDebugInfo(Scope*);
} // namespace framework } // namespace framework
} // namespace paddle } // namespace paddle
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册