Skip to content

Commit

Permalink
Update encoder.py
Browse files Browse the repository at this point in the history
Fixed a bug that didn't store the options in Encoder. Suggested by @nadavbh12
  • Loading branch information
taesungp committed Apr 19, 2019
1 parent 6d3aa2b commit 6c8b0eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/networks/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __init__(self, opt):
self.fc_var = nn.Linear(ndf * 8 * s0 * s0, 256)

self.actvn = nn.LeakyReLU(0.2, False)
self.opt = opt

def forward(self, x):
if x.size(2) != 256 or x.size(3) != 256:
Expand Down

0 comments on commit 6c8b0eb

Please sign in to comment.