write

fun write(sink: Sink, block: SafeTensorsWriter.() -> Unit)(source)

Write a SafeTensors file to the given sink.

Parameters

sink

The output sink to write to

block

Configuration block for adding metadata and tensors