mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-08-11 11:24:31 +08:00
cleanup
This commit is contained in:
@@ -144,7 +144,6 @@ class RealNVP(nn.Module):
|
||||
|
||||
self.__cond = None
|
||||
self.__scale = None
|
||||
self.input_size = input_size
|
||||
|
||||
# construct model
|
||||
modules = []
|
||||
@@ -199,8 +198,6 @@ class RealNVP(nn.Module):
|
||||
shape = self.cond.shape[:-1]
|
||||
else:
|
||||
shape = sample_shape
|
||||
# if len(sample_shape) > 0:
|
||||
# shape = sample_shape + (self.input_size)
|
||||
|
||||
u = self.base_dist.sample(shape)
|
||||
sample, _ = self.inverse(u)
|
||||
|
||||
Reference in New Issue
Block a user