tensorflow::TensorShapeDim

Member Details int64 tensorflow::TensorShapeDim::size tensorflow::TensorShapeDim::TensorShapeDim(int64 s)

tensorflow::TensorShapeUtils::IsMatrix()

static bool tensorflow::TensorShapeUtils::IsMatrix(const TensorShape &shape)

tensorflow::TensorShapeUtils::IsMatrixOrHigher()

static bool tensorflow::TensorShapeUtils::IsMatrixOrHigher(const TensorShape &shape)

tensorflow::TensorShapeDim::TensorShapeDim()

tensorflow::TensorShapeDim::TensorShapeDim(int64 s)

tensorflow::TensorShapeUtils

Static helper routines for TensorShape. Includes a few common predicates on a tensor shape. Member Details static bool tensorflow::TensorShapeUtils::IsScalar(const TensorShape &shape) static bool tensorflow::TensorShapeUtils::IsVector(const TensorShape &shape) static bool tensorflow::TensorShapeUtils::IsVectorOrHigher(const TensorShape &shape) static bool tensorflow::TensorShapeUtils::IsMatrix(const TensorShape &shape) static bool tensorflow::TensorShapeUtils::IsSquareMatrix(con

tensorflow::TensorShape::operator=()

void tensorflow::TensorShape::operator=(const TensorShape &b)

tensorflow::TensorShape::operator==()

bool tensorflow::TensorShape::operator==(const TensorShape &b) const

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::set_dim()

void tensorflow::TensorShape::set_dim(int d, int64 size) Modifies the size of the dimension d to be size REQUIRES: 0 <= d < dims() REQUIRES: size >= 0

tensorflow::TensorShape::RemoveDim()

void tensorflow::TensorShape::RemoveDim(int d) Removes dimension d from the TensorShape. REQUIRES: 0 <= d < dims()