Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
laggui committed Nov 13, 2024
1 parent e27a4d8 commit 14ffa90
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/burn-candle/src/ops/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,7 @@ pub fn narrow(tensor: CandleTensor, dim: usize, start: usize, length: usize) ->
pub fn chunk(tensor: CandleTensor, chunks: usize, dim: usize) -> Vec<CandleTensor> {
let tensors = tensor.tensor.chunk(chunks, dim);
match tensors {
Ok(tensors) => tensors
.into_iter()
.map(|tensor| CandleTensor::new(tensor))
.collect(),
Ok(tensors) => tensors.into_iter().map(CandleTensor::new).collect(),
Err(e) => panic!("error chunk from Candle"),
}
}
Expand Down

0 comments on commit 14ffa90

Please sign in to comment.