Home | History | Annotate | Download | only in core

Lines Matching refs:tensorflow

1 /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
19 #include "tensorflow/core/lib/core/status.h"
20 #include "tensorflow/core/lib/strings/strcat.h"
21 #include "tensorflow/core/platform/logging.h"
22 #include "tensorflow/core/platform/macros.h"
24 namespace tensorflow {
27 typedef ::tensorflow::error::Code Code;
33 void AppendToMessage(::tensorflow::Status* status, Args... args) {
34 *status = ::tensorflow::Status(
36 ::tensorflow::strings::StrCat(status->error_message(), "\n\t", args...));
42 const ::tensorflow::Status _status = (__VA_ARGS__); \
48 ::tensorflow::Status _status = (expr); \
50 ::tensorflow::errors::AppendToMessage(&_status, __VA_ARGS__); \
63 ::tensorflow::Status FUNC(Args... args) { \
64 return ::tensorflow::Status(::tensorflow::error::CONST, \
65 ::tensorflow::strings::StrCat(args...)); \
67 inline bool Is##FUNC(const ::tensorflow::Status& status) { \
68 return status.code() == ::tensorflow::error::CONST; \
91 using ::tensorflow::error::OK;
94 } // namespace tensorflow