Skip to content

Commit

Permalink
Merge pull request #10 from kashif/patch-1
Browse files Browse the repository at this point in the history
alternate the mask for each stack in glow
  • Loading branch information
ikostrikov2 authored Dec 24, 2019
2 parents 6966665 + ff62f6b commit 34a34a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
num_inputs, num_hidden, mask, num_cond_inputs,
s_act='tanh', t_act='relu')
]
mask = 1 - mask
mask = 1 - mask
elif args.flow == 'realnvp':
mask = torch.arange(0, num_inputs) % 2
mask = mask.to(device).float()
Expand Down

0 comments on commit 34a34a0

Please sign in to comment.