mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 19:18:50 +00:00
Conv1d test with padding. (#356)
This commit is contained in:
@ -1060,7 +1060,6 @@ impl<'a> Map2 for Conv2D<'a> {
|
||||
let dst_idx = dst_idx + dst_w;
|
||||
let mut d = T::zero();
|
||||
for offset_h in 0..p.k_h {
|
||||
// TODO: Handle the case where padding is larger than p.k_h / 2.
|
||||
let src_h = (p.stride * dst_h + offset_h)
|
||||
.saturating_sub(p.padding)
|
||||
.min(p.i_h - 1);
|
||||
|
Reference in New Issue
Block a user