Commit graph

3218 commits

Author SHA1 Message Date
Dwayne Robinson
040c5fa3e0
Merge pull request #4925 from microsoft/user/dwayner/Iron
ORT DirectML EP for Iron release, ONNX 1.5
2020-08-28 12:28:30 -07:00
Wei-Sheng Chin
1281ff6462
Put operators in-between Wait and Record (#4916) 2020-08-28 11:44:54 -07:00
Hariharan Seshadri
b945225de3
Include DirectML pdb in x86 bin folder (#4953) 2020-08-28 11:29:26 -07:00
Changming Sun
c37fa7c278
Delete Dockerfile.centos6_gpu (#4851) 2020-08-28 09:56:52 -07:00
Brian Martin
39382dc6c3
Update winrt_api.md to address the 1.4 release (#4946) 2020-08-28 08:05:22 -07:00
Dwayne Robinson
79429c934b Update 2020-08-27 21:01:19 -07:00
Ori Levari
a7ce5b2be1
fix comment and casing of telemetry fields for named dimension overrides (#4943)
Co-authored-by: Ori Levari <orlevari@microsoft.com>
2020-08-27 17:30:56 -07:00
Ye Wang
dfb9d97ddf
Support DistilBert's Attention fusion in Optimizer (#4748)
* checkin

* attention fusion

* attention work under layernorm, still need refine

* embedlayernorm(have problems with graph.Resolve())

* some fix

* update: attention works but onnx results in protobuf parsing failed

* tested by optimizer

* add embedlayer fusion test

* add attention fusion test

* clean code, need refactor later

* clean code

* added reshape fusion for distilbert, modified attention, added tests

* refactor

* small fix

* remove uncessary lines

* fix reshape and modify attention

* resolving conflicts

* restore

* refactor and review partial comments

* refactor attention

* small fix

* fix inf compare

* match new pattern for attention fusion

* formatting

* attention does not depend on transposescalematmul

* fix

* review coments

* revert changes

* review comments

* small fix
2020-08-27 17:00:30 -07:00
George Wu
e6b6736e48
update cuda capabilities (#4936) 2020-08-27 16:38:18 -07:00
Tang, Cheng
efdd96595f
bfloat16 and opset13 related fix (#4913)
* regsiter part of opset13 cpu kernels; fix a bug in func impl; adjust reshapefusion order

* remove useless function

Co-authored-by: Cheng Tang <chenta@microsoft.com>
2020-08-27 16:10:53 -07:00
Dwayne Robinson
f68d5263b7 Merged PR 5100436: EinSum ONNX 1.7 (opset 12) ORT DML EP kernel
Adds EinSum operator (purely an EP kernel, not a dedicated DML operator), which takes an equation string and depending on the specifics is capable of representing: identity, diag, trace, transpose, reduce sum, dot product, matmul, elementwise multiplication, inner product, outer product.

The DML EP recognizes many of them (identity, transpose, reduce sum, 1D dot product, matmul, elementwise multiplication), but defers to CPU when not supported (extended inner product, outer product, diag, trace, arbitrary batch ellipsis).

https://github.com/onnx/onnx/blob/master/docs/Operators.md#Einsum

WindowsAI PR: https://microsoft.visualstudio.com/DefaultCollection/WindowsAI/_git/WindowsAI/pullrequest/5100608

Related work items: #27469790
2020-08-27 22:10:14 +00:00
Nick Feeney
b5c765c76b Merged PR 5103319: 8d Update
Required changes for 8D scatter and gather

Related work items: #27678554
2020-08-27 21:28:02 +00:00
Brian Martin
970ddd56a7
Fix typo in contributing.md (#4939)
committments -> commitments
2020-08-27 14:01:36 -07:00
Sherlock
9f5d4918dc
MatMul Gradient optimization for dB when B's is 2D tensor (#4899)
* Optimized MatMulGrad for dB when B's shape is 2D

* Refactor for ConstantScalarNode

Co-authored-by: Sherlock Huang <bahuang@OrtTrainingDev3.af05slrtruoetgaxwwjv5nsq5e.px.internal.cloudapp.net>
2020-08-27 11:33:20 -07:00
Sheil Kumar
6dc85b5f14
wstring_convert std::codecvt_utf8 add ~200KB to inbox windows.ai.machinelearning.dll binary size (#4932)
* switch to UTF8FromHString

* remove extra c_str

Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
2020-08-27 10:07:10 -07:00
Dmitri Smirnov
2b460eaeca
Revise IDisposable implementation in C# interfaces (#4915)
Revise IDisposable implementation in C# interfaces
2020-08-27 09:17:42 -07:00
Scott McKay
08eb15068c
Exclude the Map types from the build if ML ops are disabled. (#4908)
* Exclude the Map types from the build if ML ops are disabled. They're the only ops that use Map.
2020-08-27 17:48:12 +10:00
Ye Wang
792ed44537
Support EmbedLayerNorm fusion for DistilBert (#4928)
* checkin embedlayernorm fusion for distilbert

* move function from optimizer_utils

* review comments
2020-08-26 21:46:31 -07:00
harshithapv
00fe718264
Fix divide-by-zero for SSCE kernel when normalize factor is zero. (#4911)
* Changes in SSCE for all tokens ignored case.
2020-08-26 17:12:17 -07:00
Thiago Crepaldi
cac25751bd
Fix mnist example (#4926) 2020-08-26 15:28:39 -07:00
Scott McKay
438babd966
Fix some Android build issues when ORT_MINIMAL_BUILD is defined. (#4924) 2020-08-27 07:37:51 +10:00
liqunfu
b3783a9f85
matching multiple choice between new and old apis (#4918)
* matching multiple choice between new and old apis

* update according to reviewer's comments

Co-authored-by: liqun <liqun@OrtTrainingDev4.af05slrtruoetgaxwwjv5nsq5e.px.internal.cloudapp.net>
2020-08-26 12:36:10 -07:00
Ashwini Khade
0d3bbfdd0f
enable nuget packaging in local builds (#4884)
* enable building nuget packages

* add nuget creation from build.py

* add documentation

* fix flake8 errors

* fix nuget package version

* enable csharp tests

* update csharp tests

* copy nuget packges to nuget-artifacts

* add libmklml_gnu

* plus review updates

* fix references for release builds
2020-08-26 12:33:48 -07:00
Thiago Crepaldi
0a2848d3a0
Remove cerberus from wheel package (#4919) 2020-08-26 09:00:03 -07:00
Dwayne Robinson
cb5e199a79 Merged PR 5093868: GatherND1 ORT DML EP
Add batchDimensionCount.
https://github.com/onnx/onnx/pull/2585  - add batch_dim parameter.

DML PR: https://microsoft.visualstudio.com/WindowsAI/_git/WindowsAI/pullrequest/5089850
2020-08-26 02:22:21 +00:00
KeDengMS
5d3638e935
Fix symbolic shape inference bug when subgraph contains Constant node (#4858)
Constant node will be converted to initializer, and thus need to be added to subgraph initializer after such conversion
2020-08-25 16:51:18 -07:00
Xiang Zhang
170fee0987
User/xianz/fixbuild (#4906)
* support Normalized_0_1 and Normalized_1_1

* add tests for Normalized_1_1

* fix build error

* fix imagetests failure

* support denterization and add more tests

* fix build

* remove added models

* disable gpu tests for CPU pipeline

* refactor based on comments and moved two added models

* merge normalizer and Denomalizer into NominalRangeConverter

* add comments

* little change

* fix build failure for amd64
2020-08-25 15:08:55 -07:00
Scott McKay
1161c4d75f
Exclude MLAS AVX512 in minimal build (#4905) 2020-08-26 08:03:37 +10:00
ytaous
cb2dfee31c
Size Op - CUDA kernel support (#4868)
* cuda kernel support

* on comments

* test UT

* test UT

* revert settings

* attempt to fix broken UT

* corrected UT fix

Co-authored-by: Ethan Tao <ettao@microsoft.com>
2020-08-25 14:26:41 -07:00
Hariharan Seshadri
294eaca9ef
Support double for ArgMax operator (#4907) 2020-08-25 13:23:52 -07:00
Dudeldu
3d63d8d4f1
Extend C++ API for Map/Sequence Type Info (#3517) (#4781)
* Extend C++ API for Map/Sequence Type Info (#3517)

Expose functionality to view type information about sequences/maps
to C++ API.

- Add functions
    - `TypeInfo::GetSequenceTypeInfo`
    - `SequenceTypeInfo::GetSequenceElementType`
    - `TypeInfo::GetMapTypeInfo`
    - `MapTypeInfo::GetMapValueType`
    - `MapTypeInfo::GetMapKeyType`
- Add structs
    - `SequenceTypeInfo`
    - `MapTypeInfo`

Co-authored-by: Dudeldu <mustermann.informatik@gmail.com>
Co-authored-by: Jonas-Heinrich <Jonas@JonasHeinrich.com>

* Extend tests to cover new type info functionality for sequences and maps

 - two new test case in test_nontensor_types for maps and sequences

Co-authored-by: Jonas-Heinrich <Jonas@JonasHeinrich.com>
2020-08-25 12:03:23 -07:00
Hariharan Seshadri
6c26e52134
Support accessing a model's metadata in C# (#4867)
Implement access to model's metadata in C#
2020-08-25 11:13:49 -07:00
Hariharan Seshadri
26bd8c2085
Support scalar tensors in c# (#4849) 2020-08-25 11:00:33 -07:00
Ryan Lai
d3cddba8f1
Add this line to allow collection of AppSessionGuids (#4901)
Co-authored-by: Ryan Lai <ryalai96@gamil.com>
2020-08-25 10:43:09 -07:00
Scott McKay
14c691030f
Fix build break from removing custom ORT onnx protobuf (#4904)
Exclude parsing of json config in model (also excludes json parsing library)
2020-08-25 18:10:42 +10:00
edgchen1
71d8846635
Fix telemetry-steps.yml (#4903)
Fix bug in telemetry-steps.yml that causes telemetry setup to be disabled even if TELEMETRYGUID is set.
2020-08-24 22:14:40 -07:00
Changming Sun
f34ed3a576
Hot fix for the python packaging pipeline Linux ARM build (#4902) 2020-08-24 20:14:33 -07:00
Jake Mathern
83b7c1151a Merged PR 5086432: Update Operator Pow-12: Allow exponent to differ from base type
Operator Pow-12 now defines the exponent as a separate type that can be any scalar type

[Onnx changelog pow-12](https://github.com/onnx/onnx/blob/master/docs/Changelog.md#Pow-12)

[windowsai pr](https://microsoft.visualstudio.com/WindowsAI/_git/WindowsAI/pullrequest/5029500)

Related work items: #27469776
2020-08-24 23:55:38 +00:00
Bowen Bao
db6a821869
Enable example transformer test with dynamic size inputs (#4888)
Co-authored-by: Thiago Crepaldi <thiago.crepaldi@microsoft.com>
2020-08-24 14:31:08 -07:00
Xiang Zhang
824fcbfd9d
support Normalized_0_1 and Normalized_1_1 (#4800)
* support Normalized_0_1 and Normalized_1_1

* add tests for Normalized_1_1

* fix build error

* fix imagetests failure

* support denterization and add more tests

* fix build

* remove added models

* disable gpu tests for CPU pipeline

* refactor based on comments and moved two added models

* merge normalizer and Denomalizer into NominalRangeConverter

* add comments

* little change
2020-08-24 13:13:50 -07:00
Tianlei Wu
268d2283c0
Export GPT-2 ONNX model without postion_ids and attention_mask inputs (#4852)
* Export GPT-2 ONNX model without postion_ids and attention_mask inputs
* allow benchmark_gpt2 on user's model
* refactor:  get_dummy_inputs returns a data class.
2020-08-24 13:05:25 -07:00
Changming Sun
26546f81fe
Remove the private ONNX protobuf definition file (#4878) 2020-08-24 12:40:33 -07:00
Ye Wang
c5cb9d7b41
match reshape fusion for distilbert (#4844)
* reshape fusion for distilbert

* Update reshape_fusion.cc

* Update reshape_fusion.cc

* fix reshape

* resolve comments

* Update reshape_fusion.cc

* review comments

* review comments

* rename

* Update reshape_fusion.cc
2020-08-24 10:45:31 -07:00
Chun-Wei Chen
744809ceae
Detect whether the node has been inserted cast nodes twice (#4811)
* check whether the node has been casted before

* check casted node logically

* better naming convention

* nit: extra space

* change to skip for Cast Node

* remove hasNodeBeenCast

* Add a Unit test

* Add test onnx file

* nit: naming convention and comments

* check CI: try to remove test

* move test to existing test file
2020-08-24 07:25:41 -07:00
ISS Build Account
1542a8a9b7 Merge remote-tracking branch 'upstream/master' into DmlDev 2020-08-24 11:01:50 +00:00
ISS Build Account
3dd2d53593 Merge branch 'DmlDev' of https://microsoft.visualstudio.com/DefaultCollection/WindowsAI/_git/onnxruntime into DmlDev 2020-08-24 11:01:50 +00:00
Scott McKay
47c4144bd1
Add gcc/clang flags to make binary smaller (https://interrupt.memfault.com/blog/best-and-worst-gcc-clang-compiler-flags#-ffunction-sections--fdata-sections----gc-sections) (#4895)
Add gcc/clang flags to make binary smaller. ~10% reduction for Android baseline build (minimal build with no ops, no exceptions, no rtti).
2020-08-24 19:24:13 +10:00
ISS Build Account
8cc5e9748f Merge remote-tracking branch 'upstream/master' into DmlDev 2020-08-23 12:15:57 +00:00
ISS Build Account
7c0ff3742f Merge remote-tracking branch 'upstream/master' into DmlDev 2020-08-23 11:05:16 +00:00
Rayan-Krishnan
eb05db5a2a
Fix OptimizerConfig params groups (#4877)
* Copy samples to build folder and load models from there. Fix CI
* This PR also includes a fix to path validation for save_as_onnx API
* Add torchtext to CI for GPU training
* Remove new frontend tests from CI

Co-authored-by: Thiago Crepaldi <thiago.crepaldi@microsoft.com>
2020-08-22 22:04:17 -07:00