Skip to content

Commit

Permalink
fixed typing in AIO input check
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellALA committed Aug 18, 2023
1 parent b983024 commit 31ef2b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FrEIA/modules/all_in_one_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ def _affine(self, x, a, rev=False):

def forward(self, x, c=[], rev=False, jac=True):
'''See base class docstring'''
if x[0].shape[1:] != self.dims_in[0][1:]:
if tuple(x[0].shape[1:]) != self.dims_in[0]:
raise RuntimeError(f"Expected input of shape {self.dims_in[0]}, "
f"got {x.shape}.")
f"got {tuple(x[0].shape[1:])}.")
if self.householder:
self.w_perm = self._construct_householder_permutation()
if rev or self.reverse_pre_permute:
Expand Down

0 comments on commit 31ef2b8

Please sign in to comment.