TensorFlow教程之API DOC 6.1.5 Class tensorflow::Status

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权。

Class tensorflow::Status

Member Summary

Member Details

tensorflow::Status::Status()

Create a success status.

tensorflow::Status::~Status()

tensorflow::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.

tensorflow::Status::Status(const Status &s)

Copy the specified status.

void tensorflow::Status::operator=(const Status &s)

bool tensorflow::Status::ok() const

Returns true iff the status indicates success.

tensorflow::error::Code tensorflow::Status::code() const

const string& tensorflow::Status::error_message() const

bool tensorflow::Status::operator==(const Status &x) const

bool tensorflow::Status::operator!=(const Status &x) const

void tensorflow::Status::Update(const Status &new_status)

If ok(), stores new_status into *this. If !ok(), preserves the current status, but may augment with additional information about new_status.

Convenient way of keeping track of the first error encountered. Instead of: if (overall_status.ok()) overall_status = new_status Use: overall_status.Update(new_status);

string tensorflow::Status::ToString() const

Return a string representation of this status suitable for printing. Returns the string "OK" for success.

static Status tensorflow::Status::OK()

时间: 2024-08-21 06:03:42

TensorFlow教程之API DOC 6.1.5 Class tensorflow::Status的相关文章

TensorFlow教程之API DOC 6.1.6 Class tensorflow::Tensor

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::Tensor Represents an n-dimensional array of values. Member Summary tensorflow::Tensor::Tensor() Default Tensor constructor. Creates a 1-dimension, 0-element float tensor. tensorflow::Tensor

TensorFlow教程之API DOC 6.1.8 Class tensorflow::TensorShape

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::TensorShape Manages the dimensions of a Tensor and their sizes. Member Summary tensorflow::TensorShape::TensorShape(gtl::ArraySlice< int64 > dim_sizes) Construct a TensorShape from the pro

TensorFlow教程之API DOC 6.1.7 Class tensorflow::TensorBuffer

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::TensorBuffer Member Summary tensorflow::TensorBuffer::~TensorBuffer() override virtual void* tensorflow::TensorBuffer::data() const =0 virtual size_t tensorflow::TensorBuffer::size() const

TensorFlow教程之API DOC 6.1.11 Class tensorflow::Thread

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::Thread Member Summary tensorflow::Thread::Thread() virtual tensorflow::Thread::~Thread() Blocks until the thread of control stops running. Member Details tensorflow::Thread::Thread() virtua

TensorFlow教程之API DOC 6.1.12 Class tensorflow::WritableFile

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::WritableFile A file abstraction for sequential writing. The implementation must provide buffering since callers may append small fragments at a time to the file. Member Summary tensorflow::

TensorFlow教程之API DOC 6.1.9 Class tensorflow::TensorShapeIter

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::TensorShapeIter Member Summary tensorflow::TensorShapeIter::TensorShapeIter(const TensorShape *shape, int d) bool tensorflow::TensorShapeIter::operator==(const TensorShapeIter &rhs) bool te

TensorFlow教程之API DOC 6.1.10 Class tensorflow::TensorShapeUtils

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::TensorShapeUtils Static helper routines for TensorShape. Includes a few common predicates on a tensor shape. Member Summary static bool tensorflow::TensorShapeUtils::IsScalar(const TensorSh

TensorFlow教程之API DOC 6.1.3 Class tensorflow::RandomAccessFile

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Class tensorflow::RandomAccessFile A file abstraction for randomly reading the contents of a file. Member Summary tensorflow::RandomAccessFile::RandomAccessFile() virtual tensorflow::RandomAccessFile::~Rando

TensorFlow教程之API DOC 6.1.13 Struct tensorflow::SessionOptions

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. Configuration information for a Session . Member Summary Env* tensorflow::SessionOptions::env The environment to use. string tensorflow::SessionOptions::target The TensorFlow runtime to connect to. ConfigPro