tensorflow::RandomAccessFile

A file abstraction for randomly reading the contents of a file. Member Details tensorflow::RandomAccessFile::RandomAccessFile() tensorflow::RandomAccessFile::~RandomAccessFile() virtual Status tensorflow::RandomAccessFile::Read(uint64 offset, size_t n, StringPiece *result, char *scratch) const =0 Reads up to n bytes from the file starting at offset. scratch[0..n-1] may be written by this routine. Sets *result to the data that was read (including if fewer than n bytes were successfully read). Ma

tensorflow::PartialTensorShapeUtils::PartialShapeListString()

string tensorflow::PartialTensorShapeUtils::PartialShapeListString(const gtl::ArraySlice< PartialTensorShape > &shapes)

tensorflow::PartialTensorShapeUtils

Static helper routines for PartialTensorShape. Includes a few common predicates on a partially known tensor shape. Member Details string tensorflow::PartialTensorShapeUtils::PartialShapeListString(const gtl::ArraySlice< PartialTensorShape > &shapes) bool tensorflow::PartialTensorShapeUtils::AreCompatible(const gtl::ArraySlice< PartialTensorShape > &shapes0, const gtl::ArraySlice< PartialTensorShape > &shapes1)

tensorflow::PartialTensorShape::MakePartialShape()

static Status tensorflow::PartialTensorShape::MakePartialShape(const int32 *dims, int n, PartialTensorShape *out) Returns a PartialTensorShape whose dimensions are dims[0], dims[1], ..., dims[n-1]. Values of -1 are considered "unknown".

tensorflow::PartialTensorShape::MergeWith()

Status tensorflow::PartialTensorShape::MergeWith(const PartialTensorShape &shape, PartialTensorShape *result) const Merges all the dimensions from shape. Returns InvalidArgument error if either shape has a different rank or if any of the dimensions are incompatible.

tensorflow::PartialTensorShape::dims()

int tensorflow::PartialTensorShape::dims() const Return the number of dimensions in the tensor. If the number of dimensions is unknown, return -1.

tensorflow::PartialTensorShape::IsValid()

bool tensorflow::PartialTensorShape::IsValid(const TensorShapeProto &proto) Returns true iff proto is a valid partial tensor shape.

tensorflow::PartialTensorShape::dim_size()

int64 tensorflow::PartialTensorShape::dim_size(int d) const Returns the number of elements in dimension d. REQUIRES: 0 <= d < dims()

tensorflow::PartialTensorShape::IsValidShape()

Status tensorflow::PartialTensorShape::IsValidShape(const TensorShapeProto &proto) Returns OK iff proto is a valid tensor shape, and a descriptive error status otherwise.

tensorflow::PartialTensorShape::IsCompatibleWith()

bool tensorflow::PartialTensorShape::IsCompatibleWith(const PartialTensorShape &shape) const Return true iff the ranks match, and if the dimensions all either match or one is unknown.