Skip to main content

load_into

Function load_into 

Source
pub fn load_into<T: Tree>(path: impl AsRef<Path>, tree: &mut T) -> Result<()>
Expand description

Reads a file written by save into tree by path, strictly: every leaf must be in the file with its shape, and nothing else (loaded dtypes are kept). On any problem the error lists every one and tree is unchanged.