Bugfix for conv2d. (#343)

This commit is contained in:
Laurent Mazare
2023-08-08 16:20:00 +02:00
committed by GitHub
parent 89d3926c9b
commit 13ce68ff9b

View File

@ -1059,7 +1059,7 @@ impl<'a> Map2 for Conv2D<'a> {
let dst_idx = dst_idx + dst_c_idx * out_h * out_w;
for dst_h in 0..out_h {
let dst_idx = dst_idx + dst_h * out_w;
for dst_w in 0..out_h {
for dst_w in 0..out_w {
let dst_idx = dst_idx + dst_w;
let mut d = T::zero();
for offset_h in 0..p.k_h {