Commit graph

1305 commits

Author SHA1 Message Date
Dmitri Smirnov
d1b1cdc5c4
Replace GSL with GSL-LITE submodule and fix up refs (#1920)
Remove gsl subodule and replace with a local copy of gsl-lite
  Refactor for onnxruntime::make_unique
  gsl::span size and index are now size_t
  Remove lambda auto argument type detection.
  Remove constexpr from fail_fast in gsl due to Linux not being happy.
  Comment out std::stream support due to MacOS std lib broken.
  Move make_unique into include/core/common so it is accessible for server builds.
  Relax requirements for onnxruntime/test/providers/cpu/ml/write_scores_test.cc
  due to x86 build.
  Add ONNXRUNTIME_ROOT to Server Lib includes so gsl is recognized
2019-10-01 12:43:29 -07:00
Scott McKay
983ed43f0a
Fix declarations for opset 9 versions of Gemm, MatMul and BatchNormalization (#1956)
* Fix declarations for new versions of Gemm, MatMul and BatchNormalization from opset 9.
2019-10-01 13:38:07 +10:00
shahasad
b355193841
Add Date-time stamp in NuGet package versioning for appropriate ordering of the packages (#1951) 2019-09-30 16:24:16 -07:00
Scott McKay
aef49d1f22
Update ops that had strides/dilations documentation updates to default to 1 (#1913)
* Update ops that had strides/dilations documentation updates to default to 1.
Code was already doing this.
Add tests to explicilty test.

* Update optimizers to add opset 11 support where possible
2019-10-01 08:11:15 +10:00
Jonny Shipton
df472cbfbd quantise: Don't error when initializer graph input is missing (#1872)
ONNX IR version 4 and above do not require graph initializers to have
corresponding graph inputs.
2019-09-30 21:57:00 +00:00
KeDengMS
e361174f78
Add nuphar python scripts to wheel, and notebook tutorial (#1952)
* Fixed a bug of missing tvm in python wheel
* Put Nuphar Python scripts into wheel
* Add note book tutorial
* Some improvements in symbolic shape inference for quantized models
2019-09-30 10:39:02 -07:00
Tracy Sharpe
4c995d3251 MLAS: add DGEMM support (#1953)
* rename existing kernels

* add dgemm support

* rename existing kernels

* add dgemm support

* synchronize with amd64

* dgemm

* remove test code

* remove more test code

* fix file extension
2019-09-30 10:04:59 -07:00
baowenlei
9fc5598b7e
update nuphar ci llvm version and uncomment unit tests (#1954) 2019-09-29 23:35:14 -07:00
baowenlei
611dd3ea0c update ort-tvm version (#1945)
* update ort-tvm version

* update tvm patch
2019-09-27 22:11:14 -07:00
Changming Sun
e4b8494eaa
Add a test case for ml_commmon.h (#1947) 2019-09-27 20:14:27 -07:00
Emma Ning
02c122d6e4 Add OLive in perf tuning section (#1772)
* Add OLive in perf tuning section

* Add OLive to perf tuning section

* Update README.md

* Update ONNX_Runtime_Perf_Tuning.md
2019-09-27 13:10:40 -07:00
ybrnathan
8df3e87b70
OpSet 11 Update for Neg Axis (9 Ops) (#1893)
* OpSet 11 Update for Neg Axis:
scan, flatten, compress, concat, gather, slice, split, squeeze, unsqueeze

* fix flatten op test

* Fix flatten and Squeeze

* fix test cases

* add gather neg indices to both cpu and cuda

* Exclude  nGraph from neg axis test

* re-enable test cases

* Fix test cases
2019-09-27 13:04:08 -07:00
Hariharan Seshadri
d370aad80c
Register CPU kernel for NMS (#1941) 2019-09-27 10:25:01 -07:00
Changming Sun
174c142eff
Clean up code (#1939) 2019-09-27 10:17:46 -07:00
KeDengMS
1649374a5c
Some bug fixes and support for Gather/ScatterElements (#1940)
Fix a bug in Concat when only part of input has sympy_data
Fix a bug in ConstantOfShape when shape is scalar
Add support for GatherElements and ScatterElements
2019-09-26 21:30:29 -07:00
suryasidd
ceaaff0f81 [OpenVINO-EP] Enabling VAD-F in OpenVINO Execution Provider (#1885)
* Added support for Hetero plugin

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

* Fixed spelling error in cmake for hetero plugin

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

* Added listener to print messages from the plugin

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

* Updated Documentation for VAD-F enablement

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

* Added VAD-F option for FPGA

*Disabled unit tests and backed tests because FPGA only accepts NCHW models

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

* Added comment for why tests need to be disabled on VAD-F

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>
2019-09-26 18:32:16 -07:00
Yang Chen
650fb8754b
use MLAS for nuphar's pool ops (#1937)
* 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-26 16:29:30 -07:00
shahasad
c3ffd1f47d
added continue on error for the linux cleanup step, to mitigate the build failure. root cause unknown (#1936) 2019-09-26 15:57:24 -07:00
Xavier Dupré
2ecac41614 update python examples (#1935) 2019-09-26 11:25:59 -07:00
Yang Chen
a5a57a49c4 Changed ConvBase into a class member variable (#1927)
* Changed ConvBase into a class member variable

Currently, all Conv-family classes inherit from both ConvBase
and OpKernel. Since what ConvBase provides is all about
processing convolution attributes, it's more natural to move it as
a class member variable.

This change renamed ConvBase to ConvAttributes and moved
it into a separate file conv_attributes by its own. Instead of
inheriting from ConvBase, now each Conv-related class has a
class member variable that is of type ConvAttributes.

Hence, we removed unecessary multiple inheritance and increase
composibility. More importantly, the change made it possible for
some other providers such as Nuphar be able to re-use the functionalities
provided by ConvAttributes class.

Note that we also made similar changes to ConvTransposeBase.

* fixed cuda build issue
2019-09-26 11:07:06 -07:00
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