Skip to main content

read

Function read 

Source
pub fn read(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.