Skip to content

Commit

Permalink
fix bench
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Nov 12, 2020
1 parent 332b172 commit 437063d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions linalg/benches/conv_for_wavenet_hw.rs
Expand Up @@ -15,8 +15,7 @@ fn conv(c: &mut Criterion, dilation: usize, pulse: usize, ci: usize, co: usize)
let mut conv = (tract_linalg::ops().mmm_f32)(co, kernel_offsets.len(), data_offsets.len());
conv.c_from_data_and_strides(t as _, 1);
let a =
Tensor::from_slice_align(&vec![0.0; conv.a_pack().len()], conv.a_pack().alignment())
.unwrap();
Tensor::zero_aligned::<f32>(&[conv.a_pack().len()], conv.a_pack().alignment()).unwrap();
let input = Tensor::zero::<f32>(&[ci, t]).unwrap();
let mut output = Tensor::zero::<f32>(&[co, t]).unwrap();
be.iter(move || conv.run(&a.view(), &input.view(), &mut output.view_mut(), &[]).unwrap());
Expand Down

0 comments on commit 437063d

Please sign in to comment.