tensorflow::PartialTensorShapeUtils::AreCompatible()

bool tensorflow::PartialTensorShapeUtils::AreCompatible(const gtl::ArraySlice< PartialTensorShape > &shapes0, const gtl::ArraySlice< PartialTensorShape > &shapes1)

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

tensorflow::PartialTensorShape::PartialTensorShape() Construct an unknown PartialTensorShape.

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

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

tensorflow::PartialTensorShape::IsFullyDefined()

bool tensorflow::PartialTensorShape::IsFullyDefined() const Return true iff the rank and all of the dimensions are well defined.

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.

tensorflow::PartialTensorShape::dim_sizes()

gtl::ArraySlice<int64> tensorflow::PartialTensorShape::dim_sizes() const Returns sizes of all dimensions.