mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 18:48:51 +00:00
More mnist training. (#275)
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user