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

Method cpu_exec_micros

tensorflow/core/profiler/internal/tfprof_node.cc:253–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253int64 ExecStep::cpu_exec_micros() const {
254 int64 total = 0;
255 // Normally, an op can only be scheduled on 1 device.
256 for (const auto& execs : cpu_execs_) {
257 // An op can be scheduled multiple times in while-loop.
258 for (const auto& exec : execs.second) {
259 total += exec.second;
260 }
261 }
262 return total;
263}
264
265std::vector<int64> ShapeProtoToVec(const TensorShapeProto& shape_pb) {
266 std::vector<int64> shape_vec;

Callers 7

FormatCPUExecTimeFunction · 0.45
ReInitMethod · 0.45
AddSelfToTotalStatsMethod · 0.45
FormatCPUExecTimeFunction · 0.45
AddMethod · 0.45
CheckOpViewMethod · 0.45
CheckScopeViewMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected