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

Method PopBatch

tensorflow/core/framework/ev_allocator.h:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 int PopBatch(int N, void** ret) {
168 int count = list_.size();
169 if (count > N) {
170 count = N;
171 }
172 for (int i = 0; i < count; ++i) {
173 ret[i] = list_.back();
174 list_.pop_back();
175 }
176
177 return count;
178 }
179
180 private:
181 std::list<void*> list_;

Callers 1

BatchAllocateMethod · 0.45

Calls 3

pop_backMethod · 0.80
sizeMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected