Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ameroyer committed Dec 23, 2024
1 parent af11cf8 commit 732994b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion candle-transformers/src/models/pixtral/vision_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ impl Model {
let idy = Tensor::arange(0, num_patches_w as u32, device)?;
let mesh = Tensor::meshgrid(&[idx, idy], false)?;
let ids = (&mesh[0] * (self.max_image_width as f64) + &mesh[1])?;
Ok(ids.flatten_all()?)
Ok(ids.flatten_all())
}
}

Expand Down

0 comments on commit 732994b

Please sign in to comment.