-
Notifications
You must be signed in to change notification settings - Fork 354
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
TUI subtraction overflow panic #1063
Comments
@kameko, maybe the order of the operations was not respected for one of the builds you did (it's not supposed to affect the math, but it can cause an overflow). So maybe we should add some parentheses or checks? |
I doubt the compiler is arbitrarily rearranging the order of operations. I just tested that order of operations with some |
Okay, so I think I found the root of the bug, which is rather indirect. For context, the underflow comes from However, It seems that at every epoch a new thread is spawned for every new iteration, until the maximum number of thread is reached. If this max is 4 then iterations 1, 2, 3 will work with less than the expected amount of threads. @nathanielsimard how do you think we should fix this? |
Describe the bug
Attempting to train on the default MNIST example with Burn 0.11.1 does not complete because of a TUI panic, which I assume is this line:
burn/burn-train/src/renderer/tui/progress.rs
Line 179 in 1a5f252
Desktop (please complete the following information):
Additional context
This is the last part of the training log:
Let me know if you need the rest of it.
Additionally, is there any way for me to fall back to a trainer that does not use the TUI?
UPDATE: For some reason, this worked when I ran it in debug mode in VSCode (still Windows, no remote/WSL). I really can't tell why my terminal didn't work, it's standard PowerShell, same one it uses in debug mode in VSCode, didn't even change the window size.
UPDATE 2: It, predictably, works if I compile as a release mode since release mode doesn't do overflow checking. Although it's still odd it worked in debug mode inside of VSCode.
The text was updated successfully, but these errors were encountered: