get_shape接口
接口功能
获取张量对象shape。
C++函数原型
const std::vector<int64_t> &GetShape() const
Python函数
get_shape()
接口参数
无。
使用样例
获取tensor shape。
1 | shape = infer_tensor.get_shape() |
父主题: InferTensor
获取张量对象shape。
const std::vector<int64_t> &GetShape() const
get_shape()
无。
获取tensor shape。
1 | shape = infer_tensor.get_shape() |