mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 18:48:51 +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
@ -89,7 +89,7 @@ impl Config {
|
||||
|
||||
fn frame_rate(&self) -> usize {
|
||||
let hop_length: usize = self.upsampling_ratios.iter().product();
|
||||
(self.sampling_rate + hop_length - 1) / hop_length
|
||||
self.sampling_rate.div_ceil(hop_length)
|
||||
}
|
||||
|
||||
fn num_quantizers(&self) -> usize {
|
||||
|
Reference in New Issue
Block a user