Contents

shapedArray(of:)

Returns a materialized representation of the tensor.

Declaration

func shapedArray<Scalar>(of scalarType: Scalar.Type) async -> MLShapedArray<Scalar> where Scalar : MLShapedArrayScalar, Scalar : MLTensorScalar

Return Value

A MLShapedArray with the contents of the tensor.