Open apivovarov opened 1 year ago
Do you wanna send a PR? torchscript is on maintenance mode so unlikely someone will fix but I'd be happy to merge your fix
@msaroufim Which sections of the file structure should I look into? maybe fuser? I am really struggling with this issue.
Hi @msaroufim - I am also affected by the same issue. I am happy to devote some cycles to fixing it, but can you give some initial pointers and where the culprit code is likely to be? Thanks in advance..
Unlike Linux, I have found on Windows, the same issue happens, even when using 2.0.1.
torch.jit is on maintenance mode, that's ok, but torch.export is still not stable... @msaroufim I guess that's a mistake.
🐛 Describe the bug
OS: Linux Ubuntu 22.04 GPU: Nvidia T4 pytorch: 2.1.0.dev20230817+cu118
torch.jit.trace()
generates C++ cuda code which contains bad constants - for example-3.402823466385289e+38.f
.The issue is in exponent part of the number.
e+38.f
is bad. It should bee+38f
(without dot btw 38 and f).Error exists in Pytorch 2.1.0 Nightly (2.0.1 works fine)
Example code:
Error message
Versions
cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel