Commit graph

12644 commits

Author SHA1 Message Date
Yufeng Li
4e74ffba91
Add word conv embedding custom op (#229)
* run bw and fw sequentially for GRU if using MKLDNN

* word conv embedding custom op

* run bw and fw sequentially for GRU if using MKLDNN

* Add word conv embedding custom op

* fix build break in linux

* fix macos build break

* resolve the comments

* refine the comments

* remove unnessary comment

* rename the function to calculate the length of eache word in a sequence

* add license info and fix typo
2018-12-21 10:48:51 -08:00
Ryan Hill
a37887cfa1
More intuitive ordering to the API functions (#233)
* More intuitive ordering to the API functions

* Rename TCHAR_T
2018-12-20 13:47:48 -08:00
Tang, Cheng
c453b48b71
update kernel memory type interface (#225)
* refactor the kernel memory type interface

* remove useless change

* fix comments in PR
2018-12-20 11:11:50 -08:00
jignparm
a43382e390
Jignparm/csharp gpu (#221)
* Minor updates to exception message

* update models folder to new location

* update copy to preservenewest

* reenable pretrained test

* added some debugging info for build

* update pretrained test, and tensor proto definition
2018-12-20 09:58:03 -08:00
ashku-ms
a19b624302
MaxUnpool Operator - CPU Implementation (#177)
* Initial commit Maxunpool operator

* fix gpu build failure

* remove op test from excluded list

* Change to ORT
2018-12-20 09:44:34 -08:00
jywu-msft
eb867be331
update mkldnn to 0.17.2 (#231) 2018-12-20 07:32:49 -08:00
KeDengMS
abce6041c1
Print hex value for float compare when test failed (#228)
This helps identify fp accuracy issues
2018-12-19 21:31:15 -08:00
Tang, Cheng
0dca080238 remove useless internal schema file (#226)
* placeholder for internal contrib ops

* remove useless internal file

* fix build break
2018-12-19 18:17:20 -08:00
Weixian
1d95c93987 [optimization] avoid vector copy and reduce allocation. (#203)
* few.

* fix.
2018-12-19 18:16:39 -08:00
Dmitri Smirnov
255ee39af6
Fix memory leak by improper handling of std::string typed (#227)
output buffer. Tensor returns a buffer to fully constructed
  std::strings and we should treat them as such.
2018-12-19 17:46:21 -08:00
Changming Sun
e97caa7787 change mkldnn so path (#210) 2018-12-19 14:45:57 -08:00
ashku-ms
84231ba003
support hyperbolic ops (#223)
* support hyperbolic fns

This commit adds support for sinh and cosh. Support for hyperbolic inverses is not available in Eigen yet.

* Make constructors explicit

* remove tests from exclude list

* Revert "remove tests from exclude list"

This reverts commit 2112a30b57d5a899991de4847e948e700a44e85d.

* remove test names from excluded list

* remove tanh since its already implemented
2018-12-19 14:23:09 -08:00
Edward Chen
e63572c1f3 Updated ArrayFeatureExtractor op to retain old output shape behavior. 2018-12-19 14:12:55 -08:00
Tang, Cheng
94f8f2b05c placeholder for internal contrib ops (#219) 2018-12-19 13:54:12 -08:00
KeDengMS
b9cc134576
Make sure tensor sizes are 64-byte aligned (#222)
This helps reduce misaligned access violation
2018-12-19 13:45:04 -08:00
Bowen Bao
4d010fb1ea Add null check before calling node.op_->Deprecated(). (#211) 2018-12-19 11:43:36 -08:00
Changming Sun
ac3a081ec5 Enable release build in Windows CI pipelines (#220) 2018-12-19 11:12:43 -08:00
Jesse Benson
0248390e4d Add support for checking for F16C support (https://en.wikipedia.org/wiki/F16C). (#212) 2018-12-19 09:25:25 -08:00
Scott McKay
ab350fa4c7
Re-structure the inference session initialization to (#217)
- apply any transforms to the main graph and any subgraphs first
  - call Graph::Resolve() once on the main graph, which will recurse into the subgraphs
    - previously it was called after the transform on each subgraph, which results in it traversing up to the main graph to call resolve, and that resolve call recursing into all subgraphs every time.

This avoids lots of unnecessary Graph::Resolve calls, and prevents subgraphs from being broken by SessionStateInitializer::InitializeAndSave calling graph_.CleanAllInitializedTensors() prior to final Graph::Resolve call. If a subgraph has optional inputs the backing initializers were removed by CleanAllInitializedTensors causing the next Resolve to incorrectly turn them into required inputs.
2018-12-19 18:56:35 +10:00
Scott McKay
334e329642
Increment/decrement UseCount for outputs so that we don't prematurely free a re-used output that is used for a dead output (output with zero users). (#214) 2018-12-19 15:34:37 +10:00
Pranav Sharma
39f47f86ee
Adding the include folder for the C Windows pkg. (#198)
* Adding the include folder for the C Windows pkg.

* Add import lib to the pkg

* Disable csharp pretrained tests temporarily
2018-12-18 21:04:42 -08:00
Scott McKay
beb326f00e
Simplify logic around creating relationship between nodes for implicit NodeArg usage. Allows using an initializer from multiple levels up to not fail. We would need to accumulate a list of initializers from all levels up otherwise, and doing so doesn't add any value. (#200)
Improve a comment to clarify when the parent graph NodeArg lookup kicks in.
2018-12-19 09:25:42 +10:00
Changming Sun
dc8b37f4c4
update onnx (#209)
* update onnx
2018-12-18 14:50:28 -08:00
Ke Zhang
37b74c771a
add gemmlowp as submodule. (#206) 2018-12-18 13:57:53 -08:00
Changming Sun
c0ec7d56c4
Clean up garbage files (#208) 2018-12-18 13:51:01 -08:00
jignparm
d4131a31d9
Disable csharp pretrained tests temporarily (#207) 2018-12-18 21:35:23 +00:00
edgchen1
0aa1b54aaa
Updated build.py to support relative CMake/CTest paths and did some minor cleanup. (#205) 2018-12-18 13:23:32 -08:00
Ryan Hill
773114a4f1
More C header naming changes (#202)
* More Ort prefix changes for consistency

* Fix C# methods

* More C# fixes
2018-12-18 11:39:46 -08:00
jignparm
0287019c1d C# Gpu : Minor updates to exception message (#201)
* Minor updates to exception message

* update models folder to new location

* update copy to preservenewest
2018-12-18 00:30:27 -08:00
edgchen1
71c56b6d7c Fix array feature extractor out of bounds access issue (#194)
* Fixed out of bounds access in ArrayFeatureExtractor.

* some cleanup

* Updated tensor_shape.h comments.

* Updated macro name.

* Added copy assignment, move assignment/ctor to TensorShape.

* Removed i64 literal suffix.

* Fixed test.

* Fixed type of x_num_dims.
2018-12-18 00:30:07 -08:00
Changming Sun
8c5d105557 fix typo 2018-12-17 18:33:36 -08:00
KeDengMS
b0f27ba0a7
Allow using MKLML header/libs when use_mklml is specified (#178)
Allow using MKLML header/libs when use_mklml is specified
2018-12-17 14:41:42 -08:00
Randy
d0544a8082
Rashuai/gathernd op (#170)
* define gather_nd op

* add test cases

* add test file

* refactor the code and doc

* add test cases

* fix win compile err

* fix win compile err

* adjust indent

* make constructor explicit

* add coment

* remove templates

* remove wrong def

* migrate macros

* fix an issue in shape inference
2018-12-17 13:47:20 -08:00
Ke Zhang
82d04412a0
Kezhan/partition logic update (#164)
* add check before fusing sub-graph in greedy partitioning

* update the partitioning logic to 1) not fuse sub-graph if inner nodes were assigned 2) avoid resolving graph after each provider capability checking and assignment.

* resolve conflicts
2018-12-17 13:30:29 -08:00
Ke Zhang
5a8acd7da8
directly updating dst arg with src arg when adding an edge. no need updating the type and shape info. (#195) 2018-12-17 13:30:16 -08:00
jignparm
5fd9024139
[WIP] Initial checking for CSharp GPU support (#176)
* Initial checking for CSharp GPU support

* Enabled C# for GPU build

* Update Onnxruntime to Ort

* Add runtime check for cuda dlls for windows

* Update pretrained model test, for models where name!=model.onnx

* lowered tolerance for float checks to pass new models

* ignore extra ._resnet34v2.onnx file in pretrained test
2018-12-17 21:18:48 +00:00
Changming Sun
b418adff42 Disable test data downloading by default (#193) 2018-12-17 11:56:29 -08:00
xkszltl
383315a7e0 Upgrade Eigen to 3.3.7 (#185) 2018-12-16 00:26:08 -08:00
Tongliang Liao
16b3a9fd63 onnxruntime_CUDA_HOME should only be used when available. 2018-12-16 00:25:12 -08:00
Du Li
6cd935e184
Duli/fusedconv (#183)
* Adding missing attribute *alpha* to FusedConv schema.
2018-12-14 16:00:18 -08:00
Du Li
7560538c94
Revert "Adding missing attribute *alpha* to FusedConv schema." (#182)
This reverts commit 3f4e62a49c.
2018-12-14 15:39:34 -08:00
Du Li
3f4e62a49c Adding missing attribute *alpha* to FusedConv schema. 2018-12-14 15:17:16 -08:00
Changming Sun
55a0527640 Fix a warning in gcc 7 2018-12-14 15:16:52 -08:00
Ryan Hill
11b369a864
Abbreviate ONNXRuntime as Ort in all of our public APIs (#175)
Applies to all public headers and macros, plus many internal ones. There are still some internal things with OnnxRuntime in the name, but this fixes all public functions & macros.
2018-12-14 14:54:23 -08:00
Tracy Sharpe
47551da994
Optimize Tanh/Sigmoid activations (#162)
* optimized tanh/sigmoid

* fix /W4 warnings from alternate build environment

* use MLAS for tanh/sigmoid

* fix my broken C++ templates

* add x86_64 files
2018-12-13 22:53:40 -08:00
Changming Sun
afd831ae9e Remove unnecessary const 2018-12-13 21:51:28 -08:00
Hector Li
d6abc38182 MurmurHash3 operator (#174)
* MurmurHash3 operator
2018-12-13 19:52:00 -08:00
Changming Sun
fb021b9002 delete azure-pipelines.yml 2018-12-13 18:38:59 -08:00
Weixian
2ffaa8a185 optimize unordered_map (#166) 2018-12-13 16:02:50 -08:00
Changming Sun
0aaaf4663d Update data download script (#171)
* Add cache dir

* update

* disable csharp

* update

* Revert "disable csharp"

This reverts commit e1a80f3272f7e7881f3081a91467756d2769fdf4.

* add output

* update
2018-12-13 14:46:59 -08:00