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

Function GetLatencyMicroseconds

tensorflow/cc/saved_model/loader.cc:68–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66constexpr char kLoadAttemptSuccess[] = "success";
67
68uint64 GetLatencyMicroseconds(const uint64 start_microseconds) {
69 const uint64 end_microseconds = Env::Default()->NowMicros();
70 // Avoid clock skew.
71 if (end_microseconds < start_microseconds) return 0;
72 return end_microseconds - start_microseconds;
73}
74
75// Ensure that constant tensors loaded from the saved model have valid shape.
76// Also ensure that constant nodes have a value assigned to them.

Callers 2

LoadSavedModelInternalFunction · 0.85
LogAndCountFunction · 0.85

Calls 2

DefaultFunction · 0.85
NowMicrosMethod · 0.45

Tested by

no test coverage detected