设置Tensor的shape。
bool SetTensorShape(const TensorShape *shape)
参数
输入/输出
说明
shape
输入
需要设置到Tensor的shape信息。
TensorShape类型。
bool类型。
无。
bool ret = tensor->SetTensorShape(shape);