Commit graph

1285 commits

Author SHA1 Message Date
Ryan Hill
7e22ed41b9
Fix sample tests (#1926) 2019-09-26 10:31:48 -07:00
Changming Sun
09cdbe9d76
Update test data (#1932) 2019-09-26 10:13:53 -07:00
Mohammadreza Yektamaram
67be535030 Fix a typo (#1934) 2019-09-26 07:53:10 -07:00
Changming Sun
d669fc78c3
Revert "use MLAS for nuphar's pool ops (#1914)" (#1933)
This reverts commit 8c809dcc99.
2019-09-26 07:52:24 -07:00
jignparm
80ef629c02
Add CumSum and Round for Opset 11 (#1705)
* Add CumSum and Round for Opset 11

* add back 1 test

* Add back one broken test

* Add back more broken tests

* activate cumsum, round, dynamicquantizelinear tests

* removed python backend tests

* re-comment out dynamicquantizelinear_* tests. ReduceMin(11) not implemented yet

* re-comment out dynamicquantizelinear_* tests. ReduceMin(11) not implemented yet

* comment out cumsum_1d_reverse_exclusive

* Remove few types for csum. Keep only float, int32, int64

* Added friendly error message

* Added double type to pass ONNX tests.
2019-09-26 02:46:30 -07:00
Yulong Wang
e6ce384402
add dependency 'cub' as submodule (#1924) 2019-09-26 16:10:39 +08:00
KeDengMS
9ed85987e3
ReduceMax/Min performance improvements on CPU (#1925)
On behalf of Tracy
2019-09-26 00:31:28 -07:00
George Wu
c9b9e79e38
logging related fixes. (#1930) 2019-09-25 23:48:23 -07:00
Scott McKay
bd2d6af9ca
Filter out info from non-const initializers during shape inferencing (#1806)
* Don't return shape for non-const initializer in InferenceContextImpl::getInputType
Don't return initializer for non-const initializer in InferenceContextImpl::getInputData
Update graph_utils to support these scenarios
  - fix GetConstantInitializer to make sure a name is for an outer scope value before checking a parent graph, as local name could shadow an outer scope initializer.
2019-09-26 13:44:33 +10:00
Yang Chen
8c809dcc99
use MLAS for nuphar's pool ops (#1914)
* call MLAS's pooling function as an external call for Nuphar

  Note that at the moment Nuphar provider doesn't handle the cases below:

  - symbolic height/weight dimensions
  - Indices output of MaxPool
  - non-default dilations

* unify the pool interface for mti and mti_x86
2019-09-25 16:19:18 -07:00
Changming Sun
d46e023ee4
Remove toolset=14.11 for CUDA build (#1921) 2019-09-25 15:19:37 -07:00
Pranav Sharma
052339d9dc
Fix python packaging pipeline (#1922)
* Mention OrtCreateSessionFromArray in C API doc

* Fix python packaging pipeline broken by this commit id dc03ce.
2019-09-25 14:55:17 -07:00
Changming Sun
76f76251fa
Rewrite the softmax op (#1911) 2019-09-25 14:29:33 -07:00
Dmitri Smirnov
4d26f2ce86
Address two issues: (#1905)
* Address two issues:
  Thread-safety issue with LTSM/RNN running lambda in parallel
  Propagate lambda exceptions and report them when running in
  parallel.
2019-09-25 09:57:11 -07:00
shahasad
30c7c76552
fix the output size param's location in the csharp OrtRun interop call (#1903) 2019-09-25 09:34:25 -07:00
Pranav Sharma
baf75c44e7
Remove registration of Aten op. (#1908)
* Mention OrtCreateSessionFromArray in C API doc

* Remove Aten registration
2019-09-24 22:19:49 -07:00
Yang Chen
e769617f75 extract pooling attributes into a separate class (#1906)
Refactor cpu provider's pool ops by extracting pooling attributes
into a separate helper class PoolAttributes. With this change,
other providers such as Nuphar can re-use the same routines
for processing pooling attributes. This refactorying doesn't
have any functional changes.
2019-09-25 15:11:02 +10:00
KeDengMS
0317e825f1
onnxruntime_perf_test: Add -y support to control parallel executor #threads (#1902) 2019-09-24 20:11:29 -07:00
Hariharan Seshadri
dbff8272e7
Update ONNX to newer commit (#1907) 2019-09-24 19:25:34 -07:00
Tracy Sharpe
28a62f7728
MLAS: add U8S8 MatMul operation (#1895)
Implement the second round of changes for quantization inside MLAS. This adds a MatMul operation for U8xS8=S32 for x86/x64 processors.
2019-09-24 18:15:11 -07:00
Hariharan Seshadri
d3cb2a5572
Add ScatterElements CPU kernel (#1796)
* Support ScatterElements CPU kernel

* Nits and remove test exclusion

* PR feedback

* Fix bug

* Fix test

* Remove unused variable

* PR comments
2019-09-24 17:11:01 -07:00
yeohan
034aa80167 InferenceSession ctor with byte array in C# (#1883)
* add ctor overloads that accept model byte array

* doxygen. mark Init method as private.

* doxygen

* rename test method for clarity

* PR feedback - add two overloads that accept either model path or model byte array

* update native signature to align with latest codebase

* fix native call
2019-09-24 11:59:04 -07:00
Pranav Sharma
294db0f978
Implement Determinant operator. (#1880)
* Implement Det operator

* Det op

* Det op

* updated test cases to match onnx

* allow multiple batch dimensions
2019-09-24 11:49:09 -07:00
Changming Sun
aa92daecc5
Revert "A small improvement to the parallel_for when task count > thread count (#1839)" (#1901)
This reverts commit 166b1f86db.
2019-09-24 11:17:50 -07:00
jywu-msft
686bd36210
Remove ml_status.h, add StatusCode to pybind exception mappings (#1889)
* initial checkin.

* add onnxruntime status code to ort pybind exception mapping.

* address review feedback.
2019-09-24 11:13:14 -07:00
Louis-Philippe Bourret
77176e8678 Fix broken link to mnist model (#1896) 2019-09-24 10:27:18 -07:00
KeDengMS
3d73a69eda
Stablize Nuphar test (#1894)
Make sure only one model is running in onnx_test_runner
2019-09-23 22:32:07 -07:00
Hector Li
e288b871ea
CUDA Equal Greater Less can't support multi-directional broadcast
Fix issue #1591

Root Cause:
CUDA Equal Greater Less do not support multi-directional broadcast

Fix:
Add code to support the multi-directional broadcast
Also add tests to cover more cases.
2019-09-23 22:21:52 -07:00
Pranav Sharma
1a3ded6a7b
Add C API for free dim override, fix missing API mention in InferenceTest.cs, fix confusing print statement in perf_test. (#1884)
* Mention OrtCreateSessionFromArray in C API doc

* Add C API for free dim override

* Add C API for free dim override, fix missing API mention in InferenceTest.cs, fix confusing print statement in perf_test.

* Remaining C#files

* fix c# build

* Run the tests in blame mode. This option is helpful in isolating a problematic test causing the test host to crash.

* fix order
2019-09-23 17:58:20 -07:00
Hariharan Seshadri
49a4233bf3
Account for Constant node being versioned in opset-11 (#1875)
* Account for Constant node versioning in opset-11

* Update

* PR feedback

* Minor nit
2019-09-23 17:11:24 -07:00
avidiyal
ca89387817 Build OnnxRT with Openvino EP on Windows (#1865)
* Avoid variable length stack array variables for VC++ compatibility

Use dynamically allocated arrays or vectors instead.

* windows enabling

* openvino windows build

* Update build instructions

* resolve conflicts for PR

* remove debug messages from cmake

* PR fix for window support
2019-09-23 13:36:49 -07:00
Pranav Sharma
1f4190de3c
Disable Linux x86 builds as they're not required any more. (#1887)
* Mention OrtCreateSessionFromArray in C API doc

* Disable Linux x86 builds as they're not required any more.

* more ...
2019-09-23 00:26:23 -07:00
Hariharan Seshadri
aacfa2af65
Bump up ONNX to the latest commit (#1868)
* Initial commit

* Delete unnecessary files

* Update generated proto files

* Update server proto file

* Update submodule onnx

* Update OnnxMl.cs

* update OnnxMl.cs

* Update OnnxMl.cs

* Comment one test

* Update disabled test list

* Update backend tests

* Formatting fix

* Formatting

* Disable a test

* More tests updated

* commit id update

* Update to a newer commit

* More updates

* More test updates

* Update

* Update

* Updates

* Update
2019-09-20 18:15:16 -07:00
Du Li
9707b39a67 Duli/clip cuda (#1677)
Add Cuda Kernel for Clip operator

* Add Cuda Kernel for Clip operator
* Register Clip CUDA Kernel
2019-09-20 16:31:47 -07:00
Ryan Hill
5781222456
Ryanunderhill/api interface (#1855)
* Convert ABI to a versioned interface.
* Convert ORT_THROW_ON_ERROR to inline function to fix link errors.
2019-09-20 13:39:11 -07:00
Adrian Tsai
a7beed798e Implement L1 graph transformer for free dimension override (#1825)
* Implement FreeDimensionOverrideTransformer

* Add test

* Fix compiler warnings

* Update comment

* LOGS_DEFAULT

* Merge from master
2019-09-20 10:52:14 -07:00
Changming Sun
561f2c4a9a
Update pybind (#1876) 2019-09-19 17:44:33 -07:00
Dmitri Smirnov
6a9ae65f41
Expose GetOverridableInitializers via Python and C/C++ API (#1878)
Implement GetOverridableInitializers()
 Add unit test for initializer override.
Expose in Python and C/C++ API
2019-09-19 15:43:28 -07:00
suryasidd
429f05138a [OpenVINO-EP] Disabled div unit tests for GPU (#1853)
* Disabled Div unit test on GPU

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>

* Disabled div unit test for GPU in python backend tests

*Added more backends for OpenVINO
*Disabled div unit test in onnx_test_runner

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>

* Disabled div for GPU_FP16 in python backend tests

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>
2019-09-19 12:43:44 -07:00
Colin Versteeg
60e5eee52a Improve Session Capabilities in ORTServer (#1862)
* add unload and fixtures

* update to create logger

* clang-format
2019-09-19 09:04:12 -07:00
Scott McKay
b43254282f
Handle bad alloc exception in bfc arena (#1846)
* Handle std::bad_alloc when growing arena.
Allow more than one attempt at reducing the buffer if allocation fails. More memory may have become available so never trying to backpedal more than once means we potentially fail when a large enough buffer could have been allocated.
2019-09-19 17:56:39 +10:00
Pranav Sharma
a9ce941579
Refine threading control options and move inter op thread pool to session state. (#1841)
Description: Refine threading control options and move inter op thread pool to session state.
Added thread_utils.h/cc to centralize the decision around the thread pool size under various conditions.

Motivation and Context
Currently the thread pool size of the parallel executor is hardcoded to 32 for some reason. This PR makes the options to configure the thread pool sizes clearer.
2019-09-18 22:36:23 -07:00
Scott McKay
938b3627b8
Improve error message if node throws (#1847)
* Handle exception during node execution and include node type and name in error output.
2019-09-19 11:43:59 +10:00
KeDengMS
6792e00e1e
Revert accidental TVM change (#1874) 2019-09-18 17:50:16 -07:00
Hariharan Seshadri
55f5a52b23
Support opset-11 DepthToSpace CPU kernel (#1759)
* Initial commit

* Uncomment tests

* Updates

* Updates

* Disable CRD mode DepthToSpace for NGraph builds

* Disable test

* Update tests

* PR feedback

* Add unit test for CRD mode

* Reflect class variable in naming

* Add a test to NGRAPH disabled list

* Update main.cc

* Update main.cc
2019-09-18 17:17:28 -07:00
KeDengMS
80bda77203
Fix symbolic shape inference for faster_rcnn, mask_rcnn, yolov3 (#1867)
* Fix symbolic shape inference for faster_rcnn, mask_rcnn, yolov3

Force merge when --auto_merge, on symbolic dims which sympy cannot simplify
Add symbolic inference for Resize opset 10
Add support for step != 1 in Slice
Add support for computed dim in TopK
Bug fixes in passing symbolic dims from subgraph
Fix an outdate comment in Nuphar provider header
2019-09-18 14:18:32 -07:00
Hector Li
582a27f546
remove sudo from the cleanup step for Linux so that we don't need the sudo access for vstsagent build user
1. remove sudo from the cleanup step for Linux so that we don't need the sudo access for vstsagent build user
2. a minor fix in the install_ubuntu.sh to make the image smaller for openvino
2019-09-18 11:22:37 -07:00
shahasad
6e4e764146
upgraded CSharp test and sample projects to netcoreapp2.1 (#1869) 2019-09-17 21:35:04 -07:00
Hariharan Seshadri
c0d953a268
Support opset-11 Loop CPU kernel (#1816)
* Add support for opset 11 Loop

* Change test name to be more verbose

* Add a new kernel for Loop - 11
2019-09-17 14:17:25 -07:00
Changming Sun
dc03ce0278
New OP: CDist (#1808)
Add a new op for scikit-learn converter. It's for scikit's cdist function:
https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.cdist.html

Will add docs and shape-inference function later.
Will convert it to an ONNX function before pushing into ONNX.
2019-09-17 10:55:31 -07:00