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

Method TaskQueueSize

tensorflow/core/framework/run_handler.cc:180–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 }
179
180 int TaskQueueSize(bool is_blocking) {
181 if (is_blocking) {
182 return blocking_work_queue_.Size();
183 } else {
184 unsigned total_size = 0;
185 for (int i = 0; i < non_blocking_work_sharding_factor_; ++i) {
186 total_size += non_blocking_work_queues_[i]->queue.Size();
187 }
188 return total_size;
189 }
190 }
191
192 int64 GetTracemeId() { return traceme_id_.load(std::memory_order_relaxed); }
193

Callers 1

LOCKS_EXCLUDEDMethod · 0.80

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected