tree: 1349152bd26b1fdd9b5f71a45701e6ced4a0b159 [path history] [tgz]
  1. bin/
  2. tests/
  3. __init__.py
  4. backend.py
  5. backend_cpp_rep.py
  6. backend_rep.py
  7. error.py
  8. frontend.py
  9. helper.py
  10. onnxifi.py
  11. ONNXOpCoverage.md
  12. README.md
  13. test_onnxifi.py
  14. workspace.py
caffe2/python/onnx/README.md

Caffe2 implementation of Open Neural Network Exchange (ONNX)

Usage

Installation

onnx-caffe2 is installed as a part of Caffe2. Please follow the instructions to install Caffe2.

Folder Structure

  • ./: the main folder that all code lies under
    • frontend.py: translate from caffe2 model to onnx model
    • backend.py: execution engine that runs onnx on caffe2
  • tests/: test files

Testing

onnx-caffe2 uses pytest as test driver. In order to run tests, first you need to install pytest:

pip install pytest-cov

After installing pytest, do

pytest

to run tests.

Testing coverage issues/status: https://github.com/caffe2/caffe2/blob/master/caffe2/python/onnx/ONNXOpCoverage.md

Development

During development it's convenient to install caffe2 in development mode:

cd /path/to/caffe2
pip install -e caffe2/

License

MIT License