-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: unsupported operand type(s) for %: 'int' and 'NoneType' #23
Comments
yes ,I have met that problem too .So do someone have fixed it? |
Hi bro ,so have you fixed this problem ? |
Hi guys, I'm not sure whether you have solved this issue, but I encountered the same problem. At the same time, I noticed that @ParthPatel-ES fixed this issue in the Pull Request#14. He changed Additionally, I believe that adding a condition check before the code in line 122 or using a try-catch block to catch exceptions are both viable solutions. Best regards. |
I'm very appreciate your answer to me, which help me a lot in understanding the code |
Hi,
I got the problem, I can begin trainging the code. But while run epoch=2, it show this problem and stop to train.
File "train.py", line 212, in
trainer.train()
File "train.py", line 122, in train
if epoch % self.test_interval == 0 or epoch % self.save_interval == 0:
TypeError: unsupported operand type(s) for %: 'int' and 'NoneType'
The text was updated successfully, but these errors were encountered: