| 66 | constexpr char kLoadAttemptSuccess[] = "success"; |
| 67 | |
| 68 | uint64 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. |
no test coverage detected