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