The pre- and post- processing library for ONNX Runtime
Перейти к файлу
Wenbing Li 33027d2578
Enable C++ end to end test with onnxruntime (#56)
* basic changes

build issues fixing

runing on Windows Platform

deploy the ort library in CMake

update gitignore

* Add C++ shared tests

* enable ctest

* fixing the python build issue

* remove cc test

* why does macos needs openmp package?
2021-02-03 11:17:35 -08:00
ci_build/azure-pipelines Enable C++ end to end test with onnxruntime (#56) 2021-02-03 11:17:35 -08:00
cmake/externals Implement custom operators for sentancepiece (#41) 2021-01-27 23:55:50 +01:00
docs Change Fix type of nbtest_size into int64 (#54) 2021-01-29 14:21:50 -05:00
includes Enable C++ end to end test with onnxruntime (#56) 2021-02-03 11:17:35 -08:00
ocos Enable C++ end to end test with onnxruntime (#56) 2021-02-03 11:17:35 -08:00
onnxruntime_customops Test the Gpt2 Tokenizer both in two modes, PyOP and Native (#40) 2021-01-12 16:11:02 -08:00
shared Enable C++ end to end test with onnxruntime (#56) 2021-02-03 11:17:35 -08:00
test Enable C++ end to end test with onnxruntime (#56) 2021-02-03 11:17:35 -08:00
tokenizer Enable C++ end to end test with onnxruntime (#56) 2021-02-03 11:17:35 -08:00
tutorials Renamed tf2onnx tutorial (#37) 2021-01-08 10:58:29 -08:00
.clang-format initial checkins 2020-10-12 10:52:52 -07:00
.clang-tidy initial checkins 2020-10-12 10:52:52 -07:00
.flake8 initial checkins 2020-10-12 10:52:52 -07:00
.gitignore Enable C++ end to end test with onnxruntime (#56) 2021-02-03 11:17:35 -08:00
CMakeLists.txt Enable C++ end to end test with onnxruntime (#56) 2021-02-03 11:17:35 -08:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-10-05 12:36:41 -07:00
LICENSE Updating LICENSE to template content 2020-10-05 12:36:43 -07:00
README.md A more formal build process and the fixing of unix-like environment. (#39) 2021-01-11 13:44:17 -08:00
SECURITY.md Initial SECURITY.md commit 2020-10-05 12:36:44 -07:00
build.bat sync onnxruntime header file with 1.6 rc id: a046ef133aa18bda7b7ec9eeedfec4800f452d45 (#34) 2020-12-04 23:37:53 -08:00
build.sh rename the package name to onnxruntime-customops (#36) 2020-12-22 20:16:30 -08:00
requirements-dev.txt Implement custom operators for sentancepiece (#41) 2021-01-27 23:55:50 +01:00
requirements.txt A more formal build process and the fixing of unix-like environment. (#39) 2021-01-11 13:44:17 -08:00
setup.cfg A more formal build process and the fixing of unix-like environment. (#39) 2021-01-11 13:44:17 -08:00
setup.py Enable C++ end to end test with onnxruntime (#56) 2021-02-03 11:17:35 -08:00

README.md

ONNX Runtime Custom Ops Library

This repository provides a library of add-on custom operators for ONNX Runtime. The package can be installed to run with ONNX Runtime for operators not natively supported by ORT. Learn more about custom ops in ORT.

Build and Development

This project supports Python and can be built from source easily.

Python package

  • Install Visual Studio with C++ development tools on Windows, or gcc for Linux or xcode for MacOS, and cmake on the unix-like platform.
  • Prepare Python env and install the pip packages in the requirements.txt.
  • python setup.py install to build and install the package.
  • OR python setup.py develop to install the package in the development mode, which is more friendly for the developer since (re)installation is not needed with every build.

Test:

  • run pytest test in the project root directory.

The share library or DLL only

If only DLL/shared library is needed without any Python dependencies, please run build.bat or bash ./build.sh to build the library. By default the DLL or the library will be generated in the directory out/<OS>/<FLAVOR>. There is a unit test to help verify the build.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

License

MIT License