Skip to main content

load_tensor

Function load_tensor 

Source
pub fn load_tensor(
    content: &Content,
    reader: &mut (impl Read + Seek),
    name: &str,
    device: &Device,
    dtype: DType,
) -> Result<Tensor>
Expand description

Dequantize a named GGUF tensor and cast it to dtype.