Skip to content

Commit

Permalink
unwrap input in dimension check AllInOne block
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellALA committed Aug 18, 2023
1 parent 5896c1b commit e4b1253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FrEIA/modules/all_in_one_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def _affine(self, x, a, rev=False):

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

0 comments on commit e4b1253

Please sign in to comment.