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

Method BeginStep

tensorflow/core/common_runtime/gpu_tensorpool_allocator.cc:185–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void GPUTensorPoolAllocator::BeginStep() {
186 if (inited_.load()) {
187 for (auto b : lifetime_bins_) {
188 if (b != nullptr) {
189 b->BeginStep();
190 }
191 }
192 for (auto it : large_lifetime_bins_) {
193 it.second->BeginStep();
194 }
195 }
196 std::lock_guard<spin_lock> l(free_lock_);
197 for (auto ptr : async_free_list_) {
198 sub_allocator_->Free(ptr, 0);
199 }
200 async_free_list_.clear();
201}
202
203void* GPUTensorPoolAllocator::AllocateRaw(size_t alignment,
204 size_t num_bytes) {

Callers 1

StartCollectMethod · 0.80

Calls 3

loadMethod · 0.45
FreeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected