Skip to content

Commit

Permalink
Fixes for clippy 1.76.
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentMazare committed Feb 8, 2024
1 parent 2626465 commit 4fc5709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/yolo/darknet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ where
slice.copy_(&src)
}

fn detect(xs: &Tensor, image_height: i64, classes: i64, anchors: &Vec<(i64, i64)>) -> Tensor {
fn detect(xs: &Tensor, image_height: i64, classes: i64, anchors: &[(i64, i64)]) -> Tensor {
let (bsize, _channels, height, _width) = xs.size4().unwrap();
let stride = image_height / height;
let grid_size = image_height / stride;
Expand Down

0 comments on commit 4fc5709

Please sign in to comment.