Skip to content

Commit

Permalink
버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jason9693 committed Oct 30, 2019
1 parent c3be3bd commit 6c16d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def forward(self, x, length=None, writer=None):
fc = self.fc(decoder)
return fc.contiguous() if self.training else fc.contiguous(), [weight.contiguous() for weight in w]
else:
return self.generate(self.Decoder, x, length, writer).contiguous()
return self.generate(self.Decoder, x, length, writer).contiguous().tolist()

def generate(self, decode_fn, prior: torch.Tensor, length=2048, tf_board_writer: SummaryWriter = None):
decode_array = prior
Expand Down

0 comments on commit 6c16d7a

Please sign in to comment.