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

59 Коммитов

Автор SHA1 Сообщение Дата
Rachel Guo fe8cd9ee8d
Add extensions catalyst support (#684)
* save work

* add flags to disable build that's currently not supported on macabi

* update

* update

* fix arg type

* update ext_test.cmake

* fix

* try add flags

* exclude ext_test

* add missing downloading steps

* nameing minor fix

* update ios version etc.

* fix

* minor fix

* minor fix

* clean up

* nuget package changes for catalyst extensions (#686)

Co-authored-by: rachguo <rachguo@rachguos-Mini.attlocal.net>

* update to net7.0 and add help comments

---------

Co-authored-by: rachguo <rachguo@rachguos-Mac-mini.local>
Co-authored-by: rachguo <rachguo@rachguos-Mini.attlocal.net>
2024-04-17 10:43:35 -07:00
Scott McKay 0c93c20761
Disable c++ tests on iOS build targeting iOS < 13. (#659) 2024-02-22 11:47:33 +10:00
Rachel Guo fcee38ff68
Add macos platform suppport to onnxruntime-extensions-c pod (#622)
* Squashed commit of the following:

commit 0bd8a9bd49b2bddae3aa0e6c61406e3fb20e011d
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 16:55:29 2023 -0800

    remove #Preview

commit ac2ecdc696d06d579594834a0ffcc01613bd3422
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 15:29:36 2023 -0800

    fix podfile

commit 24bb619fb311f64e28fe3bc94c44912d261ec0bc
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 15:27:57 2023 -0800

    use pre-release version pod now

commit 9e227da06fe29ba01aef1d39a40712fd5dfd9dfc
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 14:09:41 2023 -0800

    update sed

commit 6b9651d4d540845af441bc6cf1d45e1561ec967e
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 13:14:46 2023 -0800

    minor fix

commit 26472d072e2147cd5d92fd6e02dfa182722e109f
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 12:08:42 2023 -0800

    fix pod arch path

commit ba0237e3dd83bed706060969f4bd206ede68fecf
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 11:13:51 2023 -0800

    update yml files

commit 1d91e17743594c28d3030089afae2578daaff848
Author: rachguo <rachguo@rachguos-Mac-mini.local>
Date:   Thu Dec 14 10:25:24 2023 -0800

    add script to substitute podspec file source

commit 248effa32e08cf08c6268ba8ac81ce9bec2b940d
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Thu Dec 14 07:33:21 2023 -0800

    fix pod and update artifacts path

commit 7dfed33706f9e8772126eb78f551cc2110011e64
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Thu Dec 14 01:07:43 2023 -0800

    update

commit 834b03fa69faebc2c7cd948287f870a3f83304a6
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Thu Dec 14 00:07:04 2023 -0800

    update directory name

commit ac46342bb65d4b670b90c4685d6b0d47273edeb5
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Wed Dec 13 23:17:28 2023 -0800

    format

commit 1a10611b28e16cf05e9c91b19eff600e401dde84
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Wed Dec 13 23:16:24 2023 -0800

    copyrights comments and fix .yml format

commit 431682ef154ab93e68a6d099e0604d3a0d7fd804
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Wed Dec 13 23:05:39 2023 -0800

    add macos testing target in the app and testing ci updates

commit dcd0f302b3f0101584a16b91ef5a81559b22cb5a
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Wed Dec 13 14:17:28 2023 -0800

    update opencv.cmake again

commit 28b083c5d39fa743101b30e513f28bef7a82f24b
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Wed Dec 13 11:59:59 2023 -0800

    minor fix

commit d80acdad8583217ec06013f270732df2d8db62b5
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Wed Dec 13 11:26:49 2023 -0800

    add zlib to build from source option and minor update

commit dfd37effec13806ce30ddc5ed76dacefdfbc13f2
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 19:48:40 2023 -0800

    update podspec.template file

commit b227c2c196216aef6a05ba58254dedd1bcdcac60
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 19:26:40 2023 -0800

    comment out lint pod for now

commit d4bd488006e9d0b25ee01cb7c8447ec2bda620bd
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 18:46:38 2023 -0800

    fix podspec.template

commit a477470a3e63b5dd1966d8a943696df887859dd8
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 15:45:04 2023 -0800

    minor update

commit a07299decdfc10e7c2e96bd77ee49f97afbe5bd4
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 11:28:51 2023 -0800

    clean

commit a83642fbe309bd3c23f93c7aa00801f37cd8a0a3
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 11:26:50 2023 -0800

    fix merging framework_info.json process

commit 02980feff9a28a3099906c66a11df1f1d1ecf071
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 10:22:42 2023 -0800

    add step for checking the framework_info.json file contents

commit ee224e9e5948a6484dff8378697a71cae07e0801
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 09:35:32 2023 -0800

    update to xcframework_info.json

commit 96e13627c2f3c9802d90dd5afe4d96b69d76e012
Author: rachguo <rachguo@rachguos-Mini.attlocal.net>
Date:   Tue Dec 12 01:06:36 2023 -0800

    add changes for macosx build for extensions pod

* address pr comments

* add back supported archs

* update build.py

* reorganize source code avoid duplicates

* add minor note

* exclude macos for ci.yml

* update ci.yml

* address pr comments

* update

* update

* Update tools/ios/assemble_pod_package.py

Co-authored-by: Scott McKay <skottmckay@gmail.com>

---------

Co-authored-by: rachguo <rachguo@rachguos-Mac-mini.local>
Co-authored-by: rachguo <rachguo@rachguos-Mini.attlocal.net>
Co-authored-by: Scott McKay <skottmckay@gmail.com>
2023-12-19 18:26:12 -08:00
Yi Zhang 12ea73d365
Add Linux GPU Stage (#610)
* Linux GPU Pipelines

* rm useless files
2023-11-23 14:36:40 +08:00
Scott McKay b8cb2f8508
Add SentencepieceTokenizer to Android and iOS apps. (#602)
#18226
2023-11-15 12:15:03 +10:00
Scott McKay e951e72a85
Add updates from ORT android emulator handling (#588)
* Update JDK version to 17 in ci.yml

* Update com.diffplug.spotless to 6.22.0.

* Copy updated scripts to start/stop the emulator from ORT from https://github.com/microsoft/onnxruntime/pull/17903.
Minimize the time the emulator is running as well.

* Fix includes

* Update to JDK 17 in packaging pipelines.

* Fix pool name.

---------

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2023-10-31 19:02:17 +10:00
Scott McKay 2cf9bab611
Add ability to create a 'dummy' nuget package using build with no ops (#573)
* Add ability to create a 'dummy' nuget package from a build with no ops. This is required on iOS due to the ORT C# package including the ability to register custom ops. That creates a compile time dependency for the RegisterCustomOps symbol to exist. If the user can't (Xamarin) or does not want to use extensions that results in usage of ORT being broken.

For simplicity, consistency and to minimize changes to the build infrastructure we build a nuget package for all platforms so everything is 1:1 with the real package except the build uses an empty config to select the ops to include. Technically we only need something with iOS builds.

We should only need to publish this once unless the RegisterCustomOps API changes.

* Address PR comments

* Update .pipelines/nuget.yml

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

* Apply suggestions from code review

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

---------

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2023-10-21 09:44:26 +10:00
Edward Chen 8b00b409ba
Enable C++ unit tests on iOS (#560)
Add infrastructure for running GoogleTest tests on iOS.
Refactor build scripts.
2023-09-18 18:52:30 -05:00
Edward Chen 928cd8e74d
CI pipeline updates (#546)
- Split ci.yml into stages. This makes it easier to only run a subset of the jobs in the pipeline.
- Use existing iOS simulator instead of creating a new one.

---------

Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
2023-08-29 12:06:14 -07:00
Edward Chen df7a9f337c
Enable running C++ unit tests on Android (#547)
- Update build script to copy over test files and run tests on an Android device.
- Set up a CI job to run tests on the emulator.
- Fix a test failure encountered when running on an actual Android device. Update string_lower to call ToLower on each UTF code point instead of each UTF-8 byte.

---------

Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
2023-08-28 15:02:47 -07:00
RandySheriffH 3804b97f5f
test against rc (#544)
Co-authored-by: Randy Shuai <rashuai@microsoft.com>
2023-08-24 15:36:55 -07:00
Wenbing Li 396044310e
Add more HF tokenizer supports in gen_processing_models (#531) 2023-08-18 17:09:22 -07:00
RandySheriffH d853d31fc1
Document azure ops. (#530)
* doc ops (#529)

* Try and make CIs pass with Azure ops enabled by default.
Misc. other cleanups

* Fix some CI issues.
Cleanups some bits and pieces.

* Fix a couple of issues.

* Fix arg to build.bat

* Increase warning in triton client build to make binskim happy (hopefully).

* Try patching the warning level in the triton grpc branch as well. Shouldn't matter but...

* Run triton patch command for windows as well.

* Add patch.exe directly so windows builds work.

* override auth gen for AOAI

* fix build

* switch to windows-static

* update model for azure chat

* document triton invoker

* doc chat endpoint

* document triton invoker

* format

* format

* format

---------

Co-authored-by: Scott McKay <Scott.McKay@microsoft.com>
Co-authored-by: Randy Shuai <rashuai@microsoft.com>

* address comments

* move doc sect

* typo

* typo

---------

Co-authored-by: Scott McKay <Scott.McKay@microsoft.com>
Co-authored-by: Randy Shuai <rashuai@microsoft.com>
2023-08-17 14:12:02 -07:00
Scott McKay 3b947b5580
Minor build and test setup fixes (#523)
* Build fixes
- zlib needs to come from vcpkg if azures ops are being built and opencv isn't enabled
- set the IR version to 8 for some of the azure ops test models so they can be tested when ORT 1.14 is used
- pass through new ort version value so that a consistent version is used to a) pull the ORT package for the c++ unit tests and b) disable azure ops if ORT version is too old.
* Update to automatically chain package to avoid build errors during the install if cmake runs commands in parallel
* Define simplified ORT_FILE for older ORT versions
2023-08-17 15:09:31 +10:00
Wenbing Li ee14fbe48e
correct CLIP tokenizer name (#526) 2023-08-16 12:51:17 -07:00
Scott McKay 486c2b6d79
Android fixes/improvements (#522)
* - Ensure we log an error message before throwing on Android
  - message in exception will be lost due to how the shared libraries are built (both onnxruntime and extensions use static libc++ so there are no shared exception types between them)
- support static or dynamic build of curl/openssl on android
  - TBD which we want to use.
- add infra for anything deriving from BaseKernel to log messages using the ORT logger
  - ensures messages from custom kernels end up in the same place as messages from ORT
2023-08-16 15:17:13 +10:00
Wenbing Li 247d34e30b
Add the new operators in cmake flags files. (#524)
* add the new operators in cmake flags files.

* remove the extra change
2023-08-15 16:06:01 -07:00
Scott McKay 4842e9d6ae
Make CIs pass with Azure ops enabled by default. (#518)
* Make CIs pass with Azure ops enabled by default.
2023-08-12 17:45:59 +10:00
Scott McKay 2bde82fce9
Refactor setup for Azure ops. Add Android support. (#507)
* Refactor setup for Azure ops to try and make common things more re-usable, and for the actual ops to simply layer in the specific input/output constraints for that type of request.

Currently builds on Linux, Windows (x64 only) and Android

Android requires a manual pre-build of openssl and curl.

Linux requires a manual pre-install of openssl.

Windows currently only works for x64. Other targets need the triplet adjusted.

* Address PR comments

* Fix could of android build warnings.

* Update .gitignore to remove old path

* Fix build break from merge
2023-08-08 19:54:30 +10:00
RandySheriffH 5881931bf2
Test against ort-nightly when packaging Azure ops (#514)
* install ort nightly

* set ver

* install coloredlogs

* install deps

---------

Co-authored-by: Randy Shuai <rashuai@microsoft.com>
2023-08-07 21:47:33 -07:00
RandySheriffH 9e7f8e5b1d
Add UT for Azure Ops during packaging (#502)
* set before-test

* test cmd

* clean in yml

* restore toml

* add ut for triton endpoints

* reset working path

* rename suffix

* install ort

* pip install

* make env

* add extra env

* make executable

* set dir for linux

* add switch

* set env default

* skip tests

* simplify env

* clean env for official

---------

Co-authored-by: Randy Shuai <rashuai@microsoft.com>
Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
2023-08-02 17:01:09 -07:00
RandySheriffH 06d5a8d781
Enable AzureOp packaging (#495)
* generalize azure op

* implement text endpoint

* add parameter to linux whl pipeline

* tune grammer

* 2

* 3

* 4

* 5

* 6

* 7

* 9

* 10

* 11

* 12

* 13

* 14

* 15

* 16

* cancel azure build in ci

* tune cpu tensor check

* try mem name

* address comments

* fix path

* clean env

---------

Co-authored-by: Randy Shuai <rashuai@microsoft.com>
2023-07-20 14:16:08 -07:00
Edward Chen b49c0231ab
Move remaining MacOS 12 CI build agents to MacOS 13. (#476)
Pass `-gpu swiftshader_indirect` emulator args as a workaround to get Android emulator running on the MacOS 13 hosted agents.

See https://github.com/actions/runner-images/issues/7671

Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
2023-07-05 17:50:54 -07:00
Sayan Shaw 30aa8f1315
Add ADO parameter for nuget version suffix (#455)
* update nuget version to rc

* add ADO parameter for nuget version suffix

* remove is_for_nuget_publish

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-05-25 13:35:53 -07:00
Sayan Shaw 2cedfa9fdf
Update nuget version to beta (#441)
* Update nuget version to beta

* small change

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-05-15 14:53:49 -07:00
Sayan Shaw edac207dc3
Add nuget.org publish version option (#426)
* Add nuget.org publish version option

* typo

* small fix

* typo

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-05-08 13:44:19 -07:00
Scott McKay 6eddd2f03f
Fix Android AAR in nuget package. Requires libortextensions.so. (#429) 2023-05-06 17:32:08 +10:00
Scott McKay 7b21d9b215
Add new required pre/post processing ops to Android and iOS packages. (#415) 2023-05-05 22:42:54 +10:00
JiCheng 571512aca4
[NuGet] All platform package pipeline (#408)
* nuget ci package
* disable macos arm64 build for err

* Get the iOS xcframework build working with the split build/pack approach. (#416)

* refine build_xcframework.py
Cleanup/clarify various things
- naming of parameters and files
- consistency
Make handling of additional build args more generic
Update the artifact download dir/extract dir to more intuitive names
Update scripts
- make usage from CI pipeline clearer (e.g. don't hide directory names inside script)
- keep comments in nuspec
- remove unused args
- make additional arg handling more
Co-authored-by: Scott McKay <skottmckay@gmail.com>
Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2023-05-05 18:22:54 +08:00
JiCheng 154ead35a3
built-in bounding box op (#382)
* built-in bounding box op
* update boundary check
* assert policy
* more boundary test and check
* XYXY--> X horizon
---------

Co-authored-by: Scott McKay <skottmckay@gmail.com>
2023-04-12 19:35:53 +08:00
Wenbing Li 6b88f4e31f
port the fixing from the release branch (#375) 2023-03-02 14:12:31 -08:00
Sayan Shaw d1d267a09e
Update Custom Op Template Gen based on recent changes (#371)
* 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

* Update based on new custom op changes

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-02-27 16:59:31 -08:00
Edward Chen 36a9c991a2
Fix mobile packaging pipeline builds. (#352)
* Handle flag dependencies in gen_selectedops.py.
* Fix typos in noexcep_ops.cmake.

---------

Co-authored-by: Scott McKay <skottmckay@gmail.com>
2023-02-07 16:44:12 +10: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
Scott McKay cd5ea11aaa
Move the pre/post processing scripts into the python module. (#349)
* Move the pre/post processing scripts into the python module.
Update usage/examples.

* Use better version parsing.

* Update tests, docs,

* Address PR comments.
Remove global Settings and pass onnx opset around directly where needed. Make PrePostProcessor the owner of the checker context.
2023-01-26 08:30:21 +10:00
Edward Chen ec83a138a6
Add BertTokenizer to iOS package ops config. (#347)
* Add BertTokenizer to iOS package ops config.

* Also register tokenizer ops in com.microsoft.extensions.

Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
2023-01-18 19:21:03 -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
Edward Chen d679b920be
Copy run_android_emulator.py from ORT (#346)
Add copy of run_android_emulator.py to ORT Extensions and use it directly.
2023-01-17 14:13:02 -08:00
Edward Chen 63fe165ee8
Android package build updates (#344)
- Generate AAR with associated artifacts (javadoc.jar, sources.jar, pom).
- Fix JAR/AAR package descriptions.
- Remove `gradle -b build-android.gradle` invocation from CMake. This creates the AAR and it is not necessary to run it for each Android ABI build.
- Support building on Windows.
2023-01-13 14:06:00 -08:00
Scott McKay 440a3ca98b
Add ability to specify onnx opset when adding pre/post processing to model. (#342) 2023-01-11 11:03:26 +10:00
Scott McKay e3663fb110
Add build.py to make it easier for developers to build different variants (#318)
* Add python based build infrastructure to simplify developer builds for various platforms. Majority was copied from the ORT build script so usage is consistent with that.

Left the existing build.bat/build.sh but ideally the CI can be updated to use the new infrastructure so things are more consistent.

Updated gradle to 7.5.1 and Android gradle tools to 7.3.0.

Validated Windows and cross-compiling Android on Windows including builds with explicitly selected ops.
WASM and iOS builds aren't tested yet and might need minor tweaks.

* Update build.py to require Python 3.7, remove git submodule sync, reorder options.
* Use 'cmake -E remove' to remove file.
* Enable specifying the ORT version to fetch
* Add ability to enable Java bindings.


Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
Co-authored-by: edgchen1 <18449977+edgchen1@users.noreply.github.com>
2023-01-02 14:55:31 +10:00
Rachel Guo e0d48e255f
Add initial android packaging pipeline (#332)
* initial android packaging

* Update android_packaging.yml for Azure Pipelines

* update

* fix name

* fix

* remove popd

* move to .pipelines

* move app center running command

* update version suffix and package name

* minor update

* minor update

* update pom files

* add package op config and update

* update build variable format

* update

* enable selected op list

* update

* update selected ops

* use python 3.9 version

* modify enable option argument

* update isreleasebuild

* update isreleasebuild

* minor update about versions

* rm version.txt accidentally checkedin

* address pr comments

* update

* update

* debug trial run

* update build android gradle file version

* update get version number helper

* minor fix

* minor fix
2022-12-28 15:56:19 -08:00
Edward Chen 9baed694a3
Add iOS packaging pipeline. (#327) 2022-12-23 05:27:41 -08:00
Edward Chen 81e7799c69
Patch sentencepiece to enable iOS build. (#335) 2022-12-21 09:57:32 -05:00
Scott McKay 5d53f91f11
Minor opencv tweaks (#316)
* Separate ops in operators/cv2 that do and do not require codecs so they're easier to include/exclude from a build.
Remove jpeg2000 from opencv file formats. It costs 1MB and is (afaict) not a common format.
Add ability to enable/disable cv2 ops to gen_selectedops.py.

* Remove super resolution pre/post process ops that are no longer needed.

* Replace super resolution e2e tutorial

Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
2022-12-20 13:47:17 +10:00
Scott McKay 230f0201d1
Updates to PPP model update scripts (#331)
* - Fix incorrect weights matrix for conversion from YCbCr to BGR
- Fix Resize when input is HWC or CHW by converting to NHWC/NCHW so bilinear interpolation is inferred. trilinear is inferred otherwise.
  - Not aware of a use case where we'd want to use trilinear - if one exists the temporary addition of the batch dim would need to be made explicit.
- Allow Resize to use antialias if ONNX opset is 18 or higher
- Skip adding unnecessary Mul if FloatToImageBytes multiplier is 1.0.
- Make Debug step available at the top level

Validated opset 18 Resize vs PT for super resolution and the results are now a really good match.

* Update test data to use image that shows diffs better.
Make super resolution output format configurable
Address PR comments.

* Adjust test for diffs on macos
2022-12-17 09:32:04 +10:00
Edward Chen 9ab7e614da
Add infrastructure to build iOS static framework and xcframework (#320)
Initial changes for adding an iOS package.

Add infrastructure to build iOS static framework, xcframework, and CocoaPods package.
Add test project that uses package.
Add package build and test to CI pipeline.
2022-12-07 10:37:05 -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 187411d5c9
Add an android test app for extensions AAR package in CI pipeline (#308)
* an android test app for extensions AAR package

* add the pipeline

* fxing the Android CI pipeline

* fix the build issus on macOS

* more fixings

* more fixings

* switch to jdk 11

* gradlew path issue

* update the command lines

* split the test task

* better name
2022-11-08 10:19:12 -08:00
Wenbing Li 4bb3a22c45
The new pre/post processing API, replacing ONNXCompose (#205)
* traced processing module

* before debugging.

* updates

* temporary

* the trace mode pass

* code adjusting for ci pipeline.

* only torch 1.11 support prim:pythonop

* extending sequence processing module.
2022-03-08 16:32:59 -08:00