Caches pointers to numpy arrays which need to be dereferenced.
| 35 | |
| 36 | // Caches pointers to numpy arrays which need to be dereferenced. |
| 37 | static std::vector<void*>* DecrefCache() { |
| 38 | static std::vector<void*>* decref_cache = new std::vector<void*>; |
| 39 | return decref_cache; |
| 40 | } |
| 41 | |
| 42 | // Destructor passed to TF_NewTensor when it reuses a numpy buffer. Stores a |
| 43 | // pointer to the pyobj in a buffer to be dereferenced later when we're actually |
no outgoing calls
no test coverage detected