昇腾社区首页
中文
注册

预留接口

表1 接口列表

接口定义

功能说明

CanPickViewAsContiguous(std::initializer_list<const aclTensor *> tensorList)

判断给定tensorList是否连续存储或者转置连续存储。

CanPickViewAsContiguous(const aclTensor *tensor)

判断给定tensor是否连续存储或者转置连续存储。

Validate(const aclTensor *tensor)

判断给定tensor的view shape、view stride、view offset是否合法。