mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-07-14 11:17:47 +08:00
fix shape
This commit is contained in:
@@ -196,9 +196,9 @@ class RealNVP(nn.Module):
|
||||
|
||||
def sample(self, sample_shape=torch.Size()):
|
||||
if self.cond is not None:
|
||||
shape = self.cond.shape[:-1] + (self.input_size,)
|
||||
shape = self.cond.shape[:-1]
|
||||
else:
|
||||
shape = sample_shape + (self.input_size,)
|
||||
shape = sample_shape
|
||||
# if len(sample_shape) > 0:
|
||||
# shape = sample_shape + (self.input_size)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user