MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / DelayedDecrefLock

Function DelayedDecrefLock

tensorflow/python/lib/core/ndarray_tensor_bridge.cc:31–34  ·  view source on GitHub ↗

Mutex used to serialize accesses to cached vector of pointers to python arrays to be dereferenced.

Source from the content-addressed store, hash-verified

29// Mutex used to serialize accesses to cached vector of pointers to python
30// arrays to be dereferenced.
31static mutex* DelayedDecrefLock() {
32 static mutex* decref_lock = new mutex;
33 return decref_lock;
34}
35
36// Caches pointers to numpy arrays which need to be dereferenced.
37static std::vector<void*>* DecrefCache() {

Callers 2

DelayedNumpyDecrefFunction · 0.85
ClearDecrefCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected