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

Add numerical stability check #26

Open
WangDeyao opened this issue Feb 2, 2021 · 0 comments
Open

Add numerical stability check #26

WangDeyao opened this issue Feb 2, 2021 · 0 comments

Comments

@WangDeyao
Copy link

Hi!

I accidentally pass tensor with inf and nan values into the torchsearchsorted. Instead of throwing, the function actually outputs some tensor value. The output tensor is a DISASTER. Any operations on the output tensor will cause the entire process frozen. (For example, print the output vector). Not even ctrl-c can break it. I have to quickly kill the process to avoid further damage to the machine.

It would be great if you can add a simple check before the computation. Terminate the code if it finds there are nan or inf value exists.

Thanks!

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