下载
中文
注册

Dims(int32_t ndims, const int64_t* shape)

函数功能

Dims对象的有参构造函数。

函数原型

Dims(int32_t ndims, const int64_t* shape);

参数说明

参数名

输入/输出

说明

ndims

输入

维度个数。请勿超过Dims的最大维度数8,若构造时传入的维度数大于8则会截取前8维的值

shape

输入

表示shape数组指针,shape数组元素个数必须与ndims相同

返回值说明

Dims对象。