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

Method Allocate

tensorflow/core/framework/ev_allocator.h:245–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243 }
244
245 void* Allocate() {
246 if (current_ + slot_size_ <= end_) {
247 auto ret = current_;
248 current_ += slot_size_;
249 return ret;
250 }
251 return nullptr;
252 }
253
254 size_t BatchAllocate(size_t num, void** ret) {
255 for (int i = 0; i < num; ++i) {

Callers 4

AllocateMethod · 0.45
AllocateMethod · 0.45
AllocateRawMethod · 0.45
AllocateRawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected