Contents

init(bytesNoCopy:length:)

Creates a tensor data instance with the buffer of data and length of bytes you specify.

Declaration

convenience init(bytesNoCopy bytes: UnsafeMutableRawPointer, length: Int)

Parameters

  • bytes:

    A buffer that contains data.

  • length:

    The number of bytes you choose to reference from bytes. This number must not exceed the length of bytes.

See Also

Creating Tensor Data