获取aclTensor的ViewShape。ViewShape表示aclTensor的逻辑shape。
假设一个aclTensor的StorageShape和ViewShape如下:
gert::Shape GetViewShape()
无
返回值为gert::Shape,记录了一组shape信息,例如一个三维shape:[10, 20, 30]。
无
1 2 3 |
void Func(const aclTensor *input) { auto shape = input->GetViewShape(); } |