Contents

init(immutableBytesNoCopy:length:)

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

Declaration

convenience init(immutableBytesNoCopy bytes: UnsafeRawPointer, length: Int)

Parameters

  • bytes:

    A buffer that contains immutable data.

  • length:

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

Discussion

See Also

Creating Tensor Data