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

349 Коммитов

Автор SHA1 Сообщение Дата
Wenbing Li 981cb049ff
Add a new API for building data processing graph from Huggingface transformers processor/tokenizer (#482)
* initial checkins

* test pass

* basic impl

* first unit test pass

* merge error

* refine a little bit

* add more unit test

* fix unit test

* Fix the unit test.

* add one more whisper audiodecoder test case

* update the docs

* More updates
2023-07-17 16:50:58 -07:00
RandySheriffH c5e7472070
Disable Azure op build (#493)
* disable Azure op build

* keep linux

---------

Co-authored-by: Randy Shuai <rashuai@microsoft.com>
2023-07-17 13:09:56 -07:00
Wenbing Li 66be6bb640
Upgrade gradle wrapper to unblock android CI (#491)
* upgrade gradle wrapper to unblock android CI

* Revert "upgrade gradle wrapper to unblock android CI"

This reverts commit 4df4f253aa.

* set timeout of gradlew

* "re-update it"

* Update gradle-wrapper.properties

* using gradle 8.0.1

* reformat the files

* fix the build.gradle issue

* one more fixing

* delay gradle starts

* rerun the pipeline
2023-07-17 11:15:46 -07:00
Wenbing Li 35408d94b6
fix the ort version assigment bug (#490) 2023-07-14 10:46:35 -07:00
Wenbing Li bab1989644
refine audiodecoder with new api (#489)
* refine audiodecoder with new api

* update std::optional usage for macOS
2023-07-12 13:11:58 -07:00
JiCheng 5d480a8c5d
clip_image_processor (#478)
* clip_image_processor
separate clip ppp

---------

Co-authored-by: Scott McKay <skottmckay@gmail.com>
2023-07-12 17:52:17 +08:00
Sayan Shaw 9774370bf3
Add perf changes for Bert, CLIP and Roberta with offset mapping (#488)
* add perf changes for CLIP and Roberta

* add perf improvement for BERT

* remove global var

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-07-11 10:29:45 -07:00
Wenbing Li e3d9198de8
using the latest Ort header instead of minimum compatible headers (#485)
* using the latest Ort header instead of minimum compatible headers

* Update ext_ortlib.cmake

* Update ortcustomops.def

* change the default ORT API version value
2023-07-10 16:10:11 -07:00
RandySheriffH 27132ced71
Implement azure invokers (#487)
* Implement azure invokers (#486)

* draft azure ops

* migrate triton client

* AzureAudioInvoker works

* triton client builds

* triton invoker works

* limit version

* restore setup.py

* limit ort version

* upgrade version

* pip install cmake

* add ut

* promote ort header version to 1.15.1

* register as cpu op

* limit triton invoker to 1.14 and newer

* remove test

* install rapidjson

* install dep

* sudo install

* install version script

* print err msg

* fix pipeline

* disable from web assembly

* install cmake

* Fix pipelines (#479)

* 1

* 2

* 3

* 4

* 5

* 6

* 7

* 8

* 9

* 10

* 11

* 12

* 13

* 14

* 15

* 16

* 17

* 18

* 19

* 20

* 21

* 22

* 23

* 24

* 25

* 26

* 27

* 28

* 29

* 30

* 31

* 32

* 33

* 34

* 35

* 36

* 37

* 38

* 39

* 40

* 41

* 42

* 43

* 44

* 45

* 46

* 47

* 47

* 48

* 49

* 50

* 51

* 52

* 53

* 54

* 55

* 56

* 57

* 58

* 59

* 60

* 61

* 62

* 62

* 63

* 64

* 65

* 66

* 67

* 68

* 69

* 70

* 71

* 72

* 73

* 74

* 75

* 76

* 77

* 78

* 79:

* 80:

---------

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

* fix pipelines (#481)

* 1

* 2

* 3

* 4

* 5

* 6

* 7

* 8

* 9

* 10

* 11

* 12

* 13

* 14

* 15

* 16

* 17

* 18

* 19

* 20

* 21

* 22

* 23

* 24

* 25

* 26

* 27

* 28

* 29

* 30

* 31

* 32

* 33

* 34

* 35

* 36

* 37

* 38

* 39

* 40

* 41

* 42

* 43

* 44

* 45

* 46

* 47

* 47

* 48

* 49

* 50

* 51

* 52

* 53

* 54

* 55

* 56

* 57

* 58

* 59

* 60

* 61

* 62

* 62

* 63

* 64

* 65

* 66

* 67

* 68

* 69

* 70

* 71

* 72

* 73

* 74

* 75

* 76

* 77

* 78

* 79:

* 80:

* 81

* 82

* 83

* 84

* 85

* 86

---------

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

* test as cpu op

* add ut

* add ut

* move cond

* tune ut

* tune pipeline

* promote to ort 141

* reset header version

* restore cmake

---------

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

* trim changes

* revert req txt

---------

Co-authored-by: Randy Shuai <rashuai@microsoft.com>
2023-07-10 10:07:33 -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 d876f7ff82
Initial BertTokenizer offset mapping implementation (#477)
* Initial BertTokenizer offset mapping implementation

* minor change

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-07-03 15:17:23 -07:00
Sayan Shaw afb3e83df2
Change default pad token from 0 to 49407 (#474)
* change defualt pad token from 0 to 49407

* update with GetEncoding

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-06-21 00:11:52 -07:00
Wenbing Li a6012b383e
support vc runtime static linkage (#472)
* support vc runtime static linkage

* typo

* add unit test

* Update ci.yml
2023-06-20 16:40:29 -07:00
Edward Chen b399dd6b38
Update CI build Xcode version and MacOS image. (#471) 2023-06-13 15:01:17 -07:00
Wenbing Li 1f0c76cefa
fix some prefast warnings (#467) 2023-06-07 16:26:45 -07:00
Wenbing Li 1cbebb0835
Update pipeline badge in README.md 2023-06-07 13:33:24 -07:00
Wenbing Li 1c04e95bda
upgrade all dependency versions (#466)
* release the dependency package version

* upgrade the dependency versions

* more fixing for 3.11

* Update ci.yml

* upgrade torch version in MacOS

* fix torch version in MacOS

* upgrade Python support versions

* pybind11 switch URL mode

* more URL modes
2023-06-03 20:09:41 -07:00
RandySheriffH 5cb3153485
Simplify vision ops (#465)
* simplify vision ops

* remove commented

---------

Co-authored-by: Randy Shuai <rashuai@microsoft.com>
2023-06-02 20:47:48 -07:00
Sayan Shaw 6aaf2920bf
Ignore inputs missing from vocab in CLIPTokenizer (#462)
* Ignore unknown inputs in CLIPTokenizer

* add whitespace clean and unknown token handling

* fix const issue

* small updates

* add single whitespace test case

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-06-01 19:40:43 -07:00
Wenbing Li 507358545d
improve lowpass filter with a higher order one. (#463)
* improve lowpass filter with a higer order one.

* Update test_sampling.cc

* remove the unneccerary throw in the code
2023-06-01 14:12:05 -07:00
Tang, Cheng 8f36cf3272
Use API-lite for custom ops (#386)
* use lite custom op api for math

* add vision ops

* add cx2 ops

* remove useless code

* support register custom kernel struct

* add string tensor support

* add more text kernels

* fix issue with std stringg as scalar

* migrate all text ops

* initial tokenizer change

* migrate all tokenizers

* Resolve conflict with main (#433)

* resolve conflict

* resolve conflict

---------

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

* Update custom-op-lite PR (#440)

* add the onnxruntime 1.14 release into the CI pipeline (#387)

* add the onnxruntime 1.14 release into the CI pipeline

* torch 2.0 crashed on Linux

* Fix size_t overflow issue for RobertaTokenizer (#388)

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>

* Pre and Post processing example for openAI Whisper model (#380)

* add a stft-norm custom op for log-mel spectrum.

* undo the debug change

* Support ONNX standard STFT op signature.

* Add a unit test onnx STFT compatible mode.

* add whisper pre-/post- processing example

* Update dlib.cmake

* undo test code changes

* Update setup.cfg

* update the end2end example with STFT op

* Added optional outputs for GPT2, CLIP and Roberta Tokenizers (#389)

* Initial optional i/o for robertap

* Small fix

* Added working optional output functionality to RobertaTokenizer with tests

* Added optional outputs to CLIPTokenizer

* Added optional outputs to GPT2Tokenizer

* Use ternary operators

---------

Authored-by: Sayan Shaw <sayanshaw@microsoft.com>

* ignore the unknown token id on bpe deocder (#391)

* Use dependency name 'nlohmann_json' which is the same name that ORT uses. (#393)

* Add an audio decoder custom op for whisper end-to-end processing (#385)

* evaluate the audio decoder library

* MP3 Decoder

* rename it to test_audio_codec

* add the audio decoder to whisper model

* whisper end-to-end draft

* fix the mp3 decoder

* Running with ONNX models

* Add more audio format supports

* refine the end-to-end script

* Update operators/audio/audio_decoder.hpp

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

* Update operators/audio/audio_decoder.hpp

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

* Update operators/audio/audio_decoder.hpp

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

* some fixings of comments and more test cases.

* changes for review comments.

* Update audio_decoder.hpp

* Update audio_decoder.hpp

* code refinement

* Update operators/audio/audio_decoder.hpp

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

---------

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

* make tensorflow be optional for unittest (#394)

* make tensorflow be optional for unitest.

* typo

* 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>

* a quick nuget package impl. (#396)

* Update wheels_linux.yml: change the linux machine pool name (#398)

* Add a merge step in whisper end-to-end script and fixed some issues (#399)

* add merged models in whisper model

* verify the final model

* support batch > 1 in BpeDecoder (#400)

* support batch > 1 in BpeDecoder

* update the shape in helper function

* [object detection ppp] YoLo as example (#397)

* object detection
* Unit test
add e2e fastestdet model test

---------

Co-authored-by: Changming Sun <chasun@microsoft.com>
Co-authored-by: Scott McKay <skottmckay@gmail.com>

* some fixing for python package (#401)

* more code fixing related whisper models (#403)

* Added windows nuget work temporarily for testing (#402)

* Added windows nuget work temporarily for testing

* Cleanup

* Add back onnxruntime.lib in props file for possible future ORT need

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>

* Remove unnecessary nupkg file and update nuspec (#405)

* Add nuget pack to build.bat and small nuget changes for demo

* Temporarily adding nuget.exe to build package until we can add to CI machine

* Switch back from Release to RelWithDebInfo

* Remove unnecessary changes

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>

* Add initial NuGet pipeline for Windows x64 build (#406)

* initial nuget pipeline

* Update nuget.yml for Azure Pipelines

* update nuget.yml for extensions specific packaging

TODO: add certain template yml files

* added component governance template yaml

* change template yaml path

* remove RoslynAnalyzers

* Add packDestination to nuget pack task (change from default)

* fix nuspec path

* Update nuget.yml for Azure Pipelines

* Update nuget.yml for Azure Pipelines

* Update nuget.yml for Azure Pipelines

* Update 2 nuget.yml for Azure Pipelines

* Update NativeNuget.nuspec

* Update nuget.yml for Azure Pipelines

* update nuspec

* Update 3 nuget.yml for Azure Pipelines

* Update 4 nuget.yml for Azure Pipelines

* Update 7 nuget.yml for Azure Pipelines

* Remove unnecessary nupkg file and update nuspec (#405)

* Add nuget pack to build.bat and small nuget changes for demo

* Temporarily adding nuget.exe to build package until we can add to CI machine

* Switch back from Release to RelWithDebInfo

* Remove unnecessary changes

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>

* Update 8 nuget.yml for Azure Pipelines

* Update 9 nuget.yml for Azure Pipelines

* add DLL signing

* Update nuget.yml for Azure Pipelines

* fix indendation

* Update 11 nuget.yml for Azure Pipelines

* Update 12 nuget.yml for Azure Pipelines

* Update 12 nuget.yml for Azure Pipelines

* Revert some unneccesary changes on nuget.yml

* clean up nuget.yml and update nuspec release notes

* small changes

* update commit id and release notes

---------

Co-authored-by: Wenbing Li <wenbingl@outlook.com>
Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>

* Compatible with onnxruntime-gpu package (#410)

* be compatible without onnxruntime-gpu version

* some fixing

* Add nuget README and remove ort lib references from props (#409)

* Add nuget README and remove ort lib references from props

* replace commit id in nuspec dynamically

* remove $ sign for commit id token

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>

* 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>

* Make Whisper E2E script more portable (#412)

This PR makes the Whisper E2E script more portable for other environments.

* Update macos wheel timeout to 180 min (#390)

* Update ci timeout to 120 min

* Only update WindowsPython job timeout

* Update ci timeout to 90 min

* update macos wheel timeout to 180 min

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>

* Fix OneBranch PR pipeline CodeQL issue (#413)

* test codeql 3000

* switch codeql from compiled to python

* switch back to compiled

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>

* Adding down-sampling and stereo mixing features for AudioDecoder (#420)

* initial draft

* second

* third

* polishing

* fix the M_PI name in LINUX platform

* fix bessel function issue

* add a unit test case

* fix the unit test name

* Fix Secure Supply Chain Analysis Warning in PR pipeline (#414)

* remove package sources

* remove NuGet.config

* add .sscignore for cfs0011

* change sscignore

* add CFS0013 to sscignore

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>

* fix onnx version to 1.13.1 (#422)

* [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>

* Add new required pre/post processing ops to Android and iOS packages. (#415)

* Revert "Pin onnx version to 1.13.1" (#423)

* Revert "fix onnx version to 1.13.1 (#422)"

This reverts commit eb29d225a7.

* Update requirements.txt

* PyOp attribute supports int and float data type (#425)

* Fix Android AAR in nuget package. Requires libortextensions.so. (#429)

* build for mac M1 (#430)

* Fix the unit test failure with ONNX 1.14 package. (#428)

* Fix the unit test failure with ONNX 1.14 package.

* more tests

* Update whisper_e2e.py

* 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>

* resolve conflict

* resolve conflict

* minor fix

* rename from TensorT to Tensor

* fix string tensor

* Add OrtLiteCustomOp

* switch to string view

* fix regex ops

---------

Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
Co-authored-by: Sayan Shaw <52221015+sayanshaw24@users.noreply.github.com>
Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
Co-authored-by: JiCheng <247153481@qq.com>
Co-authored-by: Scott McKay <skottmckay@gmail.com>
Co-authored-by: Changming Sun <chasun@microsoft.com>
Co-authored-by: Wenbing Li <wenbingl@outlook.com>
Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
Co-authored-by: Randy Shuai <rashuai@microsoft.com>

* Fix a build err (#442)

* resolve conflict

* resolve conflict

* minor fix

* rename from TensorT to Tensor

* fix string tensor

* Add OrtLiteCustomOp

* switch to string view

* fix regex ops

* fix build

---------

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

* Fix build err on ort 141 (#444)

* resolve conflict

* resolve conflict

* minor fix

* rename from TensorT to Tensor

* fix string tensor

* Add OrtLiteCustomOp

* switch to string view

* fix regex ops

* fix build

* fix a build err

---------

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

* Remove shape from span (#445)

* resolve conflict

* resolve conflict

* minor fix

* rename from TensorT to Tensor

* fix string tensor

* Add OrtLiteCustomOp

* switch to string view

* fix regex ops

* fix build

* fix a build err

* remove shape

---------

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

* Fix python tests (#446)

* resolve conflict

* resolve conflict

* minor fix

* rename from TensorT to Tensor

* fix string tensor

* Add OrtLiteCustomOp

* switch to string view

* fix regex ops

* fix build

* fix a build err

* remove shape

* fix python tests

---------

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

* Fix max build (#449)

* resolve conflict

* resolve conflict

* minor fix

* rename from TensorT to Tensor

* fix string tensor

* Add OrtLiteCustomOp

* switch to string view

* fix regex ops

* fix build

* fix a build err

* remove shape

* fix python tests

* fix packaging err

* fix mac build

---------

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

* Fix comments (#452)

* resolve conflict

* resolve conflict

* minor fix

* rename from TensorT to Tensor

* fix string tensor

* Add OrtLiteCustomOp

* switch to string view

* fix regex ops

* fix build

* fix a build err

* remove shape

* fix python tests

* fix packaging err

* fix mac build

* fixing the universal2 python package for macOS (#448)

* Remove onnx<1.14 from requirements.txt (#447)

* remove onnx<1.14 from requirements.txt

* downgrade protobuf

* move protobuf req to requirements-dev.txt

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>

* fix comments

* comment version macro

---------

Co-authored-by: Randy Shuai <rashuai@microsoft.com>
Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
Co-authored-by: Sayan Shaw <52221015+sayanshaw24@users.noreply.github.com>
Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>

* Fix build err (#453)

* resolve conflict

* resolve conflict

* minor fix

* rename from TensorT to Tensor

* fix string tensor

* Add OrtLiteCustomOp

* switch to string view

* fix regex ops

* fix build

* fix a build err

* remove shape

* fix python tests

* fix packaging err

* fix mac build

* fix comments

* comment version macro

* define Compute for StftNormal

---------

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

* Merge latest main (#461)

* resolve conflict

* resolve conflict

* minor fix

* rename from TensorT to Tensor

* fix string tensor

* Add OrtLiteCustomOp

* switch to string view

* fix regex ops

* fix build

* fix a build err

* remove shape

* fix python tests

* fix packaging err

* fix mac build

* fix comments

* comment version macro

* define Compute for StftNormal

---------

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

* revert wanted changes in test

* revert unwanted changed

* add string_strip op

---------

Co-authored-by: Cheng Tang <chenta@microsoft.com@orttrainingdev9.d32nl1ml4oruzj4qz3bqlggovf.px.internal.cloudapp.net>
Co-authored-by: RandySheriffH <48490400+RandySheriffH@users.noreply.github.com>
Co-authored-by: Randy Shuai <rashuai@microsoft.com>
Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
Co-authored-by: Sayan Shaw <52221015+sayanshaw24@users.noreply.github.com>
Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
Co-authored-by: JiCheng <247153481@qq.com>
Co-authored-by: Scott McKay <skottmckay@gmail.com>
Co-authored-by: Changming Sun <chasun@microsoft.com>
Co-authored-by: Wenbing Li <wenbingl@outlook.com>
Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
2023-05-30 18:04:44 -07:00
Aidan Ryan (MSFT) 30eb7afcfa
Add string strip text operator (#460)
* add string strip text operator

---------

Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
2023-05-30 16:52:59 -04:00
Wenbing Li 93f239c143
Unit test being compatible with ONNXRuntime-GPU package, and some clean-ups. (#457) 2023-05-30 11:01:30 -07:00
Sayan Shaw 70411fdd96
Update release notes for nuget (#456)
* Update release notes for nuget

* indentation fix

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-05-26 10:30:16 -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 32e76e17b3
Upgrade CMake for Linux NuGet packaging pipeline (#454)
* update nuget linux packaging pool to fix cmake version issue on nuget packaging pipeline

* switch nuget linux pool to ubuntu-latest

* upgrade cmake

* more fixes

* install cmake binary

* try to use pip installed cmake

* more fixes

* add source bash profile reset

* typo

* try ~/.local/bin again

* add comment

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-05-22 23:30:41 -07:00
Sayan Shaw 77cf3e6d2c
Remove onnx<1.14 from requirements.txt (#447)
* remove onnx<1.14 from requirements.txt

* downgrade protobuf

* move protobuf req to requirements-dev.txt

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
2023-05-21 23:34:09 -07:00
Wenbing Li b603c0283a
fixing the universal2 python package for macOS (#448) 2023-05-21 21:40:11 -07:00
Edward Chen 15dfd70338
Add explicit 'set +x' before printing a vso[] command to avoid output getting parsed again with a trailing quote. (#443) 2023-05-18 17:46:36 -07:00
Scott McKay 4d652011a8
Minor cmake updates (#432)
* Update minimum cmake version to 3.25
  * Resolve issue with CMAKE_FIND_FRAMEWORK
  * Change to use pool with VS2022 for win32 wheel build so it has cmake 3.25
* Update ext_ortlib.cmake so it doesn't break when cross-compiling for Android on Windows by defaulting to a build even though it can't be used with Android. Need to address the unit testing gap for Android/iOS separately.
2023-05-17 08:02:42 +10: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 239febe4c3
Update cgmanifest.json and ThirdPartyNotices.txt (#438)
* Update cgmanifest.json and ThirdPartyNotices.txt

* add gsl and dr_libs

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-05-15 13:11:05 -07:00
Sayan Shaw 56b978233d
Fix OneBranch Official pipeline CodeQL issue (#437)
Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-05-15 10:34:07 -07:00
JiCheng 598dfcbfc7
overflow (#439) 2023-05-15 10:47:15 +08:00
Scott McKay 64f20828ce
Handle ONNX 1.14 in test scripts (#435)
* Calculate and specify ir_version so we use the oldest possible for maximum compatibility

* Don't use `ignore_unknown` in call to `find_min_ir_version_for` as it's only supported in the most recent ONNX release.
2023-05-12 07:13:37 +10:00
Vishal Jain 03b96c822c
Fix ReadMe : Example usage of the PrePostProcessor.md (#436)
- Small typo fix in "Add post-processing steps"
2023-05-11 18:36:14 +10: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
Wenbing Li 43994eb34a
Fix the unit test failure with ONNX 1.14 package. (#428)
* Fix the unit test failure with ONNX 1.14 package.

* more tests

* Update whisper_e2e.py
2023-05-08 11:37:54 -07:00
JiCheng b7b8816dab
build for mac M1 (#430) 2023-05-07 09:15:55 +08:00
Scott McKay 6eddd2f03f
Fix Android AAR in nuget package. Requires libortextensions.so. (#429) 2023-05-06 17:32:08 +10:00
Wenbing Li 46efcb9051
PyOp attribute supports int and float data type (#425) 2023-05-05 19:35:59 -07:00
Wenbing Li 9cbd2ada18
Revert "Pin onnx version to 1.13.1" (#423)
* Revert "fix onnx version to 1.13.1 (#422)"

This reverts commit eb29d225a7.

* Update requirements.txt
2023-05-05 13:32:42 -07: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 eb29d225a7
fix onnx version to 1.13.1 (#422) 2023-05-05 17:32:04 +08:00
Sayan Shaw 288439a35d
Fix Secure Supply Chain Analysis Warning in PR pipeline (#414)
* remove package sources

* remove NuGet.config

* add .sscignore for cfs0011

* change sscignore

* add CFS0013 to sscignore

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-05-04 16:29:21 -07:00
Wenbing Li 2fa0b710ea
Adding down-sampling and stereo mixing features for AudioDecoder (#420)
* initial draft

* second

* third

* polishing

* fix the M_PI name in LINUX platform

* fix bessel function issue

* add a unit test case

* fix the unit test name
2023-05-04 13:30:10 -07:00
Sayan Shaw ad0fd98221
Fix OneBranch PR pipeline CodeQL issue (#413)
* test codeql 3000

* switch codeql from compiled to python

* switch back to compiled

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-05-02 13:25:41 -07:00
Sayan Shaw 9170b4ab41
Update macos wheel timeout to 180 min (#390)
* Update ci timeout to 120 min

* Only update WindowsPython job timeout

* Update ci timeout to 90 min

* update macos wheel timeout to 180 min

---------

Co-authored-by: Sayan Shaw <sayanshaw@microsoft.com>
2023-05-01 13:59:01 -07:00
kunal-vaishnavi f12270b068
Make Whisper E2E script more portable (#412)
This PR makes the Whisper E2E script more portable for other environments.
2023-04-28 10:17:56 -07:00