Skip to main content

load_state_dict_from_bytes

Function load_state_dict_from_bytes 

Source
pub fn load_state_dict_from_bytes(
    data: &[u8],
) -> Result<HashMap<String, Tensor>>
Expand description

Load a state dict from safetensors bytes.

This replaces Tensor::load_multi(), allowing reads through FsOps.