文档
注册

SetTensorShape

函数功能

设置Tensor的shape。

函数原型

bool SetTensorShape(const TensorShape *shape)

参数说明

参数

输入/输出

说明

shape

输入

需要设置到Tensor的shape信息。

TensorShape类型。

返回值说明

bool类型。

  • true:表示设置shape成功。
  • false:表示失败。

约束说明

无。

调用示例

bool ret = tensor->SetTensorShape(shape);
搜索结果
找到“0”个结果

当前产品无相关内容

未找到相关内容,请尝试其他搜索词