Skip to content

Commit

Permalink
######
Browse files Browse the repository at this point in the history
  • Loading branch information
jamjamjon committed Dec 29, 2024
1 parent cfb1a06 commit a30adb7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/misc/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ impl Ops<'_> {
}

pub fn make_divisible(x: usize, divisor: usize) -> usize {
(x + divisor - 1) / divisor * divisor
// (x + divisor - 1) / divisor * divisor
x.div_ceil(divisor)
}

// deprecated
Expand Down
14 changes: 7 additions & 7 deletions src/models/yolo/preds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ impl YOLOPredsFormat {
x: ArrayBase<ViewRepr<&'a f32>, Dim<IxDynImpl>>,
nc: usize,
) -> (
Option<ArrayView<f32, IxDyn>>,
Option<ArrayView<f32, IxDyn>>,
ArrayView<f32, IxDyn>,
Option<ArrayView<f32, IxDyn>>,
Option<ArrayView<f32, IxDyn>>,
Option<ArrayView<f32, IxDyn>>,
Option<ArrayView<f32, IxDyn>>,
Option<ArrayView<'a, f32, IxDyn>>,
Option<ArrayView<'a, f32, IxDyn>>,
ArrayView<'a, f32, IxDyn>,
Option<ArrayView<'a, f32, IxDyn>>,
Option<ArrayView<'a, f32, IxDyn>>,
Option<ArrayView<'a, f32, IxDyn>>,
Option<ArrayView<'a, f32, IxDyn>>,
) {
match self.task() {
Task::ImageClassification => (None, None, x, None, None, None, None),
Expand Down

0 comments on commit a30adb7

Please sign in to comment.