Граф коммитов

3338 Коммитов

Автор SHA1 Сообщение Дата
liqunfu e939648002
disable fp16 test for poolWithSequenceAxis (#3810) 2020-03-31 08:55:14 -07:00
liqun fu a2055f6e3d fix a typo 2020-03-27 14:40:05 -07:00
liqun fu 280ec145e0 support Pooling ops with Sequence axis 2020-03-25 11:20:15 -07:00
Yang Chen cfe8f6ca0a Added a new API to load models from memory
* added a new C api CNTK_LoadModel_FromArray that loads a model
  from memory

* also enabled loading ONNX models from buffer
2019-07-18 00:57:45 -07:00
liqfu 82b7a392fb merge release 2.7 2019-04-19 11:28:14 -07:00
Thiago Crepaldi 6b72436abd Adds CNTK libs folder to LD_LIBRARY_PATH at CNTK init routine on Python 2019-04-09 12:54:42 -07:00
liqfu 4765f69c7a support onnx export of 2GB models 2019-03-14 09:16:23 -07:00
liqfu a5fb3d6f8d add more onnx rnn model tests, enable optimizedRNN op test 2019-02-19 12:48:41 -08:00
Bowen Bao 00b80377fe Update onnx submodule, support ConstantOfShape & OneHot
* Support SequenceIs[First,Last] with ConstantOfShape
* Update bypass load test in verify\_one\_input & add test for one hot
op
* Update export for one hot op. Migrate from exporting
onnx.ml.OneHotEncoder to onnx.OneHot.

Op fixes
* Fix topk onnx\_op\_test
* Support MVN export using ONNX function
* Fix LayerNormalization
* Skip tests for sequence slice float16: not supported in cntk
* Support gather export & import with float16
    - Fix cntk gather issue with float16 inputs.
    - Support exporting constant float16 tensor.
    - Support importing int32 indices input for gather.
* Enable more passed op tests
2019-02-15 15:12:10 -08:00
liqfu 2ccdff45e3 enable onnx rnn test, name input with proper name 2019-02-03 21:18:50 -08:00
liqfu 6b2323c4e4 onnx support of sequential convolution 2019-01-28 14:48:13 -08:00
Peyman Manikashani 4ef44170ab Adding sequence models to CI and skipping failing ones 2019-01-24 15:01:14 -08:00
liqfu fe939aa3cb support ONNX scan(9) 2019-01-08 12:16:32 -08:00
Mickaël Schoentgen b732aeb0fd Fix several DeprecationWarning: invalid escape sequence
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
2019-01-05 22:36:45 +01:00
Bowen Bao e2d79d7da0 Submodule onnxruntime, and remove previous drop.
* A few patches are required to build cntk_uwp.
* Use proto from onnxruntime/protobuf instead of from onnx.
* TODO: Some issues with onnx_op_test RNN and OptimizedRNNStack from shape inference.
2019-01-02 17:09:08 -08:00
Bowen Bao f1781446d1 Support CUDA 10
* Move to support CUDA 10, cudnn 7.3, cub 1.8.
* Fixed a bug related to "pointer to pin pointer is disallowed" #3063,
which is exposed in newer version vctools.
* Added workaround for a potential vs2017 15.9 bug with cntk Debug
version.
2018-12-12 16:10:31 -08:00
liqfu de15bda40d passed prod models and unfold test. handle delay op. 2018-12-11 17:49:23 -08:00
Spandan Tiwari 22e869ec42 Add ONNX support for zeros_like, ones_like, and eye_like. 2018-12-05 13:51:43 -08:00
Peyman Manikashani 5fc6c2a26a sequence_isfirst_islast test fix for python 2.7 2018-11-30 11:22:25 -08:00
Peyman Manikashani 75b0141b48 Adding support for exporting CNTK's Sequence::IsFirst and Sequence::IsLast nodes 2018-11-29 15:57:43 -08:00
Bowen Bao d1d113322c ConvTranspose asymmetric padding
* Temporarily reverse the extra padding location in case of
SAME_UPPER vs SAME_LOWER for convTranspose to match with onnxruntime.
* In case of importing asymmetric padding convTranspose, use
symmetric pads by alter the output_shape and pads, and attach a slice
node afterwards to enable cudnn.
* Fix a bug in slice/squeeze attribute axes export.
2018-11-27 09:33:15 -08:00
Vadim Mazalov 8c156834f6 Merge branch 'vadimma/binmlf' 2018-11-24 09:12:41 +00:00
liqfu 0c1d283623 update latest onnx and onnxruntime, fix shape inference 2018-11-22 08:56:07 -08:00
Vadim Mazalov 7ef57defd3 Add dim label to bin mlf reader 2018-11-10 21:32:28 -08:00
liqfu ab4bee2b7a Support RNN ops in a Scan loop
Update with latest ONNX
Update with latest ONNX graph IR
Support sequence ops - Sequence::Gather, Sequence::PastValue, Sequence::FutureValue, etc.
2018-11-07 18:36:20 -08:00
Vadim Mazalov b51e8c243a Expose binmlf in python 2018-11-05 16:32:59 -08:00
Bowen Bao 3f46cf0269 Updates on several ONNX exports.
* ConvTranspose outputShape: now pads values are always exported even
when outputShape is given. The reason is that CNTK and ONNX have
different padding specs.
* Flatten: in CNTK flatten does not affect batch axis, this should be
preserved in ONNX.
2018-11-02 17:18:07 -07:00
Bowen Bao a19ce9ef7c Resolve forward_backward docstring Sphinx error. 2018-11-02 10:43:24 -07:00
Bowen Bao 29818ffd05 Merge branch 'bowbao/onnxruntime_ci_stage2' 2018-11-01 06:58:24 +00:00
Bowen Bao 0cd2faec1e Merge branch 'pull/3476' 2018-10-31 23:43:42 +00:00
Bowen Bao fca139674c Add onnx_test_runner verification in CI.
* onnx_test_runner.exe will be called on win64 GPU tests to verify if
the output data produced by CNTK in onnx_op_test and
onnx_model_test(cntk_model_test) matches in onnxruntime.
2018-10-31 15:46:56 -07:00
delzac a0d6f14aa7 Fixed type and error in identifying the deserialiser 2018-10-31 21:05:27 +08:00
liqfu 3cef1fd51e fix python 27 onnx test 2018-10-28 10:22:07 -07:00
delzac 77dad35f97 Added better documentation to forward_backward 2018-10-25 19:17:25 +08:00
liqfu e940605f6b Support ONNX Scan op 2018-10-19 21:36:21 -07:00
Bowen Bao 0ffdcf7f1d Overhaul node name export & other fixes
* Overhaul node name export. Create static class UniqueNodeNameStorage
to manage ONNX node name generation with maintained one-to-one mapping
between CNTK Uid, while preserving the original CNTK node name by best
efforts (#3358).
* Update onnx_op_test to test the preservation of original CNTK node
names in exported/imported models.
* Update onnx_test_helper to support proper linking of test data and
onnx model input/output with unique names.
* Update onnx_test_helper to generate .bat file to run exported models
in further onnxruntime verification.
* Fix Sum import to support arbitrary number of inputs. Sum
implementation in CNTK backend is loop of Plus, which takes care of
potential broadcast issues.
2018-10-17 18:36:48 -07:00
Bowen Bao bf37aadc53 Fix pad offset computation for pooling
* Compute keyInterior according to the updated algorithm for computing
cell offset key.
* Update unittest of avg_pooling/max_pooling for cases that requires
auto_padding = True. Previous test cases cover only those that do not
need padding.
2018-10-01 17:21:30 -07:00
Bowen Bao fcdeef63d0 Support crop_manual export & import. 2018-09-29 13:46:17 -07:00
Bowen Bao a36fae88bb Support logPlus(log_add_exp) export to ONNX
* ONNX supports similar op ReduceLogSumExp. Conversions are added when
exporting.
* Refactored CNTKToONNXHelper::BroadcastInputsIfNeeded to support more
generalized cases.
2018-09-28 15:59:55 -07:00
Ke Deng 9165fd06f8 Merge branch 'kedeng/fixCrash' 2018-09-25 00:26:34 +00:00
liqfu 58f810fed0 update with ONNX1.3 and latest onnxruntime 2018-09-22 09:53:27 -07:00
KeDengMS 1489de8de8 Fix a crash in transpose_times simplification to element times 2018-09-21 22:33:41 -07:00
Bowen Bao 93cc680d56 Update reshapeing_test to accomodate python 2.7 2018-09-21 10:24:57 -07:00
Bowen Bao da6b0bc71f GatherNode backward: add check for no dynamic axis
Previously, to resolve issue of gather producing incorrect gradient
values, validity mask check was added to ensure we don't count non-valid
cells as 0.
However, this check is needed only for input that has dynamic axis, i.e.
inputs that have MBLayout.
2018-09-20 14:54:39 -07:00
Bowen Bao 0a3eb3b813 Update onnx_model_test with tests on cntk pretrained models 2018-09-19 11:27:55 -07:00
liqfu 82d350d0ac bump up version number 2018-09-13 15:52:47 -07:00
Bowen Bao deda94b67b Support pooling(cpu) where kernel center is on pads.
- Previous implementation has the assumption that (0 <= dk < width).
This assumption doesn't stand when lo >(kernel - 1) / 2.
    The updated calculation supports arbitrary lo & hi non-negative
    integer value. The new calculation has dk in range (0, width + hi +
    lo].
- Enables onnx backend test {averagepool_2d_pads, maxpool_2d_pads} to
pass.
2018-09-12 21:37:21 -07:00
Sergii Dymchenko 61d7dab912 Support more than 2 inputs for ONNX Min/Max import. 2018-09-12 15:12:14 -07:00
Bowen Bao 61572e89f8 Update onnx_model_test skip list 2018-09-11 08:51:45 -07:00
Bowen Bao 0754b38e34 update onnx_model_test with tests from onnx backend test 2018-09-09 13:53:26 -07:00