Skip to content

Commit 737214f

Browse files
updated requested changes
1 parent bde63ae commit 737214f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/layers/conv.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ Image data should be stored in WHCN order (width, height, channels, batch).
4040
In other words, a 100×100 RGB image would be a `100×100×3×1` array,
4141
and a batch of 50 would be a `100×100×3×50` array.
4242
This has `N=2` spatial dimensions, and needs a kernel size like `(5,5)`,
43-
a 2-tuple of integers. For different `N`, data should be `N_1 x N_2 x ... x N_n x channels x batch`,
44-
i.e. `spatial/temporal dimensions x channels x batch` (notice that the batch is the last dimension).
43+
a 2-tuple of integers.
4544
46-
For `N` spatial dimensions, this layer expects as input an array
47-
with `ndims(x) == N+2`, where `size(x,N+1) == in` is the number of channels.
45+
For `N` dimensional data, 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`.
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)