GetTensorShape

Description

Obtains the shape of a tensor.

Prototype

std::shared_ptr<TensorShape> GetTensorShape() const

Parameters

None

Returns

An std::shared_ptr<TensorShape>, for the pointer to the tensor shape.

Restrictions

None

Example

auto shape = tensor->GetTensorShape();