Class Shape
Defined in File shape.h
Inheritance Relationships
Base Type
public mindspore::api::Base
(Class Base)
Class Documentation
-
class Shape : public mindspore::api::Base
Shape defines dimensions of a tensor.
Public Functions
-
explicit Shape(const ShapeVector &shape)
Create Shape with the given shape dimensions.
- Parameters
shape – [in] The shape dimensions.
-
const ShapeVector &shape() const
Get the shape dimensions.
- Returns
The shape dimensions.
-
explicit Shape(const ShapeVector &shape)