mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 19:18:50 +00:00
fixes slice_scatter dim type (#988)
This commit is contained in:
@ -1133,7 +1133,7 @@ impl Tensor {
|
||||
}
|
||||
|
||||
/// Embeds the values of the `src` tensor into the `self` tensor on the specified dimension.
|
||||
pub fn slice_scatter<D: Dim>(&self, src: &Self, dim: usize, start: usize) -> Result<Self> {
|
||||
pub fn slice_scatter<D: Dim>(&self, src: &Self, dim: D, start: usize) -> Result<Self> {
|
||||
let dim = dim.to_index(self.shape(), "slice-scatter")?;
|
||||
if dim == 0 {
|
||||
self.slice_scatter0(src, start)
|
||||
|
Reference in New Issue
Block a user