Skip to content

Commit 34a34a0

Browse files
authored
Merge pull request #10 from kashif/patch-1
alternate the mask for each stack in glow
2 parents 6966665 + ff62f6b commit 34a34a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
num_inputs, num_hidden, mask, num_cond_inputs,
156156
s_act='tanh', t_act='relu')
157157
]
158-
mask = 1 - mask
158+
mask = 1 - mask
159159
elif args.flow == 'realnvp':
160160
mask = torch.arange(0, num_inputs) % 2
161161
mask = mask.to(device).float()

0 commit comments

Comments
 (0)