Fix clippy lints for 1.76. (#1682)

This commit is contained in:
Laurent Mazare
2024-02-08 16:48:47 +01:00
committed by GitHub
parent cdc3823d8f
commit 020a979de2
2 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ fn detect(
xs: &Tensor,
image_height: usize,
classes: usize,
anchors: &Vec<(usize, usize)>,
anchors: &[(usize, usize)],
) -> Result<Tensor> {
let (bsize, _channels, height, _width) = xs.dims4()?;
let stride = image_height / height;