shapedArray(of:)
Returns a materialized representation of the tensor.
Declaration
func shapedArray<Scalar>(of scalarType: Scalar.Type) async -> MLShapedArray<Scalar> where Scalar : MLShapedArrayScalar, Scalar : MLTensorScalarReturn Value
A MLShapedArray with the contents of the tensor.