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

19 Коммитов

Автор SHA1 Сообщение Дата
Wenbing Li 1b80794903
Remove OpenCV dependency from C_API mode (#800)
* Remove OpenCV dependency from C_API model

* fix build on Windows

* switch ci build flag

* try to fix the macOS build issue

* more fixing

* fix the macOS build issue

* list jpeg source

* verified on MacOS

* update the pp_api too

* avoid the codecs library conflicts

* Add the unit tests

* move the codec test

* add the missing dl lib for extensions test

* refine the code

* a smaller fixing for Windows Python
2024-09-04 16:50:05 -07:00
Wenbing Li 8f2c35fad0
Add more tests for pre-processing C APIs (#793)
* initial api for tokenizer

* More fixings and test data refinement

* add a simple wrapper for pre-processing APIs

* fix the test issues

* test if the tokenizer is spm based

* fix the failed test cases

* json pointer does not work
2024-08-21 16:48:39 -07:00
Wenbing Li 620050fbe0
reimplement resize cpu kernel for image processing (#768)
* reimplement resize cpu kernel for image processing

* accuracy fixing and code refinement

* fix the build issues

* fix Linux build issue

* more fixings

* Fix the pipeline issue

* fix the ci script

* try to fix CUDA machine pool
2024-07-23 15:40:52 -07:00
Wenbing Li 69a08ffb1d
Remove numpy dependency from its Python binary build (#657) 2024-02-21 09:54:17 -08:00
Wenbing Li 914509d524
Enable the status returnable APIs from ORT 1.16 C ABI (#558)
* Initial checkins for returnable ORT ABIs

* fix for linux build

* more fixes on Python, test...

* remove the statusmsg

* native unit tests fixing

* Python unit tests fixing

* last unit test fixing
2023-09-13 14:59:09 -07:00
Wenbing Li f81fec8a22
Update pyfunc.cc for the prefast warning. (#545)
* Update pyfunc.cc for the prefast warning.

* address a comment
2023-08-25 08:33:51 -07:00
Wenbing Li 46efcb9051
PyOp attribute supports int and float data type (#425) 2023-05-05 19:35:59 -07:00
Scott McKay 5e44a7c3c9
Add ability to prevent exception propagation if building as part of ORT when ORT has exceptions disabled (#368)
* Add ability to prevent exception propagation with top level try/catch hander macros.

If combined build with ORT has exceptions disabled in ORT but ort-ext has an operator that requires exceptions, we enable exceptions in ort-ext but prevent them propagating up via try/catch in the entry points that ORT can call
  - RegisterCustomOps
  - CustomOpBase constructor and Compute

Removed some places in CustomOpApi that threw is OpKernelInfo* was nullptr but standardizing all kernels to store the OpKernelInfo provided in the ctor.

Added unit tests
  - need to validate on more platforms and add CI for build where we don't want to allow exceptions to propagate

* Update pyop

* Update CMakeLists.txt

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

* Update includes/exceptions.h

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

* Update includes/exceptions.h

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

* Update includes/onnxruntime_customop.hpp

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

* Merge with main and update
Address PR comments
Fix some issues.

* Delete local file

* Fix pyop update

* Add CI
Address PR comments

---------

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
2023-02-27 10:31:44 -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
Wenbing Li c599b00d07
Using the header files from the ONNXRuntime package (#322)
* Using the header files from the ONNXRuntime package

* Update includes/onnxruntime_customop.hpp

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

* fix the build break.

* one more fixing

* wired top project

* ort 1.9.0 used

* switch to 1.10.0 package.

* change the vmimage to latest

* URL issue

* cmake policy

* ignore onnxruntime.dll native scan

* update the Onebranch exclusedPaths

* fixing some build tool issues

* update again

* typo

* undo of ORT dll removal

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2022-12-09 14:30:24 -08: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 d29f6d0f42
fix the C++ dangling pointer from the security check (#296)
* fix the C++ dangling pointer from the security check

* one more fixing
2022-09-28 16:23:43 -07:00
Adrian Lizarraga ae416f6aa6
Issue #288: Prevent copying of OrtApi struct (#290) 2022-09-14 09:45:33 -07:00
Wenbing Li 5320af1eea
Fix the code security issue and 0.5 C++ release preparation. (#274)
* Fix the code security issue and 0.5 C++ release preparation.

* more fixings

* vswhere
2022-08-02 10:09:35 -07: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
Wenbing Li 6c3b496e3f
Support the domain name in the PyOp. (#136) 2021-08-26 11:04:45 -07:00
Wenbing Li 88a3c0e42d
fix the onnxprocess for the empty input and name (#104)
* fixing the onnxprocess for the empty input and name

* fix the crash on onnxruntime 1.8
2021-06-03 21:23:13 -07:00
Wenbing Li e7b7eb5960
prepare the 0.3.0 release (#98)
* prepare the 0.3.0 release

* fix the install wheel

* Update mshost.yaml for Azure Pipelines

* update the yaml file

* update the yaml file

* update the yaml file

* put the wheels in one zipped file

* Revert "put the wheels in one zipped file"

This reverts commit bf4a086c94.
2021-05-30 23:46:33 -07:00
Wenbing Li c891e5d732
Re-organize the source code folder structure (#88)
* Reorg the code folder structure

* update the math test case

* Add an matrix inverse op.

* turn off the ctest by default.

* disbable jpeg lib in dlib for Linux build issue.

* Linux build fixing

* typo

* enable dlib library on Win32 build

* rename ocos to operators

* add the missing operator folder
2021-05-04 17:12:28 -07:00