mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 02:38:10 +00:00
Clippy fixes for 1.81.0. (#2461)
* Clippy fixes for 1.81.0. * Another fix.
This commit is contained in:
@ -161,7 +161,7 @@ impl C2f {
|
||||
let cv2 = ConvBlock::load(vb.pp("cv2"), (2 + n) * c, c2, 1, 1, None)?;
|
||||
let mut bottleneck = Vec::with_capacity(n);
|
||||
for idx in 0..n {
|
||||
let b = Bottleneck::load(vb.pp(&format!("bottleneck.{idx}")), c, c, shortcut)?;
|
||||
let b = Bottleneck::load(vb.pp(format!("bottleneck.{idx}")), c, c, shortcut)?;
|
||||
bottleneck.push(b)
|
||||
}
|
||||
Ok(Self {
|
||||
|
Reference in New Issue
Block a user