Commit graph

32 commits

Author SHA1 Message Date
Brian Martin
da24d9659f Merge branch 'windowsai' into layer_dev 2019-11-26 14:05:54 -08:00
Brian Martin
2394d16947
make api tests all pass (#2486) 2019-11-26 13:50:56 -08:00
Tiago Koji Castro Shibata
f40d5d80a0
Add scenario tests (#2457)
* Add scenario tests

* Remove TODO from model license

* Add winml_api test dependency
2019-11-25 17:17:23 -08:00
Brian Martin
34b1bf2db7
Brianma/testfails (#2473)
* add missing ir version to dictvectorizer-string.onnx

* add missing ir version to relu.onnx

* add missing ir version to zipmap*onnx

* add IR version to manually generated models

* remove an unnecessary ifdef dml
2019-11-25 14:38:19 -08:00
Paul McDaniel
befe933b86 build break. 2019-11-25 13:31:56 -08:00
Paul McDaniel
78c3c126c9 merged in brian's changes 2019-11-25 13:23:32 -08:00
Paul McDaniel
974ee0b74b Checking in a staging checkpoint point so that Ryan can work with me in parrallel 2019-11-25 12:50:04 -08:00
Brian Martin
3787a071c5
Brianma/fi (#2470)
* learning model doesn't need lotusEnvironment and CPU shouldn't include dmlEP headers

* User/xianz/win ml telemetry (#2410)

* add option to enable winml telemetry

* add option to enable winml telemetry

* clean logs while developping

* clean the log of GUID

* compile onnxruntime_common with winml telemetry

* use option for use_telemetry

* rename option winml_use_telemetry to onnxruntime_use_telemetry

* little change

* Add opset and IR check when loading model (#2413)

* Add opset and IR check.
* Add test case for future opsets.

https://github.com/microsoft/onnxruntime/issues/2371

* WinML CI (#2412)

* Pass flags to build/test WinML in CI

* Add initial CMake config for unit tests in WinML

* Set winml_unittests standard to C++17

* Add WinML API tests and port them to googletest

* Install WinML test collateral

* Add LearningModelSessionAPITests ported to googletest

* Fix WinML test files encoding

* Add GPU tests

* Add parameterized test, skip GPU tests

* Enable precompiled header

* Remove unused code and collateral

* Remove brand images

* Add dllload.cpp

* Remove images not used in API tests

* Add LICENSE.md to image collaterals

* Add models with licenses

* Remove FNS Candy tests

* Add API test models

* Add ModelInSubdirectory

* Install collaterals post-build with copy_if_different, split common lib

* fix warnings

* Link to gtest_main

* fix bad merge
2019-11-25 11:34:34 -08:00
Brian Martin
1bc2ca6183
Brianma/breaks (#2469)
* fix some more breaks

* learning model doesn't need lotusEnvironment and CPU shouldn't include dmlEP headers

* move dml checks out of winml and into the adapter

* better error handling
2019-11-25 11:11:30 -08:00
Brian Martin
d738bdd968
Brianma/cpuwinml (#2466)
* allow building winml cpu without dml.
2019-11-22 16:13:28 -08:00
Ryan Lai
0b5750d047
Register WinML TraceLogging provider on Onnxruntime.dll (#2455)
* Register WinML TraceLogging provider on Onnxruntime.dll

* Add ifdef to make sure trace logging provider has telemetry option when LAYERING_DONE

* No need for ifdef for TraceLoggingOptionMicrosoftTelemetry

* PR feedback

* Move etw registration into lotus environment constructor and deresgister in lotus environment destructor
2019-11-22 07:23:20 -08:00
Tiago Koji Castro Shibata
0f5f17c175
WinML CI (#2412)
* Pass flags to build/test WinML in CI

* Add initial CMake config for unit tests in WinML

* Set winml_unittests standard to C++17

* Add WinML API tests and port them to googletest

* Install WinML test collateral

* Add LearningModelSessionAPITests ported to googletest

* Fix WinML test files encoding

* Add GPU tests

* Add parameterized test, skip GPU tests

* Enable precompiled header

* Remove unused code and collateral

* Remove brand images

* Add dllload.cpp

* Remove images not used in API tests

* Add LICENSE.md to image collaterals

* Add models with licenses

* Remove FNS Candy tests

* Add API test models

* Add ModelInSubdirectory

* Install collaterals post-build with copy_if_different, split common lib

* fix warnings

* Link to gtest_main
2019-11-21 16:55:32 -08:00
Paul McDaniel
44a4fc0cc2 Moved SessionOptions over to the abi 2019-11-19 18:15:47 -08:00
Paul McDaniel
d8941f11b1 fixed map and sequence when passing stl types across the ABI .
found a leak in nvidia driver, but skipped it.
all winmlapitests pass now
2019-11-19 10:54:51 -08:00
Paul McDaniel
3da841bb73 fixed 2 more heap corruptions 2019-11-18 19:46:32 -08:00
Paul McDaniel
9253e2392d merge 2019-11-18 18:40:26 -08:00
Paul McDaniel
acc6ea525b couple of fixes and coded getmutabledata() 2019-11-18 18:31:04 -08:00
Paul McDaniel
be37e4c225
Layer dev paulm (#2424)
* model moved over.
everything builds clean.
step !

* weak ref comment

* added a wrapper for RoGetActivationFactory to hook back into winml for creating winml objects.
fixes model load.

* fixed some lifetime management.
fixed the debug build.
squeezenet passes using winmlrunner for CPU and GPU

* PR feedback.
2019-11-18 11:07:54 -08:00
Paul McDaniel
a3542e1128 PR feedback. 2019-11-18 11:06:08 -08:00
Paul McDaniel
5a1177acaa
Layer dev paulm (#2423)
* model moved over.
everything builds clean.
step !

* weak ref comment

* added a wrapper for RoGetActivationFactory to hook back into winml for creating winml objects.
fixes model load.

* fixed some lifetime management.
fixed the debug build.
squeezenet passes using winmlrunner for CPU and GPU
2019-11-18 09:51:39 -08:00
Paul McDaniel
b4047a0aad fixed some lifetime management.
fixed the debug build.
squeezenet passes using winmlrunner for CPU and GPU
2019-11-18 09:50:25 -08:00
Paul McDaniel
5bd2c1ef21
Layer dev paulm (#2414)
* model moved over.
everything builds clean.
step !

* weak ref comment

* added a wrapper for RoGetActivationFactory to hook back into winml for creating winml objects.
fixes model load.
2019-11-15 16:48:38 -08:00
Paul McDaniel
7f9a7f5abe added a wrapper for RoGetActivationFactory to hook back into winml for creating winml objects.
fixes model load.
2019-11-15 16:47:33 -08:00
Paul McDaniel
2bfa3c67c6
Layer dev paulm (#2408)
* model moved over.
everything builds clean.
step !

* weak ref comment
2019-11-15 13:17:22 -08:00
Paul McDaniel
f32bbd5cb7 weak ref comment 2019-11-15 13:15:57 -08:00
Paul McDaniel
f07fdf96b4 model moved over.
everything builds clean.
step !
2019-11-15 10:54:44 -08:00
Paul McDaniel
5350abe19d
LearningModelSession is cleaned up to use the adapter, and parts of b… (#2382)
this is a big PR.    we are going to move it up to layer_dev , which is still a L3 so we are still safe to do work there agile.

we are going to move this into the L3 so that ryan can start doing intergration testing.   

we will pause for a full code review and integration test result prior to going into the L2.

>>>> raw comments from previous commits >>> 

* LearningModelSession is cleaned up to use the adapter, and parts of binding are.
* moved everything in the winmladapter
made it all nano-com using, WRL to construct objects in the ORT side.
base interfaces for everythign for winml to call
cleaned up a bunch of winml to use the base interfaces.
* more pieces
* GetData across the abi.
* renamed some namepsace
cleaned up OrtValue
cleaned up Tensor
cleaned up custom ops.
everything *but* learnignmodel should be clean
* make sure it's building.   winml.dll is still a monolith.
2019-11-14 17:44:07 -08:00
Brian Martin
895342bf74
return proper error when the model path isn't found (#2391) 2019-11-13 14:57:32 -08:00
Paul McDaniel
5406801670
Task 23998197: add winml_lib_core into onnnxruntime.dll (#2368)
* Task 23998197: add winml_lib_core into onnnxruntime.dll

* PR feedback
build break on perf_test
2019-11-11 14:34:19 -08:00
Paul McDaniel
b6f5eef1d9 more snipping to get core into ort 2019-11-08 13:23:44 -08:00
Ryan Lai
444bfcc26e Initial changes for layering 2019-11-07 16:50:24 -08:00
Adrian Tsai
7390b64af5 Initial Commit 2019-11-07 11:51:44 -08:00