| 62 | // to be several layers of additional context. |
| 63 | template <typename... Args> |
| 64 | void AppendToMessage(::tensorflow::Status* status, Args... args) { |
| 65 | *status = ::tensorflow::Status( |
| 66 | status->code(), |
| 67 | ::tensorflow::strings::StrCat(status->error_message(), "\n\t", args...)); |
| 68 | } |
| 69 | |
| 70 | // For propagating errors when calling a function. |
| 71 | #define TF_RETURN_IF_ERROR(...) \ |
no test coverage detected