Commit graph

11997 commits

Author SHA1 Message Date
Dwayne Robinson
89df6abac7 Fix slice. 2020-03-27 02:25:58 -07:00
Dwayne Robinson
ccb840ac99 Fix slice. 2020-03-27 00:48:06 -07:00
Yang Chen
5278f73202
Fixed two issues in symbolic_shape_infer script (#3332)
* Fixed two issues in symbolic_shape_infer script

This change addressed #3293

There were two issues in the script:

* We need to handle a special case for infer_Reshape, where input_shape
is empty and target shape_value is [-1]. In such case, we need to
get sympy data for the output dim (or create one if it doesn't exist).

* We need to update computed dims for newly-created shape for Range op

* also call _update_computed_dims for _infer_Expand

addressed CR feedback

* added ai.onnx into opset list

* instead of manipulating _infer_Reshape, call _update_computed_dims
from _infer_Expand to update newly-computed dims
2020-03-26 23:27:37 -07:00
Xiang Zhang
810a10b230
Enable Onnxruntime Telemetry by Default for 1.3 (#3338) 2020-03-26 20:57:39 -07:00
ytaous
131c65d23d
Addressing PR comments (#3334)
* PR comments

* PR comments

* PR comments

* error out bad shape

Co-authored-by: Ethan Tao <ettao@microsoft.com>
2020-03-26 18:43:30 -07:00
Faith Xu
2e875f4e67
Delete outdated page (#3320) 2020-03-26 18:24:02 -07:00
Pranav Sharma
497e83eda5
Minor update to the issue template. Add a line to attach model where applicable. (#3339) 2020-03-26 14:28:27 -07:00
Xueyun Zhu
0a6ec0df56
Merge pull request #3285 from microsoft/xuzhu/merge_from_master
Merge from master to ort_training
2020-03-26 12:10:13 -07:00
Sherlock
d143b41b81
Expose frozen_weights in PyTorch Frontend (#3317) 2020-03-26 11:26:54 -07:00
Hector Li
0e81962e98
correct the cmake version to 3.13 for Arm build (#3333) 2020-03-26 10:20:18 -07:00
Dwayne Robinson
13dabd97b6 Slice 2020-03-25 21:48:14 -07:00
ytaous
66c7579c93
address PR comments (#3312)
* address PR comments

* PR comments

* PR comments

* disable logging

* typo

Co-authored-by: Ethan Tao <ettao@microsoft.com>
2020-03-25 19:35:12 -07:00
Changming Sun
5f6ec8ea6d Fix a bug in Maxpool v8 2020-03-25 16:27:43 -07:00
Scott McKay
dee4fc8b8a
Apply the same check for no_transpose from the Reduce* ops to ArgMin and ArgMax (#3315) 2020-03-26 07:41:16 +10:00
Sheil Kumar
51e95ea946
Make ort errors appear in winml exceptions (#3316)
Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
2020-03-25 12:20:40 -07:00
Xueyun Zhu
a031af8cfc fix windows build 2020-03-25 19:18:50 +00:00
Xueyun Zhu
9eb792a5b3 move env to .cc file 2020-03-25 16:57:05 +00:00
Wei-Sheng Chin
b38fc0d541
Add bias correction in Adam & Lamb for C++ frontend & python frontend (#3301) 2020-03-25 09:46:44 -07:00
Dwayne Robinson
0f6ace2c36 Fix comments with stale todo's. 2020-03-25 00:16:08 -07:00
Dwayne Robinson
55d32085f6 Update comments. 2020-03-24 23:37:37 -07:00
Dwayne Robinson
cc095fefbb Fix squeeze. 2020-03-24 23:24:58 -07:00
Xueyun Zhu
e9877850a4 fix python error 2020-03-25 01:59:37 +00:00
Scott McKay
4db01309cb
Use GEMM for SVMRegressor. (#3305) 2020-03-25 11:49:44 +10:00
Dwayne Robinson
5366273110 Fix GatherND and ScatterND. 2020-03-24 18:02:39 -07:00
Bowen Bao
6474801ceb
Update ort_trainer.py with lazy onnx export (#3244)
* Delay onnx export to avoid extra info

* handle cases where onnx model is provided at initialization

* address comments

* fix rebase error
2020-03-24 13:34:15 -07:00
Tianlei Wu
19edad132c
Move AzureML Bert notebook from onnx tutorial (#3302) 2020-03-24 12:31:02 -07:00
Weixing Zhang
fef7989866
Replacing CudaAsyncBuffer with TArray to improve perf (#3303)
* removing using CudaAsyncBuffer

* Keep CudaAsyncBuffer for these ops: non_max_suppression, cudnn_rnn_base, concat, split

* fix windows build error

* fix windows build error.

* fix build error

* fix windows build error

Co-authored-by: Weixing Zhang <wezhan@microsoft.com>
2020-03-24 12:13:27 -07:00
Li-Wen Chang
98c28060b0
Aggregated Send/Recv (#3232)
* Aggregated Send/Recv

* fix typos

* CR refine

* CR refine

* CR refine

* Add scalar check.

* typo

* reformat

* CR refine

* Forgot to swap order in the implementation after spec changed

* CR refine

* Cr refine

* add Send's input type checking
2020-03-24 10:20:11 -07:00
Dwayne Robinson
271126a86e Fix clip. 2020-03-24 01:04:08 -07:00
Dwayne Robinson
1df264f4b3 Fix Range. 2020-03-24 00:03:08 -07:00
Hariharan Seshadri
ef7b98f988
Support DisposableNamedOnnxValue inputs in c# Run() (#3175)
* Initial commit

* Update error message

* Update

* Updates to support holding onto onnxValue and pinnedmemoryBuffer

* Updates

* Minor updates

* Comment out a portion of the tests

* PR feedback

* Minor nit update

* Resolve comments

* PR feedback

* PR updates

* PR feedback
2020-03-23 18:36:12 -07:00
Faith Xu
fb5ab858d2
Update BUILD instructions (#3282)
Include guidance for building release packages per question from #3251
2020-03-23 18:35:22 -07:00
KeDengMS
d15c74e713
Implement pipeline event generator (#3206)
Implement pipeline event generator with OneFWOneBW schedule in timeline. Each stage of pipeline contains FW and BW of a subset of the model and are scheduled in one worker thread for each microbatch.
2020-03-23 17:32:54 -07:00
Xueyun Zhu
8f7bd51f7a fix pybind issue introduced by merge 2020-03-23 23:23:34 +00:00
Sheil Kumar
b72fe13941
Update WinML Projection to accept sequence of tensors (#3287)
* Enable sequence of tensor

* add tests

* small updates

* There should only be 2 elements returned

* CR feedback, and another 6->2 check update in the test.

* missing semicolon...

* Add explicit to constructor taking pointer paramter

Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
2020-03-23 15:55:20 -07:00
Tixxx
7f610caca0
Make gradient clipping configurable. (#3243)
* Make gradient clipping configurable.
add control flag to c++ and python frontend
2020-03-23 12:21:48 -07:00
Weixing Zhang
843ee346a8
Implement struct TArray and simplify code. (#3291)
* Implement operator[] for TArray and simplify the code.

* fix a build error.

* add a constructor with std::vector input

* fix build error

* update based on code review feedback

Co-authored-by: Weixing Zhang <wezhan@microsoft.com>
2020-03-23 10:51:54 -07:00
Tracy Sharpe
57468c651c
QLinearMatMul speed up (#3283)
The equivalent of PR#3196 but done for QLinearMatMul. Use MLAS to do a u8u8=s32 GEMM and then requantize this intermediate buffer.
2020-03-21 15:37:25 -07:00
Changming Sun
9c3b6d2e4b Fix warnings in nuphar 2020-03-20 21:49:46 -07:00
Xueyun Zhu
9dbc50c438 fix build break 2020-03-21 02:16:00 +00:00
Tianlei Wu
403f99cd77
Use yapf to format python (#3276)
Update ReformatSourcePython.bat to use YAPF to format python code, and add onnxruntime\test directory to be formatted.

Add onnxruntime\.style.yapf for configuration. The style is based on google, except max column width 120.

Format python scripts using ReformatSourcePython.bat.
2020-03-20 14:34:10 -07:00
Pranav Sharma
84015d9491
Fix post merge test. This doesn't get triggered as part of gated PR checks. (#3277) 2020-03-20 13:23:09 -07:00
Xueyun Zhu
ccc3535e72 resolve conflict 2020-03-20 20:20:35 +00:00
Dmitri Smirnov
b880c48c4c
Make reduction ops handle Scalar input (#3260)
Handle Scalar values for CPU and GPU
  Ifdef CUDA nd TVM as they require more changes.
2020-03-20 12:04:47 -07:00
ytaous
5c52332223
unittests comments (#3278)
Co-authored-by: Ethan Tao <ettao@microsoft.com>
2020-03-20 11:56:50 -07:00
Ye Wang
c5149e89d9
Wangye/shortgraindropper (#3273) (#3274)
* Featurizer Library update

* update Featurizer Library

* add short_grain_dropper_transformer

* resolve comments

* resolve comments

* resolve comments
2020-03-20 11:48:31 -07:00
Tianlei Wu
1d9be2baed
Add Notebook for Bert Model exported by Keras2onnx (#3271)
* Add notebook for bert squad model exported by python 1.4

* update bert performance test tool:
(1) set OpenMP environment variable before importing onnxruntime.
(2) launch new process for each test.

* Add notebook
Reduce combinations in perf test

* update readme

* fix quote

* Allow test multiple batch_size

* Add latency percentile

* Add warm up run
Reset logger for notebook

* refine default settings to test for cpu/gpu

* Add script to dump machine info

* Add notebooks for PyTorch SQuAD model GPU and CPU inference

* Update machineinfo.py: add license header; format by yapf

* Do not reset log handler. Skip adding handler if existed.

* Add comments about GPU result diff.
Filter rows of batch set to keep only one setting.

* update according to review feedback

* Download script from master branch

* Add notebook for bert model exported by keras2onnx

* format columns in result table

* re-run and update notebook
2020-03-20 11:37:25 -07:00
Yufeng Li
a69d859912
fix quantize_bias (#3270) 2020-03-20 11:36:47 -07:00
liqunfu
d521efd904
refactor frontend (#3235)
* refactor frontend

* remove training python files from inferencing build

* update according to reviewer's comments

* merge pybind_state.cc

* refactor pybind_state.cc

* code clean up

* missed a forward declaration in ort_pybind_state.cc

* passed pytest

* move training_session.py into a subfolder per reviewer's comment

* add copyright

Co-authored-by: liqun <liqun@OrtTrainingDev4.af05slrtruoetgaxwwjv5nsq5e.px.internal.cloudapp.net>
2020-03-19 20:59:41 -07:00
edgchen1
d9f628cb1d
Remove orttraining/tools/scripts/profile directory. (#3268) 2020-03-19 14:13:05 -07:00