tensorflow :: 상태
#include <status.h>
Tensorflow에서 호출의 성공 또는 실패를 나타냅니다.
요약
생성자와 소멸자 | |
---|---|
Status () 성공 상태를 만듭니다. | |
Status (tensorflow::error::Code code, tensorflow::StringPiece msg) 지정된 오류 코드와 msg를 사용하여 더 자세한 정보가 포함 된 사람이 읽을 수있는 문자열로 상태를 만듭니다. | |
Status (const Status & s) 지정된 상태를 복사하십시오. |
공공 기능 | |
---|---|
IgnoreError () const | void |
ToString () const | string 인쇄에 적합한이 상태의 문자열 표현을 반환합니다. |
Update (const Status & new_status) | void |
code () const | tensorflow::error::Code |
error_message () const | const string & |
ok () const | bool 상태가 성공을 나타내는 경우 true를 반환합니다. |
operator!= (const Status & x) const | bool |
operator= (const Status & s) | void |
operator== (const Status & x) const | bool |
공개 정적 함수 | |
---|---|
OK () |
공공 기능
IgnoreError
void IgnoreError() const
상태
Status()
성공 상태를 만듭니다.
상태
Status( tensorflow::error::Code code, tensorflow::StringPiece msg )
지정된 오류 코드와 msg를 사용하여 더 자세한 정보가 포함 된 사람이 읽을 수있는 문자열로 상태를 만듭니다.
ToString
string ToString() const
인쇄에 적합한이 상태의 문자열 표현을 반환합니다.
성공하면 "OK"
문자열을 반환합니다.
최신 정보
void Update( const Status & new_status )
ok()
이면 new_status
를 *this
저장 *this
.
!ok()
이면 현재 상태를 유지하지만 new_status
에 대한 추가 정보를 추가 할 수 있습니다.
발생한 첫 번째 오류를 추적하는 편리한 방법입니다. 대신 : if (overall_status.ok()) overall_status = new_status
사용 : overall_status.Update(new_status);
암호
tensorflow::error::Code code() const
에러 메시지
const string & error_message() const
확인
bool ok() const
상태가 성공을 나타내는 경우 true를 반환합니다.
연산자! =
bool operator!=( const Status & x ) const
operator =
void operator=( const Status & s )
연산자 ==
bool operator==( const Status & x ) const
공개 정적 함수
확인
Status OK()