Граф коммитов

21 Коммитов

Автор SHA1 Сообщение Дата
Wenbing Li 0e2d6c03e4
Add an C# demo project for NuGet package (#407)
* Add a nuget test app

* remove unused file

* Compatible with onnxruntime-gpu package (#410)

* be compatible without onnxruntime-gpu version

* some fixing

* turn it as a .net demo project

---------

Co-authored-by: Sayan Shaw <52221015+sayanshaw24@users.noreply.github.com>
2023-04-27 14:29:58 -07:00
Wenbing Li ee306dee2a
Fix the build breaks the release pipeline and some C++ warnings (#372)
* fix the break in release pipeline

* code cleanup and the warnings fixing.

* Update ci.yml for Azure Pipelines

* Update ci.yml for Azure Pipelines

* fix linux build

* one more fixing

* again?

* fixing for macOS
2023-02-28 15:45:32 -08:00
Wenbing Li 1af7a56b28
update Python pipelines for release (#353)
* re-enable Python pipelines

* deprecate the direct setup.py call

* pipeline fixing

* run cmake from visual studio

* remove the self check

* support different ort versions

* remove ort 1.9 and add 1.13

* ci pipeline fixing

* fix the test with latest pytorch

* code refinement

* torch version detection

* make package python version more consistent.
2023-02-06 18:23:56 -08:00
Sayan Shaw 5568cb74ed
Added initial CustomOp template generator (#343)
* Added initial CustomOp template generator

* Added arg parsing, error check, and modularized methods

* Added test and models for the same plus refactored code in template generator

* Fixed model path issue

* Final changes

* Removed ONNX models and added model generation in test scripts, changed custom ops to random math ops

authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-01-17 21:29:38 -08:00
Wenbing Li 67c77d9fbc
align python package version with version.txt (#345)
* align python package version with version.txt

* Update setup.py

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>

* remove a line

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2023-01-12 14:28:32 -08:00
Edward Chen 0169129b19
Add version.txt and derive CMake version variables from it. (#333) 2022-12-16 10:14:28 -08:00
Scott McKay 1cab9711ff
Starter changes for supporting pre/post processing for vision models. (#312)
* Initial changes for supporting mobilenet and superresolution.
- Script to update model with pre/post processing
- custom ops for decode/encode
  - user just has to provide jpg or png bytes
  - superresolution can return the updated image in jpg or png
- models for testing

Updated cmake setup to enable building of the vision pre/post processing ops
  - opencv2 is treated as an internal dependency rather than the mechansim for selecting which operators to include.

* Add extra check in decode.
2022-11-24 07:40:56 +10:00
Wenbing Li 379cf02d5c
Build multiple Android ABIs into one AAR package. (#302)
* support multiple ABIs in one AAR package.

* refine ndk version implementation

* fix ndk version issue

* comments

* typo
2022-10-11 14:53:22 -07:00
Wenbing Li 08659eae90
Initial Java API for the JAR package. (#292)
* more C++ code fixing and polish for release

* fixing for android build

* build flags for android release

* add missing exporting function

* imint

* first versoin

* more C++ code fixing and polish for release (#275)

* more C++ code fixing and polish for release

* fixing for android build

* build flags for android release

* add missing exporting function

* support build_id on Python package building (#281)

* support buildid in package building

* undo the change on build.sh

* build.sh issue on macos

* Add `$schema` to `cgmanifest.json` (#284)

Co-authored-by: Jamie Magee <jamie.magee@microsoft.com>

* test package with a simple java app

* demo app

* some fixing for windows platform

* refine the example app

* fix the missing symobls issue for Linux build

* fix the package package build issue

* typo

* a missing change

* fix PythonOp

* fix Android test issue

* one more Android change

* replace build flags in ci pipeline

* android AAR package build

* refine the code for android package

Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Jamie Magee <jamie.magee@microsoft.com>
2022-10-04 16:22:28 -07:00
Wenbing Li 459c4f7d61
Update pytorch_custom_ops_tutorial.ipynb (#196)
* Update pytorch_custom_ops_tutorial.ipynb

* Update mshost.yaml

* tidy up
2022-02-02 10:34:20 -08:00
Wenbing Li 9bd453e0f1
initial checkins for onnxcompose (#185)
* initial checkins for onnxcompose

* update ci pipeline for the test.

* add the missing quotes

* Switch to looseVersion for torch version.

* testif

* padding_length

* skip the gpt2

* add onnxruntime 1.9 test package.

* fix a memory bug on pyop.
2021-11-22 21:02:39 -08:00
Mojimi 448518534c
Add native test for bert tokenizer (#173)
* add native test for bert tokenizer

* add python test

* fix unicode category

Co-authored-by: Ze Tao <zetao@microsoft.com>
2021-10-19 11:09:38 -07:00
Wenbing Li 2842d2208e
support the non-exception compiling for the text domain. (#142)
* support the non-exception compiling for the text domain.

* fix an path error.
2021-09-02 11:19:18 -07:00
Wenbing Li 983de7c0fe
support the operator list for build flags (#122)
* support the operator list for build flags

* revert the flag

* update the file name

* little refinement
2021-07-30 12:43:47 -07:00
Wenbing Li fd1216b027
fix some build and env issues. (#111) 2021-06-10 09:57:49 -07:00
Wenbing Li a563194d41
The README.md doc update for the release (#87)
* Update the README.md for the release.

* polish the code

* add the mobile section

* update the example code in the README.md

* correction on pytorch tutorial
2021-05-07 14:12:25 -07:00
Mojimi 4e78e9651b
Create webassembly pipeline (#78) 2021-04-14 14:01:29 +08:00
Wenbing Li aa846c3116
Support the pre/post processing Python and pytorch code snippets to be converted and be merged into the ONNX model. (#76)
* initial checkins

* restructure the implementation.

* refine the Python interface

* Finalize the interface.

* Add the custmop class for the customization.

* Test the eager_op with vector_to_string customop

* Refine the customop conversion interface.

* initial onnx builder

* Runable with incorrect result.

* reformat the onnx_ops calls

* a few of operators working on tracing

* handcraft all op conversion

* Add the unit testing for mytorch

* unit test passed.

* Add some documents...

* Move non-torch API into onnxruntime_customops.utils module.

* Fix the unit test issues.

* Fix some typos.
2021-03-12 10:39:21 -08:00
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
Wenbing Li 4e0af5c582
A more formal build process and the fixing of unix-like environment. (#39)
* enable directly pip package build.

* some link symbols

* fixing on Windows platform

* update the build instruction

* update the ci pipeline

* Fix the Linux and MacOS build.

* Update mshost.yaml

* updat the ci python version

* update the pipeline

* simplify the instruction.

* update according to the comments.

Co-authored-by: Wenbing Li <wenli@MacM1.local>
2021-01-11 13:44:17 -08:00
Wenbing Li da95244190 initial checkins 2020-10-12 10:52:52 -07:00