SafeTensorsFile

class SafeTensorsFile(val file: File) : Closeable(source)

Constructors

Link copied to clipboard
constructor(file: File)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Entry(val name: String, val dtype: String, val shape: IntArray, val byteOffset: Long, val byteLength: Long)

Properties

Link copied to clipboard
Link copied to clipboard
val file: File
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
operator fun contains(name: String): Boolean
Link copied to clipboard
Link copied to clipboard
fun load(name: String): Tensor
Link copied to clipboard
fun map(name: String): ByteBuffer
Link copied to clipboard
fun readInto(name: String, dest: FloatArray, destOffset: Int = 0)
Link copied to clipboard
fun readRaw(name: String, dest: ByteArray, destOffset: Int = 0)