GetViewFormat

函数功能

获取aclTensor的ViewFormat。ViewFormat为aclTensor的逻辑Format。

函数原型

ge::Format GetViewFormat()

参数说明

返回值说明

返回一个ge::Format ,本身是一个枚举,包含多种不同的Format,例如NCHW、ND等。

约束说明

调用示例

void Func(const aclTensor *input) {
    auto format = input->GetViewFormat();
}