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.

Parameters

shape[in] The shape dimensions.

const ShapeVector &shape() const

Get the shape dimensions.

Returns

The shape dimensions.