KellenSunderland commented on issue #9681: Better Exception Handling for Operators URL: https://github.com/apache/incubator-mxnet/pull/9681#issuecomment-363371337 @anirudh2290 Good idea to use an example. From my perspective as a user I generally prefer that things fail as quickly as possible for me so that I don't have to track down root causes. Following this logic, I'd tend to agree with you, but would actually prefer it if this line threw an exception: ```python try: x, y, z = op() x.asnumpy() except: handle_exc() y = op2(y) # Runtime exception y.asnumpy() ``` I understand that this is a lazy operation, but wonder if it's still possible to do some failure validation here? If not the first blocking call (asnumpy) would also be a fairly intuitive place to throw.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services