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.
static constexpr int tensorflow::TensorShape::MaxDimensions()
Status tensorflow::TensorShape::IsValidShape(const TensorShapeProto &proto) Returns OK iff proto is a valid tensor shape, and a descriptive error status otherwise.
bool tensorflow::TensorShape::IsValid(const TensorShapeProto &proto) Returns true iff proto is a valid tensor shape.
bool tensorflow::TensorShape::IsSameSize(const TensorShape &b) const Returns true if *this and b have the same sizes. Ignores dimension names.
void tensorflow::TensorShape::InsertDim(int d, int64 size) Insert a dimension somewhere in the TensorShape. REQUIRES: 0 <= d <= dims() REQUIRES: size >= 0
TensorShapeIter tensorflow::TensorShape::end() const
void tensorflow::TensorShape::DumpRep() const
gtl::InlinedVector< int64, 4 > tensorflow::TensorShape::dim_sizes() const Returns sizes of all dimensions.
int64 tensorflow::TensorShape::dim_size(int d) const Returns the number of elements in dimension d. REQUIRES: 0 <= d < dims()
Page 4 of 319