Contents

init(shape:)

Creates a tensor without data, with the shape you specify.

Declaration

convenience init(shape: [Int])

Parameters

  • shape:

    An array that contains the sizes of each dimension.

Discussion

The tensor data type is MLCDataType.float32.

See Also

Creating Tensors by Specifying Shape