Skip to content

Commit

Permalink
patch conv
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-camuto committed Feb 8, 2025
1 parent 8f0c460 commit 3cd9d2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benches/accum_conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ impl Circuit<Fr> for MyCircuit {
padding: vec![(0, 0)],
stride: vec![1; 2],
group: 1,
data_format: DataFormat::NCHW,
kernel_format: KernelFormat::OIHW,
}),
)
.unwrap();
Expand Down
3 changes: 3 additions & 0 deletions examples/conv2d_mnist/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ use instant::Instant;
use mnist::*;
use rand::rngs::OsRng;
use std::marker::PhantomData;
use tract_onnx::tract_core::ndarray::Data;

mod params;

Expand Down Expand Up @@ -208,6 +209,8 @@ where
padding: vec![(PADDING, PADDING); 2],
stride: vec![STRIDE; 2],
group: 1,
data_format: DataFormat::NCHW,
kernel_format: KernelFormat::OIHW,
};
let x = config
.layer_config
Expand Down

0 comments on commit 3cd9d2a

Please sign in to comment.