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

Raise and handle exceptions in CPP code #756

Open
nudles opened this issue Jul 1, 2020 · 0 comments
Open

Raise and handle exceptions in CPP code #756

nudles opened this issue Jul 1, 2020 · 0 comments

Comments

@nudles
Copy link
Member

nudles commented Jul 1, 2020

Currently, we abort the program when any check fails via glog's CHECK functions.
We do not catch any exceptions like memory exception or cudnn exceptions.

As a result, the program will abort or crash whenever there is an error or exception, which sometimes shutdown the jupyter notebook or colab notebook when we run the code in the notebook environment.

This ticket is to raise and handle exceptions in CPP code.

ref: http://www.swig.org/Doc3.0/SWIGDocumentation.html#Customization_exception

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