GetTensorShape 函数功能获取Tensor的shape。 函数原型std::shared_ptr<TensorShape> GetTensorShape() const 参数说明无 返回值说明std::shared_ptr<TensorShape>,Tensor的shape的指针。 约束说明无。 调用示例auto shape = tensor->GetTensorShape(); 父主题: Tensor类