MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / Clear

Method Clear

paddle/fluid/framework/scope_pool.cc:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45ScopePool::~ScopePool() { Clear(); }
46
47void ScopePool::Clear() {
48 std::lock_guard<std::mutex> guard(mtx_);
49 for (auto *s : scopes_) {
50 DeleteScope(s);
51 }
52 scopes_.clear();
53}
54
55} // namespace paddle::framework

Callers 15

prune_implFunction · 0.45
PruneBackwardImplFunction · 0.45
SetTensorDescNumMethod · 0.45
FlushMethod · 0.45
FlushMethod · 0.45
SetFeedVariableFunction · 0.45
FlushMethod · 0.45
ReleaseMemoryFunMethod · 0.45
GlobalShuffleMethod · 0.45
PostprocessInstanceMethod · 0.45
MergeByInsIdMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected