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

Method StartCollectOp

tensorflow/core/common_runtime/kernel_stat.h:213–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211 }
212
213 void StartCollectOp(const NodeItem* item, KernelStatsInfo* stat) {
214 if (!collect_kernel_stats ||
215 collect_stats_done_ ||
216 !collect_op_cost_) {
217 return;
218 }
219
220 stat->op_start_time_ = Env::Default()->NowNanos();
221 task_count_[item->node->id()] = 0;
222 }
223
224 void StopCollectOp(const NodeItem* item, KernelStatsInfo* stat) {
225 if (!collect_kernel_stats ||

Callers 2

ProcessSyncMethod · 0.80
ProcessAsyncMethod · 0.80

Calls 3

DefaultFunction · 0.85
NowNanosMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected