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

Method Queue

tensorflow/core/kernels/batching_util/shared_batch_scheduler.h:506–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504
505template <typename TaskType>
506Queue<TaskType>::Queue(
507 const typename SharedBatchScheduler<TaskType>::QueueOptions& options,
508 Env* env, ProcessBatchCallback process_batch_callback,
509 SchedulableBatchCallback schedulable_batch_callback)
510 : options_(options),
511 env_(env),
512 process_batch_callback_(process_batch_callback),
513 schedulable_batch_callback_(schedulable_batch_callback) {
514 // Create an initial, open batch.
515 batches_.emplace_back(new Batch<TaskType>);
516}
517
518template <typename TaskType>
519Queue<TaskType>::~Queue() {

Callers 14

__init__Method · 0.80
__init__Method · 0.80
testParallelMethod · 0.80
testCapacityMethod · 0.80
testMemoryLimitMethod · 0.80
testCapacityMethod · 0.80
testMemoryLimitMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 1

emplace_backMethod · 0.45

Tested by 6

testParallelMethod · 0.64
testCapacityMethod · 0.64
testMemoryLimitMethod · 0.64
testCapacityMethod · 0.64
testMemoryLimitMethod · 0.64