Commit graph

4925 commits

Author SHA1 Message Date
Ryan Hill
912b61e490 Java fix for non cuda case 2021-05-10 13:02:56 -07:00
Ryan Hill
49a8b5db0f Fix minimal build 2021-05-10 11:33:04 -07:00
Ryan Hill
a79227dd0f Spotless fix 2021-05-10 11:20:45 -07:00
Ryan Hill
11bec62921 Fix errors due to merge 2021-05-10 01:46:30 -07:00
Ryan Hill
1698c57fcc Merge with master 2021-05-10 00:41:07 -07:00
Ryan Hill
d308c57728 Code review feedback 2021-05-10 00:18:28 -07:00
Ryan Hill
64c0deeb7e Revert "Switch yml back to regular build pool"
This reverts commit be35fc2a5a.
2021-05-10 00:14:13 -07:00
Ryan Hill
be35fc2a5a Switch yml back to regular build pool 2021-05-09 10:48:58 -07:00
Hariharan Seshadri
4b691a5c0d
Add ability for memory arenas to "shrink" periodically (#7284) 2021-05-08 07:53:21 -07:00
Ye Wang
803837df63
Add 4dmask support for attention cuda kernel (#7591)
* checkin

* add 4dmask support in attention cuda op

* trim

* add comments

* fix build/test error

* review comments and add tests

* sync doc

* review comments

* minor change
2021-05-07 20:17:29 -07:00
Ryan Hill
e02270e640 Spotless fix 2021-05-07 19:18:23 -07:00
Ryan Hill
648679b370 Remove LongformerAttentionBase workaround 2021-05-07 18:11:06 -07:00
Ryan Hill
6ad01b9040 Java comments 2021-05-07 17:13:22 -07:00
Tianlei Wu
55c086b664
symbolic shape inference improvements for contrib ops (#7606)
* add EmbedLayerNormalization
* use onnx shape inference for Unsqueeze
* Fix type warning in Attention
2021-05-07 17:03:24 -07:00
Edward Chen
5a5fec0452
Fix logs getting skipped in single-line conditionals. (#7589)
Fix an issue where a log message got skipped.

A log call like this:
```
LOGS(...) << "message";
```
expands to something like this:
```
if (<output enabled>)
  logging::Capture(...).Stream() << "message";
```

This if statement without brackets is handy for logging arbitrary arguments with the `<<` operator. However, it has other drawbacks like possibly associating with a subsequent `else`.

```
if (cond)
  LOGS(...) << "a";
else
  <do something> // not run when !cond

// equivalently:
if (cond)
  if (<output enabled>)
    logging::Capture(...).Stream() << "a";
  else
    <do something> // not run when !cond
```

Updated the logging macros to handle this case by replacing `if (<enabled>) logging::Capture(...).Stream()` with `if (!<enabled>) {} else logging::Capture(...).Stream()`.

Thanks @tlh20 for the idea for the fix!
2021-05-07 15:40:47 -07:00
Derek Murray
e91bdbde20
Add myself to CODEOWNERS for ORTModule python code (#7453) 2021-05-07 15:35:45 -07:00
Changming Sun
41e370c2b3
Update protobuf to 3.16 (#7616) 2021-05-07 14:09:23 -07:00
Ryan Hill
981af7d085 Fix break 2021-05-07 13:59:26 -07:00
Ryan Hill
74b1016d3b Fix cleanup on exit 2021-05-07 13:16:17 -07:00
Tixxx
3c39fcc1fa
[js/web] port fixes for packed concat over to ort repo (#7605)
* port fixes for packed concat over to ort repo

* fix format
2021-05-07 13:04:53 -07:00
Yulong Wang
bdefc6c4d8
[js/web] support multi-thread for wasm backend (#7601) 2021-05-07 12:12:37 -07:00
stevenlix
8ab0deceed
Add DLA support to TensorRT EP (#7532)
* Add DLA to TensorRT EP, enable device_id options in pybind, fix cycledetection issue

* fix format

* remove unecessary passing by pointer

* fix issue
2021-05-07 10:31:42 -07:00
Scott McKay
9fc4116d51
Use ASSERT_STATUS_OK so the error message is output if there's a failure. (#7515) 2021-05-07 20:23:34 +10:00
Ryan Hill
9dfdafe6e0 Leave temp file around to load properly 2021-05-07 01:08:45 -07:00
Vincent Wang
0c91b643fe
Bugfix for Scatter and GatherElementsGrad (#7593)
* bugfix for scatter and gather elements grad

* resolve comments
2021-05-07 14:02:26 +08:00
Ryan Hill
24eed8bd8f Spotless fix 2021-05-06 20:05:30 -07:00
Maajid khan
cea0ea1591
[OpenVINO-EP] Remove support for 2020.4 (#7580)
* [OpenVINO-EP] Remove support for 2020.4

Signed-off-by: MaajidKhan <n.maajidkhan@gmail.com>

* Minor changes added

Signed-off-by: MaajidKhan <n.maajidkhan@gmail.com>

* Minor changes added

Signed-off-by: MaajidKhan <n.maajidkhan@gmail.com>

Co-authored-by: suryasidd <surya.siddharth.pemmaraju@intel.com>
2021-05-06 19:20:18 -07:00
Ryan Hill
dda221501b Fix build error 2021-05-06 18:26:45 -07:00
Ryan Hill
29288eb480 Java test on my VM 2021-05-06 17:01:50 -07:00
Ryan Hill
af3824ce25 Merge branch 'master' of https://github.com/microsoft/onnxruntime into ryanunderhill/cuda_shared 2021-05-06 17:00:59 -07:00
Pranav Sharma
bdb2ed7864
Revert "Add log to allow serving platforms to quantify ORT usage. (#7476)" (#7598)
This reverts commits da5c926, 4186233 and be2a304.
2021-05-06 16:21:32 -07:00
Ryan Hill
34511ff862 Fix typos 2021-05-06 15:15:05 -07:00
Ryan Hill
a826b0ca75 Test java fix 2021-05-06 14:42:54 -07:00
Tianlei Wu
d88da44066
Allow flexible order of Add inputs in Attention fusion (#7565) 2021-05-06 09:43:28 -07:00
ashbhandare
4896744638
Improve CPU node placement logic to avoid Memcpys (#7427)
* Modify CPU fallback logic

* Review comments, failing test

* Add test for topological order

* review comment

* Fix test for amd ci

* fix build

* Fix amd test
2021-05-06 09:39:34 -07:00
Ryan Hill
4fc2569224 ROCM 4 2021-05-06 03:34:39 -07:00
Ryan Hill
7d74a92575 ROCM fix 3 2021-05-06 03:16:11 -07:00
Ryan Hill
6878463b1a Merge branch 'master' of https://github.com/microsoft/onnxruntime into ryanunderhill/cuda_shared 2021-05-06 02:58:58 -07:00
Ryan Hill
be540afbea Fix submodule out of sync 2021-05-06 02:58:51 -07:00
Ryan Hill
b4b6c4fac2 Stupid fixes 2021-05-06 02:40:29 -07:00
Scott McKay
097bab8d1e
Cleanup a change to ExecutionFrame a little (#7576)
* Reduce the binary size growth from this change. Minimal build grew by 7KB from this checkin.

Firstly simplify the checking logic a little. Same checks are still done - just without using an extra layer of helpers.

The issue being addressed by the original change only applies if you have a graph output where the shape wasn't able to be inferred. e.g. Reshape node with dynamic input causes downstream shapes to be unknown. If that is not the case, MergeShapeInfo in graph.cc would have resolved any differences between a specified output shape and the inferred output shape during Graph::Resolve.

The issue does not apply to the execution frame used by the optimizer as  the only time it would create a graph output is if it could constant fold all the way through, so MergeShapeInfo would have handled any difference in that case as well.

Due to these considerations, wiring a logger in at the IExecutionFrame level isn't necessary if VerifyOutputSizes optionally overridden by an implementation that cares.

* Address PR comments
2021-05-06 19:29:34 +10:00
Ryan Hill
85e5fddd2a Put back Linux hack, it is necessary 2021-05-06 00:32:09 -07:00
Ryan Hill
3dfec5a339 ROCM fix v2 2021-05-06 00:20:01 -07:00
Pranav Sharma
be2a3046fe
Disable telemetry log for training builds (#7585) 2021-05-06 00:03:19 -07:00
Maajid khan
5413eaa5e4
Additional cmake changes for OpenVINO build (#7579)
->unsetting the CMAKE_MAP_IMPORTED_CONFIG that was
set for OpenVINO EP for Relwithdebinfo build on
windows.

Signed-off-by: MaajidKhan <n.maajidkhan@gmail.com>

Co-authored-by: suryasidd <surya.siddharth.pemmaraju@intel.com>
2021-05-05 23:54:53 -07:00
Ryan Hill
0853a58cfa ROCM fix 2021-05-05 23:29:17 -07:00
Ryan Hill
d74b1e8717 Fix another merge error 2021-05-05 23:27:03 -07:00
Ryan Hill
192d23060e Revert yml changes 2021-05-05 22:34:25 -07:00
Ryan Hill
d2f96e4c59 Cleanup + new training ops 2021-05-05 21:01:17 -07:00
Ryan Hill
e2856cfa21 Undo edit to file 2021-05-05 18:53:46 -07:00