Skip to content

Commit e138e78

Browse files
adding suggested changes
Co-authored-by: Michael Abbott <32575566+mcabbott@users.noreply.github.com>
1 parent db5d979 commit e138e78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/layers/conv.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ This has `N=2` spatial dimensions, and needs a kernel size like `(5,5)`,
4343
a 2-tuple of integers.
4444
4545
To take convolutions along `N` dimensions, this layer expects as input an array
46-
with `ndims(x) == N+2`, where `size(x,N+1) == in` is the number of input channels,
47-
and the last dimension is `size(x,N+2) == batches`.
46+
with `ndims(x) == N+2`, where `size(x, N+1) == in` is the number of input channels,
47+
and `size(x, ndims(x))` is (as always) the number of observations in a batch.
4848
Then:
4949
* `filter` should be a tuple of `N` integers.
5050
* Keywords `stride` and `dilation` should each be either single integer,

0 commit comments

Comments
 (0)