mirror of
https://github.com/huggingface/candle.git
synced 2025-06-21 12:20:46 +00:00
Lint fixes introduced with Rust 1.83 (#2646)
* Fixes for lint errors introduced with Rust 1.83 * rustfmt * Fix more lints. --------- Co-authored-by: Laurent <laurent.mazare@gmail.com>
This commit is contained in:

committed by
GitHub

parent
23ed8a9ded
commit
54e7fc3c97
@ -21,8 +21,8 @@ fn conv2d_same(
|
||||
let module = candle_nn::func(move |xs| {
|
||||
let ih = xs.dim(2)?;
|
||||
let iw = xs.dim(3)?;
|
||||
let oh = (ih + s - 1) / s;
|
||||
let ow = (iw + s - 1) / s;
|
||||
let oh = ih.div_ceil(s);
|
||||
let ow = iw.div_ceil(s);
|
||||
let pad_h = usize::max((oh - 1) * s + k - ih, 0);
|
||||
let pad_w = usize::max((ow - 1) * s + k - iw, 0);
|
||||
if pad_h > 0 || pad_w > 0 {
|
||||
|
Reference in New Issue
Block a user