diff options
author | Laurent Mazare <laurent.mazare@gmail.com> | 2023-08-09 06:45:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 05:45:38 +0100 |
commit | dbc6f281c9c5735e53a03f8bb92c575677ef76b1 (patch) | |
tree | 4bbfa46f1c206cbfb613b7ec37ec721012e11a64 /candle-core/src | |
parent | cf965ecaa854a2f562a11c3885a5ab837757a5a7 (diff) | |
download | candle-dbc6f281c9c5735e53a03f8bb92c575677ef76b1.tar.gz candle-dbc6f281c9c5735e53a03f8bb92c575677ef76b1.tar.bz2 candle-dbc6f281c9c5735e53a03f8bb92c575677ef76b1.zip |
Conv1d test with padding. (#356)
Diffstat (limited to 'candle-core/src')
-rw-r--r-- | candle-core/src/cpu_backend.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/candle-core/src/cpu_backend.rs b/candle-core/src/cpu_backend.rs index 05c1f4e8..0ec19559 100644 --- a/candle-core/src/cpu_backend.rs +++ b/candle-core/src/cpu_backend.rs @@ -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); |