Skip to content

Commit

Permalink
Merge pull request shentianxiao#11 from M3skar/master
Browse files Browse the repository at this point in the history
fix model.py indent error
  • Loading branch information
shentianxiao authored Jun 28, 2021
2 parents a096cbe + 37e9b64 commit 3a32f43
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 @@ -67,7 +67,7 @@ def decode(self, z, input, hidden=None):
logits = self.proj(output.view(-1, output.size(-1)))
return logits.view(output.size(0), output.size(1), -1), hidden

def generate(self, z, max_len, alg):
def generate(self, z, max_len, alg):
assert alg in ['greedy' , 'sample' , 'top5']
sents = []
input = torch.zeros(1, len(z), dtype=torch.long, device=z.device).fill_(self.vocab.go)
Expand Down

0 comments on commit 3a32f43

Please sign in to comment.