Overview

The Shape structure is used to describe the shape of a tensor and contains the following information:

size_t dim_num_;
int64_t dims_[kMaxDimNum];

dim_num_ indicates the number of dimensions of the shape, and dims_array indicates the specific shape of a tensor.