Skip to content

Commit

Permalink
clip
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Sep 25, 2024
1 parent 323e224 commit 9c0719b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions data/src/tensor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ pub fn vector_size() -> usize {
{
return if is_x86_feature_detected!("avx512f") { 512 / 8 } else { 256 / 8 };
}
return 128 / 8;
128 / 8
}

impl Tensor {
#[allow(unreachable_code, unexpected_cfgs)]
pub fn default_alignment(dt: DatumType, shape: &[usize]) -> usize {
if shape.len() == 0 {
return dt.alignment();
dt.alignment()
} else {
vector_size()
}
Expand Down
1 change: 0 additions & 1 deletion linalg/src/x86_64_fma/mmm.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//use crate::frame::block_quant::{PackedBlockQuantFormat, Q4_0};
use crate::frame::block_quant::*;
use crate::frame::PackedFormat;
use crate::mmm::DynKernel;
use tract_data::prelude::*;

const AVX2: fn() -> bool = || is_x86_feature_detected!("avx2");
Expand Down

0 comments on commit 9c0719b

Please sign in to comment.