Class SequenceShape
Defined in File dshape.h
Inheritance Relationships
Base Type
public mindspore::abstract::BaseShape
(Class BaseShape)
Derived Types
public mindspore::abstract::ListShape
(Class ListShape)public mindspore::abstract::TupleShape
(Class TupleShape)
Class Documentation
-
class SequenceShape : public mindspore::abstract::BaseShape
SequequeShape defines base class of multiple-shape classes.
Subclassed by mindspore::abstract::ListShape, mindspore::abstract::TupleShape
Public Functions
-
inline SequenceShape()
Constructor of SequenceShape.
-
inline explicit SequenceShape(const BaseShapePtrList &shapes)
Constructor of SequenceShape.
- Parameters
shapes – [in] All element-shapes.
-
~SequenceShape() override = default
Destructor of SequenceShape.
- MS_DECLARE_PARENT(SequenceShape, BaseShape) std BaseShapePtrList ElementsClone () const
Get the description string about the SequenceShape object.
Clone all element-shapes.
- Returns
The description string about the SequenceShape object.
- Returns
New cloned element-shapes.
-
template<typename T>
bool SequenceEqual(const BaseShape &other) const Check whether SequenceShape object is equal to a BaseShape object.
- Parameters
other – [in] Another SequenceShape object.
- Returns
True if current SequenceShape object is equal to another BaseShape object, otherwise false.
-
inline const BaseShapePtrList &shape() const
Get all element-shapes.
- Returns
All element-shapes.
-
inline size_t size() const
Get the number of element-shapes.
- Returns
The number of element-shapes.
-
inline virtual bool IsDynamic() const override
Whether the object’s dimensions are dynamic.
- Returns
True if the object’s dimensions are dynamic, otherwise false.
-
inline virtual bool IsDimZero() const override
Whether the object’s dimension is zero.
- Returns
True if the object’s dimension is zero, otherwise false.
-
inline virtual bool IsDimUnknown() const override
Whether the object’s dimensions are unknown.
- Returns
True if the object’s dimensions are unknown, otherwise false.
-
inline SequenceShape()