Status
tensorflow C++ API
Denotes success or failure of a call in Tensorflow.
Public functions
IgnoreError
void IgnoreError() const
Status
Status()
Create a success status.
Status
Status(
tensorflow::error::Code code,
tensorflow::StringPiece msg
)
Create a status with the specified error code and msg as a human-readable string containing more detailed information.
Status
{#tostring}
Status(
const Status & s
)
Copy the specified status.Status
###
ToString {#tostring}
string ToString() const
Return a string representation of this status suitable for printing.
Returns the string"OK"for success.
Update
void Update(
const Status & new_status
)
Ifok(), storesnew_statusinto*this.
If!ok(), preserves the current status, but may augment with additional information aboutnew_status.
Convenient way of keeping track of the first error encountered. Instead of:if (overall_status.ok()) overall_status = new_statusUse:overall_status.Update(new_status);
code
tensorflow::error::Code code() const
error_message
const string & error_message() const
ok
bool ok() const
Returns true iff the status indicates success.
operator!=
bool operator!=(
const Status & x
) const
operator=
void operator=(
const Status & s
)
operator==
bool operator==(
const Status & x
) const
~Status
~
Status
()
Public static functions
OK
Status OK()
Status Block
Source link :https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_core.cpp

Argument:
- Status status: Get the status of clientsession.
Output:
- Output
output: Print status error or result string.