summaryrefslogtreecommitdiff
path: root/candle-core/src/indexer.rs
diff options
context:
space:
mode:
authorNicolas Patry <patry.nicolas@protonmail.com>2023-07-10 19:34:38 +0200
committerNicolas Patry <patry.nicolas@protonmail.com>2023-07-10 19:34:38 +0200
commit1ad235953bd5bd30c1e080bcb01f0dec593c9731 (patch)
tree8ebe38e57dbe4e78948964c2afae770ea7075f74 /candle-core/src/indexer.rs
parentc9d354f5ae1a7d3d24e01efe2486e2fa45986c32 (diff)
downloadcandle-1ad235953bd5bd30c1e080bcb01f0dec593c9731.tar.gz
candle-1ad235953bd5bd30c1e080bcb01f0dec593c9731.tar.bz2
candle-1ad235953bd5bd30c1e080bcb01f0dec593c9731.zip
Clippy ?
Diffstat (limited to 'candle-core/src/indexer.rs')
-rw-r--r--candle-core/src/indexer.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/candle-core/src/indexer.rs b/candle-core/src/indexer.rs
index 59cefc19..22719527 100644
--- a/candle-core/src/indexer.rs
+++ b/candle-core/src/indexer.rs
@@ -42,7 +42,6 @@ impl Tensor {
Bound::Excluded(n) => *n,
Bound::Unbounded => dims[i],
};
- let len = stop - start;
let out = x.narrow(current_dim, start, stop - start)?;
current_dim += 1;
out