[GitHub] anirudh2290 commented on issue #9681: Better Exception Handling for Operators

2018-02-12 Thread GitBox
anirudh2290 commented on issue #9681: Better Exception Handling for Operators URL: https://github.com/apache/incubator-mxnet/pull/9681#issuecomment-365019710 @piiswrong: Do you have additional suggestions ? This is an

[GitHub] anirudh2290 commented on issue #9681: Better Exception Handling for Operators

2018-02-07 Thread GitBox
anirudh2290 commented on issue #9681: Better Exception Handling for Operators URL: https://github.com/apache/incubator-mxnet/pull/9681#issuecomment-364031160 After discussion with @piiswrong , we came to a conclusion that in an execution graph once an exception is thrown, the same

[GitHub] anirudh2290 commented on issue #9681: Better Exception Handling for Operators

2018-02-06 Thread GitBox
anirudh2290 commented on issue #9681: Better Exception Handling for Operators URL: https://github.com/apache/incubator-mxnet/pull/9681#issuecomment-363535323 ``` try: x, y, z = op() x.asnumpy() #Throws exception, sets exception_ptr to nullptr except:

[GitHub] anirudh2290 commented on issue #9681: Better Exception Handling for Operators

2018-02-06 Thread GitBox
anirudh2290 commented on issue #9681: Better Exception Handling for Operators URL: https://github.com/apache/incubator-mxnet/pull/9681#issuecomment-363523771 ``` try: x, y, z = op() x.asnumpy() except: handle_exc() ''' The below just pushes

[GitHub] anirudh2290 commented on issue #9681: Better Exception Handling for Operators

2018-02-05 Thread GitBox
anirudh2290 commented on issue #9681: Better Exception Handling for Operators URL: https://github.com/apache/incubator-mxnet/pull/9681#issuecomment-363241899 @piiswrong Trying to understand your comment. Lets say we have some code snippet like the below: ``` try: