Skip to content

Commit

Permalink
Merge pull request #847 from LaurentMazare/clippy-1.76
Browse files Browse the repository at this point in the history
Fixes for clippy 1.76.
  • Loading branch information
LaurentMazare authored Feb 8, 2024
2 parents 2626465 + 4fc5709 commit 4cdee63
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 4cdee63

Please sign in to comment.