You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In transformer-xl/pytorch/mem_transformer.py,
I found the argument order of _update_mems ftn(member of class MemTransformerLM) is wrong!
< See difference >
619th line :
def _update_mems(self, hids, mems, qlen, mlen):
733th line :
new_mems = self._update_mems(hids, mems, mlen, qlen)
I tested the code when qlen == mlen, so the code worked without any problem,
but the code should be corrected, for the case when qlen != mlen.
Thanks!
The text was updated successfully, but these errors were encountered:
In transformer-xl/pytorch/mem_transformer.py,
I found the argument order of _update_mems ftn(member of class MemTransformerLM) is wrong!
< See difference >
619th line :
def _update_mems(self, hids, mems, qlen, mlen):
733th line :
new_mems = self._update_mems(hids, mems, mlen, qlen)
I tested the code when qlen == mlen, so the code worked without any problem,
but the code should be corrected, for the case when qlen != mlen.
Thanks!
The text was updated successfully, but these errors were encountered: