pub fn load_tensor<P>(filename: P) -> Result<Tensor>where P: AsRef<Path>,
Loads a tensor network from a HDF5 file.