Skip to content

Commit c84213e

Browse files
committed
fixes
1 parent c4f3d4b commit c84213e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

jix/src/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ impl<S: ArrayStorage> Array<S> {
790790
} else {
791791
// Custom layout hint
792792
let alloc_shape =
793-
S::Dimension::from_fn(ndim, |i| out_shape[layout_order[i] as usize] as u64);
793+
S::Dimension::from_fn(ndim, |i| out_shape[layout_order[i] as usize]);
794794
let mut inv_order = S::Dimension::from_fn(ndim, |_| 0);
795795
for dim in 0..ndim {
796796
inv_order[layout_order[dim] as usize] = dim as u64;

jix/src/storage/params.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ fn max_cost_orders(inputs: &[(f32, &[DimIdx], &[DimIdx])]) -> (DimArray<DimIdx>,
804804
.iter()
805805
.map(|(cost, _, _)| cost)
806806
.enumerate()
807-
.max_by(|(i_a, a), (i_b, b)| a.partial_cmp(&b).unwrap().then(i_a.cmp(i_b)))
807+
.max_by(|(i_a, a), (i_b, b)| a.partial_cmp(b).unwrap().then(i_a.cmp(i_b)))
808808
.unwrap()
809809
.0;
810810
let (_, scale_order, layout_order) = inputs[max_cost_index];

0 commit comments

Comments
 (0)