跳到主要内容

GetShape

函数功能​

获取TensorDesc所描述Tensor的Shape。

函数原型​

Shape GetShape() const;

参数说明​

无

返回值​

类型描述
ShapeTensorDesc描述的shape。

异常处理​

无

约束说明​

由于返回的Shape信息为值拷贝,因此修改返回的Shape信息,不影响TensorDesc中已有的Shape信息。