toNSData

fun ByteArray.toNSData(): NSData

Copies the bytes into a new NSData.


fun Tensor.toNSData(): NSData

Copies the tensor's float32 values (native byte order) into a new NSData.