mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Add make_unique implementation for use with C++11. (#1793)
* Mention OrtCreateSessionFromArray in C API doc * Add make_unique implementation for use with C++11 * Add cgmanifest and TPN files as well * Add annotation to cgmanifest to identify the component that uses the dependency
This commit is contained in:
parent
98dbdb1e0b
commit
0b609d3e68
3 changed files with 757 additions and 390 deletions
|
|
@ -3532,3 +3532,211 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
----
|
||||
|
||||
abseil-cpp
|
||||
https://github.com/abseil/abseil-cpp
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
https://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
|
|
|
|||
791
cgmanifest.json
791
cgmanifest.json
|
|
@ -1,414 +1,425 @@
|
|||
{
|
||||
"Registrations":[
|
||||
"Registrations": [
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"e7e1482087f58913b80a20b04d5c58d9d6d90155",
|
||||
"repositoryUrl":"https://github.com/HowardHinnant/date.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"42c53187a56c12dc5518cc25e778e5e3e7dbaf72",
|
||||
"repositoryUrl":"https://github.com/google/gemmlowp.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"9bda90b7e5e08c4c37a832d0cea218aed6af6470",
|
||||
"repositoryUrl":"https://github.com/google/googletest.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"cee3125af7208258d024a75e24f73977eddaec5b",
|
||||
"repositoryUrl":"https://github.com/Microsoft/GSL.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"8f50e4463c2c7ba9b3f580c61ca21abc91197b7c",
|
||||
"repositoryUrl":"https://github.com/google/nsync.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "7d90796473295ca3cdf976ed772215c5980ad3e0",
|
||||
"repositoryUrl": "https://github.com/onnx/onnx.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"e776aa0275e293707b6a0901e0e8d8a8a3679508",
|
||||
"repositoryUrl":"https://github.com/google/benchmark.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"a1041190c8b8ff0cd9e2f0752248ad5e3789ea0c",
|
||||
"repositoryUrl":"https://github.com/pybind/pybind11.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"6a00cbc4a9b8e68b71caf7f774b3f9c753ae84d5",
|
||||
"repositoryUrl":"https://github.com/wjakob/clang-cindex-python3.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"5b7683f49e1e9223cf9927b24f6fd3d6bd82e3f8",
|
||||
"repositoryUrl":"https://github.com/google/benchmark.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"c3bb0ee2a63279a803aaad956b9b26d74bf9e6e2",
|
||||
"repositoryUrl":"https://github.com/google/googletest.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"fd4801612817f96e890058656834deb925fc064a",
|
||||
"repositoryUrl":"https://github.com/microsoft/onnxruntime-tvm.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"e4a4c02764d37c9c3db0d64c4996651a3ef9513c",
|
||||
"repositoryUrl":"https://github.com/dmlc/HalideIR.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"bee4d1dd8dc1ee4a1fd8fa6a96476c2f8b7492a3",
|
||||
"repositoryUrl":"https://github.com/dmlc/dlpack.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"4d49691f1a9d944c3b0aa5e63f1db3cad1f941f8",
|
||||
"repositoryUrl":"https://github.com/dmlc/dmlc-core.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"1456fe2fac0cd074bbbb8630ba003a7c325d015b",
|
||||
"repositoryUrl":"https://github.com/eigenteam/eigen-git-mirror.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"e02b83cc5e3c4d30f93dba945162e3aa58d962d6",
|
||||
"repositoryUrl":"https://github.com/jemalloc/jemalloc.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"7de7e5d02bf687f971e7668963649728356e0c20",
|
||||
"repositoryUrl":"https://github.com/intel/mkl-dnn.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"d860915b0198ddb96f93e9e97a789af156544dc6",
|
||||
"repositoryUrl":"https://github.com/tensorflow/tensorflow.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"eddf9023206dc40974c26f589ee2ad63a4227a1e",
|
||||
"repositoryUrl":"https://github.com/glennrp/libpng.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"217f52fb121ef92491e5d5f71394b07ce4ead1d0",
|
||||
"repositoryUrl":"https://github.com/KjellKod/g3log.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"50893291621658f355bc5b4d450a8d06a563053d",
|
||||
"repositoryUrl":"https://github.com/madler/zlib.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"d264a2603493fecda607c1d1cda87fedba77d36b",
|
||||
"repositoryUrl":"https://github.com/Microsoft/CNTK.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"971e2e89d08deeae0139d3011d15646fdac13c92",
|
||||
"repositoryUrl":"https://github.com/numpy/numpy.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"90537289a04ef5d572496240e2ac3a881be518d2",
|
||||
"repositoryUrl":"https://github.com/pytorch/pytorch.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"7389dbac82d362f296dc2746f10e43ffa1615660",
|
||||
"repositoryUrl":"https://github.com/scikit-learn/scikit-learn.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"30cad267151fa8f1b17da8c1ef0571da6da9a8f1",
|
||||
"repositoryUrl":"https://github.com/google/re2.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"48cb18e5c419ddd23d9badcfe4e9df7bde1979b2",
|
||||
"repositoryUrl":"https://github.com/protocolbuffers/protobuf.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"eeebdab16155d34ff8f5f42137da7df4d1c7eab0",
|
||||
"repositoryUrl":"https://github.com/BVLC/caffe.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"Type":"other",
|
||||
"Other":{
|
||||
"Name":"LLVM",
|
||||
"Version":"6.0.1",
|
||||
"DownloadUrl":"https://releases.llvm.org/6.0.1/llvm-6.0.1.src.tar.xz"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"Type":"other",
|
||||
"Other":{
|
||||
"Name":"FreeBSD GetOpt",
|
||||
"Version":"12.0.0",
|
||||
"DownloadUrl":"https://svnweb.freebsd.org/base/release/12.0.0/lib/libc/stdlib/getopt.c?revision=341707&view=co"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"c8ebe0da0776c1a6347139b074a901bd57fae499",
|
||||
"repositoryUrl":"https://github.com/onnx/onnx-tensorrt.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"950fbf183274ab7d2092f99bab6c809ae87c7054",
|
||||
"repositoryUrl":"https://github.com/NervanaSystems/ngraph.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"90cb0f8d60b07e96ca7f0ba92fa50884010599ad",
|
||||
"repositoryUrl":"https://github.com/JDAI-CV/DNNLibrary.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"9e7e8cbe9f675123dd41b7c62868acad39188cae",
|
||||
"repositoryUrl":"https://github.com/google/flatbuffers.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"git",
|
||||
"git":{
|
||||
"commitHash":"8d7a107d68c127f3f494bb7807b796c8c5a97a82",
|
||||
"repositoryUrl":"https://github.com/google/glog.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"Type":"other",
|
||||
"Other":{
|
||||
"Name":"Boost",
|
||||
"Version":"1.69.0",
|
||||
"DownloadUrl":"http://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.bz2"
|
||||
"commitHash": "e7e1482087f58913b80a20b04d5c58d9d6d90155",
|
||||
"repositoryUrl": "https://github.com/HowardHinnant/date.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"git": {
|
||||
"commitHash": "02a2a458ac15912d7d87cc1171e811b0c5219ece",
|
||||
"repositoryUrl": "https://github.com/grpc/grpc"
|
||||
},
|
||||
"type": "git"
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "42c53187a56c12dc5518cc25e778e5e3e7dbaf72",
|
||||
"repositoryUrl": "https://github.com/google/gemmlowp.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"git": {
|
||||
"commitHash": "cc4bed2d74f7c8717e31f9579214ab52a9c9c610",
|
||||
"repositoryUrl": "https://github.com/abseil/abseil-cpp"
|
||||
},
|
||||
"type": "git"
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "9bda90b7e5e08c4c37a832d0cea218aed6af6470",
|
||||
"repositoryUrl": "https://github.com/google/googletest.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"git": {
|
||||
"commitHash": "b29b21a81b32ec273f118f589f46d56ad3332420",
|
||||
"repositoryUrl": "https://github.com/google/boringssl.git"
|
||||
},
|
||||
"type": "git"
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "cee3125af7208258d024a75e24f73977eddaec5b",
|
||||
"repositoryUrl": "https://github.com/Microsoft/GSL.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"git": {
|
||||
"commitHash": "3be1924221e1326df520f8498d704a5c4c8d0cce",
|
||||
"repositoryUrl": "https://github.com/c-ares/c-ares.git"
|
||||
},
|
||||
"type": "git"
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "8f50e4463c2c7ba9b3f580c61ca21abc91197b7c",
|
||||
"repositoryUrl": "https://github.com/google/nsync.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"git": {
|
||||
"commitHash": "6599cac0965be8e5a835ab7a5684bbef033d5ad0",
|
||||
"repositoryUrl": "https://github.com/llvm-mirror/libcxx.git"
|
||||
},
|
||||
"type": "git"
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "7d90796473295ca3cdf976ed772215c5980ad3e0",
|
||||
"repositoryUrl": "https://github.com/onnx/onnx.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"git": {
|
||||
"commitHash": "9245d481eb3e890f708ff2d7dadf2a10c04748ba",
|
||||
"repositoryUrl": "https://github.com/llvm-mirror/libcxxabi.git"
|
||||
},
|
||||
"type": "git"
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "e776aa0275e293707b6a0901e0e8d8a8a3679508",
|
||||
"repositoryUrl": "https://github.com/google/benchmark.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"git": {
|
||||
"commitHash": "9ce4a77f61c134bbed28bfd5be5cd7dc0e80f5e3",
|
||||
"repositoryUrl": "https://github.com/google/upb.git"
|
||||
},
|
||||
"type": "git"
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "a1041190c8b8ff0cd9e2f0752248ad5e3789ea0c",
|
||||
"repositoryUrl": "https://github.com/pybind/pybind11.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component":{
|
||||
"type":"other",
|
||||
"Other":{
|
||||
"Name":"Go",
|
||||
"Version":"1.12.6",
|
||||
"DownloadUrl":"https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "6a00cbc4a9b8e68b71caf7f774b3f9c753ae84d5",
|
||||
"repositoryUrl": "https://github.com/wjakob/clang-cindex-python3.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "5b7683f49e1e9223cf9927b24f6fd3d6bd82e3f8",
|
||||
"repositoryUrl": "https://github.com/google/benchmark.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "c3bb0ee2a63279a803aaad956b9b26d74bf9e6e2",
|
||||
"repositoryUrl": "https://github.com/google/googletest.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "fd4801612817f96e890058656834deb925fc064a",
|
||||
"repositoryUrl": "https://github.com/microsoft/onnxruntime-tvm.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "e4a4c02764d37c9c3db0d64c4996651a3ef9513c",
|
||||
"repositoryUrl": "https://github.com/dmlc/HalideIR.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "bee4d1dd8dc1ee4a1fd8fa6a96476c2f8b7492a3",
|
||||
"repositoryUrl": "https://github.com/dmlc/dlpack.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "4d49691f1a9d944c3b0aa5e63f1db3cad1f941f8",
|
||||
"repositoryUrl": "https://github.com/dmlc/dmlc-core.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "1456fe2fac0cd074bbbb8630ba003a7c325d015b",
|
||||
"repositoryUrl": "https://github.com/eigenteam/eigen-git-mirror.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "e02b83cc5e3c4d30f93dba945162e3aa58d962d6",
|
||||
"repositoryUrl": "https://github.com/jemalloc/jemalloc.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "7de7e5d02bf687f971e7668963649728356e0c20",
|
||||
"repositoryUrl": "https://github.com/intel/mkl-dnn.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "d860915b0198ddb96f93e9e97a789af156544dc6",
|
||||
"repositoryUrl": "https://github.com/tensorflow/tensorflow.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "eddf9023206dc40974c26f589ee2ad63a4227a1e",
|
||||
"repositoryUrl": "https://github.com/glennrp/libpng.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "217f52fb121ef92491e5d5f71394b07ce4ead1d0",
|
||||
"repositoryUrl": "https://github.com/KjellKod/g3log.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "50893291621658f355bc5b4d450a8d06a563053d",
|
||||
"repositoryUrl": "https://github.com/madler/zlib.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "d264a2603493fecda607c1d1cda87fedba77d36b",
|
||||
"repositoryUrl": "https://github.com/Microsoft/CNTK.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "971e2e89d08deeae0139d3011d15646fdac13c92",
|
||||
"repositoryUrl": "https://github.com/numpy/numpy.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "90537289a04ef5d572496240e2ac3a881be518d2",
|
||||
"repositoryUrl": "https://github.com/pytorch/pytorch.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "7389dbac82d362f296dc2746f10e43ffa1615660",
|
||||
"repositoryUrl": "https://github.com/scikit-learn/scikit-learn.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "30cad267151fa8f1b17da8c1ef0571da6da9a8f1",
|
||||
"repositoryUrl": "https://github.com/google/re2.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "48cb18e5c419ddd23d9badcfe4e9df7bde1979b2",
|
||||
"repositoryUrl": "https://github.com/protocolbuffers/protobuf.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "eeebdab16155d34ff8f5f42137da7df4d1c7eab0",
|
||||
"repositoryUrl": "https://github.com/BVLC/caffe.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"Type": "other",
|
||||
"Other": {
|
||||
"Name": "LLVM",
|
||||
"Version": "6.0.1",
|
||||
"DownloadUrl": "https://releases.llvm.org/6.0.1/llvm-6.0.1.src.tar.xz"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"Type": "other",
|
||||
"Other": {
|
||||
"Name": "FreeBSD GetOpt",
|
||||
"Version": "12.0.0",
|
||||
"DownloadUrl": "https://svnweb.freebsd.org/base/release/12.0.0/lib/libc/stdlib/getopt.c?revision=341707&view=co"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "c8ebe0da0776c1a6347139b074a901bd57fae499",
|
||||
"repositoryUrl": "https://github.com/onnx/onnx-tensorrt.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "950fbf183274ab7d2092f99bab6c809ae87c7054",
|
||||
"repositoryUrl": "https://github.com/NervanaSystems/ngraph.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "90cb0f8d60b07e96ca7f0ba92fa50884010599ad",
|
||||
"repositoryUrl": "https://github.com/JDAI-CV/DNNLibrary.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "9e7e8cbe9f675123dd41b7c62868acad39188cae",
|
||||
"repositoryUrl": "https://github.com/google/flatbuffers.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "8d7a107d68c127f3f494bb7807b796c8c5a97a82",
|
||||
"repositoryUrl": "https://github.com/google/glog.git"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"Type": "other",
|
||||
"Other": {
|
||||
"Name": "Boost",
|
||||
"Version": "1.69.0",
|
||||
"DownloadUrl": "http://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.bz2"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"git": {
|
||||
"commitHash": "02a2a458ac15912d7d87cc1171e811b0c5219ece",
|
||||
"repositoryUrl": "https://github.com/grpc/grpc"
|
||||
},
|
||||
"type": "git"
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"git": {
|
||||
"commitHash": "b29b21a81b32ec273f118f589f46d56ad3332420",
|
||||
"repositoryUrl": "https://github.com/google/boringssl.git"
|
||||
},
|
||||
"type": "git"
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"git": {
|
||||
"commitHash": "3be1924221e1326df520f8498d704a5c4c8d0cce",
|
||||
"repositoryUrl": "https://github.com/c-ares/c-ares.git"
|
||||
},
|
||||
"type": "git"
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"git": {
|
||||
"commitHash": "6599cac0965be8e5a835ab7a5684bbef033d5ad0",
|
||||
"repositoryUrl": "https://github.com/llvm-mirror/libcxx.git"
|
||||
},
|
||||
"type": "git"
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"git": {
|
||||
"commitHash": "9245d481eb3e890f708ff2d7dadf2a10c04748ba",
|
||||
"repositoryUrl": "https://github.com/llvm-mirror/libcxxabi.git"
|
||||
},
|
||||
"type": "git"
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"git": {
|
||||
"commitHash": "9ce4a77f61c134bbed28bfd5be5cd7dc0e80f5e3",
|
||||
"repositoryUrl": "https://github.com/google/upb.git"
|
||||
},
|
||||
"type": "git"
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "other",
|
||||
"Other": {
|
||||
"Name": "Go",
|
||||
"Version": "1.12.6",
|
||||
"DownloadUrl": "https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"git": {
|
||||
"commitHash": "cc4bed2d74f7c8717e31f9579214ab52a9c9c610",
|
||||
"repositoryUrl": "https://github.com/abseil/abseil-cpp"
|
||||
},
|
||||
"type": "git",
|
||||
"comments": "used by onnxruntime server"
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"commitHash": "256be563447a315f2a7993ec669460ba475fa86a",
|
||||
"repositoryUrl": "https://github.com/abseil/abseil-cpp"
|
||||
},
|
||||
"comments": "used by onnxruntime"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Version":1
|
||||
}
|
||||
"Version": 1
|
||||
}
|
||||
148
onnxruntime/core/common/make_unique.h
Normal file
148
onnxruntime/core/common/make_unique.h
Normal file
|
|
@ -0,0 +1,148 @@
|
|||
// Copyright 2017 The Abseil Authors.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// https://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
// -----------------------------------------------------------------------------
|
||||
// File: make_unique.h
|
||||
// -----------------------------------------------------------------------------
|
||||
//
|
||||
// This header file contains utility functions for managing the creation and
|
||||
// conversion of smart pointers. This file is an extension to the C++
|
||||
// standard <memory> library header file.
|
||||
/* Modifications Copyright (c) Microsoft. */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
#include <new>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace onnxruntime {
|
||||
|
||||
template <typename T>
|
||||
using remove_extent_t = typename std::remove_extent<T>::type;
|
||||
|
||||
namespace memory_internal {
|
||||
|
||||
// Traits to select proper overload and return type for `absl::make_unique<>`.
|
||||
template <typename T>
|
||||
struct MakeUniqueResult {
|
||||
using scalar = std::unique_ptr<T>;
|
||||
};
|
||||
template <typename T>
|
||||
struct MakeUniqueResult<T[]> {
|
||||
using array = std::unique_ptr<T[]>;
|
||||
};
|
||||
template <typename T, size_t N>
|
||||
struct MakeUniqueResult<T[N]> {
|
||||
using invalid = void;
|
||||
};
|
||||
|
||||
} // namespace memory_internal
|
||||
|
||||
// gcc 4.8 has __cplusplus at 201301 but doesn't define make_unique. Other
|
||||
// supported compilers either just define __cplusplus as 201103 but have
|
||||
// make_unique (msvc), or have make_unique whenever __cplusplus > 201103 (clang)
|
||||
#if (__cplusplus > 201103L || defined(_MSC_VER)) && \
|
||||
!(defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 8)
|
||||
using std::make_unique;
|
||||
#else
|
||||
// -----------------------------------------------------------------------------
|
||||
// Function Template: make_unique<T>()
|
||||
// -----------------------------------------------------------------------------
|
||||
//
|
||||
// Creates a `std::unique_ptr<>`, while avoiding issues creating temporaries
|
||||
// during the construction process. `absl::make_unique<>` also avoids redundant
|
||||
// type declarations, by avoiding the need to explicitly use the `new` operator.
|
||||
//
|
||||
// This implementation of `absl::make_unique<>` is designed for C++11 code and
|
||||
// will be replaced in C++14 by the equivalent `std::make_unique<>` abstraction.
|
||||
// `absl::make_unique<>` is designed to be 100% compatible with
|
||||
// `std::make_unique<>` so that the eventual migration will involve a simple
|
||||
// rename operation.
|
||||
//
|
||||
// For more background on why `std::unique_ptr<T>(new T(a,b))` is problematic,
|
||||
// see Herb Sutter's explanation on
|
||||
// (Exception-Safe Function Calls)[https://herbsutter.com/gotw/_102/].
|
||||
// (In general, reviewers should treat `new T(a,b)` with scrutiny.)
|
||||
//
|
||||
// Example usage:
|
||||
//
|
||||
// auto p = make_unique<X>(args...); // 'p' is a std::unique_ptr<X>
|
||||
// auto pa = make_unique<X[]>(5); // 'pa' is a std::unique_ptr<X[]>
|
||||
//
|
||||
// Three overloads of `absl::make_unique` are required:
|
||||
//
|
||||
// - For non-array T:
|
||||
//
|
||||
// Allocates a T with `new T(std::forward<Args> args...)`,
|
||||
// forwarding all `args` to T's constructor.
|
||||
// Returns a `std::unique_ptr<T>` owning that object.
|
||||
//
|
||||
// - For an array of unknown bounds T[]:
|
||||
//
|
||||
// `absl::make_unique<>` will allocate an array T of type U[] with
|
||||
// `new U[n]()` and return a `std::unique_ptr<U[]>` owning that array.
|
||||
//
|
||||
// Note that 'U[n]()' is different from 'U[n]', and elements will be
|
||||
// value-initialized. Note as well that `std::unique_ptr` will perform its
|
||||
// own destruction of the array elements upon leaving scope, even though
|
||||
// the array [] does not have a default destructor.
|
||||
//
|
||||
// NOTE: an array of unknown bounds T[] may still be (and often will be)
|
||||
// initialized to have a size, and will still use this overload. E.g:
|
||||
//
|
||||
// auto my_array = absl::make_unique<int[]>(10);
|
||||
//
|
||||
// - For an array of known bounds T[N]:
|
||||
//
|
||||
// `absl::make_unique<>` is deleted (like with `std::make_unique<>`) as
|
||||
// this overload is not useful.
|
||||
//
|
||||
// NOTE: an array of known bounds T[N] is not considered a useful
|
||||
// construction, and may cause undefined behavior in templates. E.g:
|
||||
//
|
||||
// auto my_array = absl::make_unique<int[10]>();
|
||||
//
|
||||
// In those cases, of course, you can still use the overload above and
|
||||
// simply initialize it to its desired size:
|
||||
//
|
||||
// auto my_array = absl::make_unique<int[]>(10);
|
||||
|
||||
// `absl::make_unique` overload for non-array types.
|
||||
template <typename T, typename... Args>
|
||||
typename memory_internal::MakeUniqueResult<T>::scalar make_unique(
|
||||
Args&&... args) {
|
||||
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
|
||||
}
|
||||
|
||||
// `absl::make_unique` overload for an array T[] of unknown bounds.
|
||||
// The array allocation needs to use the `new T[size]` form and cannot take
|
||||
// element constructor arguments. The `std::unique_ptr` will manage destructing
|
||||
// these array elements.
|
||||
template <typename T>
|
||||
typename memory_internal::MakeUniqueResult<T>::array make_unique(size_t n) {
|
||||
return std::unique_ptr<T>(new typename onnxruntime::remove_extent_t<T>[n]());
|
||||
}
|
||||
|
||||
// `absl::make_unique` overload for an array T[N] of known bounds.
|
||||
// This construction will be rejected.
|
||||
template <typename T, typename... Args>
|
||||
typename memory_internal::MakeUniqueResult<T>::invalid make_unique(
|
||||
Args&&... /* args */) = delete;
|
||||
#endif
|
||||
|
||||
}
|
||||
Loading…
Reference in a new issue