mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 11:08:52 +00:00
Softmax tests + fix.
This commit is contained in:
@ -660,7 +660,7 @@ impl Tensor {
|
||||
}
|
||||
let mut storage = self.device().zeros(&shape, self.dtype())?;
|
||||
self.storage
|
||||
.copy_strided_src(&mut storage, &shape, &self.stride, 0)?;
|
||||
.copy_strided_src(&mut storage, &self.shape, &self.stride, 0)?;
|
||||
let op = if self.track_op() {
|
||||
Some(Op::Reshape(self.clone()))
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user