transformer-lm
transformer-lm copied to clipboard
Error on validate, batch is empty
Hi lopuhin!
Your code has 1 error in function lm.main._batch_it
When validate in last item, batch can is empy.
Your code:
Fix code:
Thanks for the catch @binhvq , I'll add your fix to the code. Or you can send a pull request if you want.