From 14ffa9033fae2df76442d926dde7979b6d5c98d6 Mon Sep 17 00:00:00 2001 From: Guillaume Lagrange Date: Tue, 12 Nov 2024 14:23:42 -0500 Subject: [PATCH] Fix clippy --- crates/burn-candle/src/ops/base.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/burn-candle/src/ops/base.rs b/crates/burn-candle/src/ops/base.rs index 59539b26c6..cf05756877 100644 --- a/crates/burn-candle/src/ops/base.rs +++ b/crates/burn-candle/src/ops/base.rs @@ -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 { 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"), } }