Skip to content

Commit

Permalink
Fixed conv filter channel dimension.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankong committed Aug 23, 2018
1 parent 4731637 commit 8e0986d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sigpy/linop.py
Original file line number Diff line number Diff line change
Expand Up @@ -1515,10 +1515,10 @@ def __init__(self, y_shape, x, ndim, mode='full',
W_shape = [m - p + 1 for m, p in zip(x.shape[-ndim:], y_shape[-ndim:])]

if input_multi_channel:
W_shape = [x.shape[0]] + W_shape
W_shape = [x.shape[-ndim - 1]] + W_shape

if output_multi_channel:
W_shape = [y_shape[0]] + W_shape
W_shape = [y_shape[-ndim - 1]] + W_shape

super().__init__(W_shape, y_shape)

Expand Down

0 comments on commit 8e0986d

Please sign in to comment.