获取aclTensor的ViewFormat。ViewFormat为aclTensor的逻辑Format。
op::Format GetViewFormat()
无
返回一个op::Format(即ge::Format) ,本身是一个枚举,包含多种不同的Format,例如NCHW、ND等。
无
1 2 3 |
void Func(const aclTensor *input) { auto format = input->GetViewFormat(); } |