Class Shape

Inheritance Relationships

Base Type

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.

参数

shape[in] The shape dimensions.

const ShapeVector &shape() const

Get the shape dimensions.

返回

The shape dimensions.