Skip to content

Commit

Permalink
'fix_dims_mismatching'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiawei Yu(联通上海市上海市分公司) committed Jan 28, 2021
1 parent 4a5c590 commit 550257b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FrEIA/modules/coupling_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def __init__(self, dims_in, dims_c=[], subnet_constructor=None):
self.split_len1 = channels // 2
self.split_len2 = channels - channels // 2

assert all([dims_c[i][1:] == dims_in[0][1:] for i in range(len(dims_c))]), \
# assert all([dims_c[i][1:] == dims_in[0][1:] for i in range(len(dims_c))]), \
assert all([tuple(dims_c[i][1:]) == tuple(dims_in[0][1:]) for i in range(len(dims_c))]), \
"Dimensions of input and one or more conditions don't agree."
self.conditional = (len(dims_c) > 0)
condition_length = sum([dims_c[i][0] for i in range(len(dims_c))])
Expand Down

0 comments on commit 550257b

Please sign in to comment.