Throw Python exception from PythonOp instead of logging

Summary: Today when PythonOp throws an exception, we log the error and fail the op. Later we assert that the op/net/plan succeeds and throw with a generic message. The user must ttail the logs to find the real error. Instead, align with exception handling from other ops - throw directly. This will include full context of the exception in the error message.

Reviewed By: Yangqing, akyrola

Differential Revision: D6359684

fbshipit-source-id: 85133ba6562759607a3971449120647cbacce946
2 files changed
tree: ca5fd10a3b141b5a2c82dd65ef43740d0edda1a1
  1. .jenkins/
  2. .travis/
  3. caffe/
  4. caffe2/
  5. cmake/
  6. conda/
  7. docker/
  8. docs/
  9. modules/
  10. scripts/
  11. third_party/
  12. .Doxyfile
  13. .Doxyfile-c
  14. .Doxyfile-python
  15. .gitattributes
  16. .gitignore
  17. .gitmodules
  18. .travis.yml
  19. appveyor.yml
  20. CMakeLists.txt
  21. LICENSE
  22. Makefile
  23. NOTICE
  24. README.md
  25. release-notes.md
  26. setup.py
  27. VERSION_NUMBER
README.md

Caffe2

License TravisCI Build Status Appveyor Build Status

Caffe2 is a lightweight, modular, and scalable deep learning framework. Building on the original Caffe, Caffe2 is designed with expression, speed, and modularity in mind.

News and Events

Caffe2 research award competition request for proposals

Questions and Feedback

Please use Github issues (https://github.com/caffe2/caffe2/issues) to ask questions, report bugs, and request new features.

Please participate in our survey (https://www.surveymonkey.com/r/caffe2). We will send you information about new releases and special developer events/webinars.

License

Caffe2 is released under the Apache 2.0 license. See the NOTICE file for details.

Further Resources on Caffe2.ai