tensorflow::TensorShape::num_elements()

int64 tensorflow::TensorShape::num_elements() const Returns the number of elements in the tensor. We use int64 and not size_t to be compatible with Eigen::Tensor which uses ptrdiff_t.

tensorflow::TensorShape::MaxDimensions()

static constexpr int tensorflow::TensorShape::MaxDimensions()

tensorflow::TensorShape::IsValidShape()

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

tensorflow::TensorShape::IsValid()

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

tensorflow::TensorShape::IsSameSize()

bool tensorflow::TensorShape::IsSameSize(const TensorShape &b) const Returns true if *this and b have the same sizes. Ignores dimension names.

tensorflow::TensorShape::InsertDim()

void tensorflow::TensorShape::InsertDim(int d, int64 size) Insert a dimension somewhere in the TensorShape. REQUIRES: 0 <= d <= dims() REQUIRES: size >= 0

tensorflow::TensorShape::end()

TensorShapeIter tensorflow::TensorShape::end() const

tensorflow::TensorShape::DumpRep()

void tensorflow::TensorShape::DumpRep() const

tensorflow::TensorShape::dim_sizes()

gtl::InlinedVector< int64, 4 > tensorflow::TensorShape::dim_sizes() const Returns sizes of all dimensions.

tensorflow::TensorShape::dim_size()

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