This commit is contained in:
Nicolas Patry
2023-07-10 19:34:38 +02:00
parent c9d354f5ae
commit 1ad235953b

View File

@ -42,7 +42,6 @@ impl Tensor {
Bound::Excluded(n) => *n, Bound::Excluded(n) => *n,
Bound::Unbounded => dims[i], Bound::Unbounded => dims[i],
}; };
let len = stop - start;
let out = x.narrow(current_dim, start, stop - start)?; let out = x.narrow(current_dim, start, stop - start)?;
current_dim += 1; current_dim += 1;
out out