candle_core::pickle

Function read_all

Source
pub fn read_all<P: AsRef<Path>>(path: P) -> Result<Vec<(String, Tensor)>>
Expand description

Read all the tensors from a PyTorch pth file.

ยงArguments

  • path - Path to the pth file.