More mnist training. (#275)

This commit is contained in:
Laurent Mazare
2023-07-29 13:29:31 +01:00
committed by GitHub
parent c0a8ed19eb
commit 07eb899729
2 changed files with 130 additions and 10 deletions

View File

@ -209,6 +209,7 @@ impl<'a> VarBuilder<'a> {
};
Ok(tensor)
}
pub fn get<S: Into<Shape>>(&self, s: S, tensor_name: &str) -> Result<Tensor> {
let data = self.data.as_ref();
let s: Shape = s.into();