mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 19:47:12 +00:00
Do not ignore errors when cloning the storage.
This commit is contained in:
@ -441,7 +441,7 @@ impl Tensor {
|
||||
(stride[n - 2], stride[n - 1]) = (stride[n - 1], stride[n - 2]);
|
||||
let tensor_ = Tensor_ {
|
||||
id: TensorId::new(),
|
||||
storage: self.storage.clone(),
|
||||
storage: self.storage.try_clone()?,
|
||||
shape: Shape::from(dims),
|
||||
stride,
|
||||
// TODO The op should have a backward
|
||||
|
Reference in New Issue
Block a user