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

Pass exceptions from operations to python #365

Merged
merged 2 commits into from
Mar 10, 2017
Merged

Pass exceptions from operations to python #365

merged 2 commits into from
Mar 10, 2017

Conversation

pmichel31415
Copy link
Collaborator

Exceptions launched when building the comptuation graph (e.g invalid_argument in Node::dim_forward) Are now passed to python so that they can be handled in python.

Examples :

Before : ipython inerpreter crashes :

screenshot from 2017-03-09 12-11-57

After : Get a ValueError, the interpreter doesn't crash :

screenshot from 2017-03-09 12-11-10

@neubig
Copy link
Contributor

neubig commented Mar 9, 2017

Excellent! LGTM.

@neubig neubig merged commit 194def2 into master Mar 10, 2017
@pmichel31415 pmichel31415 deleted the python_except branch March 29, 2017 01:23
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

Successfully merging this pull request may close these issues.

2 participants