Skip to main content

read_safetensors

Function read_safetensors 

Source
pub fn read_safetensors(
    source: &dyn ByteSource,
    object: ObjectId,
) -> Result<Inventory>
Expand description

Read one safetensors header through a byte source. Tensor payloads remain in that source; successful inspection does not claim their bytes were verified.