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

Method Insert

paddle/fluid/framework/scope_pool.cc:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23void ScopePool::DeleteScope(Scope *scope) { delete scope; }
24
25void ScopePool::Insert(std::unique_ptr<Scope> &&s) {
26 std::lock_guard<std::mutex> guard(mtx_);
27 scopes_.insert(s.release());
28}
29
30void ScopePool::Remove(Scope *s) {
31 size_t has_scope = 0;

Callers 4

OperatorRegistrarMethod · 0.45
PD_RegisterOperatorFunction · 0.45

Calls 2

insertMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected