Dim对象的有参构造函数。
explicit Dims(const std::vector<int64_t>& shape);
参数名
输入/输出
说明
shape
输入
表示shape数组的vector数组。数组长度请勿超过Dims的最大维度数8,若构造时传入的维度数大于8则会截取前8维的值。
Dim对象。