fromChannel
fun fromChannel(channel: FileChannel, offset: Long = 0, size: Long = channel.size() - offset): MmapTensorSource(source)
Memory-map an entire file for reading.
Return
MmapTensorSource for creating tensor views
Parameters
channel
the file channel to map
offset
starting offset in the file (typically 0)
size
number of bytes to map (typically file size)