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

Method AddTask

tensorflow/core/kernels/batching_util/batch_scheduler.h:196–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194
195template <typename TaskType>
196void Batch<TaskType>::AddTask(std::unique_ptr<TaskType> task) {
197 DCHECK(!IsClosed());
198 {
199 mutex_lock l(mu_);
200 size_ += task->size();
201 tasks_.push_back(std::move(task));
202 }
203}
204
205template <typename TaskType>
206std::unique_ptr<TaskType> Batch<TaskType>::RemoveTask() {

Callers 4

ScheduleMethod · 0.45
TESTFunction · 0.45
ScheduleMethod · 0.45
ScheduleMethod · 0.45

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by 1

TESTFunction · 0.36