Skip to content
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

ZeroDivisionError: division by zero #6

Open
rashmigaikwad88 opened this issue Apr 30, 2023 · 0 comments
Open

ZeroDivisionError: division by zero #6

rashmigaikwad88 opened this issue Apr 30, 2023 · 0 comments

Comments

@rashmigaikwad88
Copy link

Got this error while training the model.
Running epoch: 1
Batch loss :1 1

ZeroDivisionError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_8900\1696958900.py in
42 optimizer.step()
43
---> 44 running_loss=running_loss/int(num_of_batches)
45 print('Epoch: {} , Running loss: {}'.format(epoch,running_loss))

ZeroDivisionError: division by zero

How to resolve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant