SetTensorShape

函数功能

设置Tensor的shape。

函数原型

bool SetTensorShape(const TensorShape *shape)

参数说明

参数

输入/输出

说明

shape

输入

需要设置到Tensor的shape信息。

TensorShape类型。

返回值说明

bool类型。

约束说明

无。

调用示例

bool ret = tensor->SetTensorShape(shape);