Skip to content

Commit

Permalink
delete extra in of
Browse files Browse the repository at this point in the history
  • Loading branch information
benlebrun committed Jun 17, 2024
1 parent 0e3be0f commit 09f4f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genparse/lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ async def p_next(self, xs, top=None):

_logp = await self._model.next_token_logprobs(tokens)
_logp = _logp.cpu().numpy() if hasattr(_logp, 'cpu') else _logp
_p = np.exp(_logp.cpu().numpy())
_p = np.exp(_logp)

assert top is None
return LazyProb(_p, self._encode, self._decode)
Expand Down

0 comments on commit 09f4f69

Please sign in to comment.