forked from microsoft/onnxruntime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'microsoft:main' into master
- Loading branch information
Showing
2,717 changed files
with
319,533 additions
and
98,482 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,60 @@ | ||
--- | ||
# turn off readability-braces-around-statements to allow single line statement like 'if (x == y) doSomething();' | ||
Checks: '-*,cppcoreguidelines-*,google-*,readability-*,modernize-*,-readability-braces-around-statements,-google-runtime-references,-cppcoreguidelines-pro-type-reinterpret-cast' | ||
WarningsAsErrors: '' | ||
|
||
# NOTE: | ||
# The check is a multiline string here. Comment must not be moved into the string. | ||
# Be sure to keep the disabled rules alphabetically sorted. | ||
# | ||
# Checks that are turned off: | ||
# | ||
# -cppcoreguidelines-macro-usage: There are a lot of false-positives like Function-like macro 'Foo' used; consider a 'constexpr' template function | ||
# -cppcoreguidelines-pro-type-reinterpret-cast: Originally turned off. | ||
# -google-readability-todo: Not enforced. | ||
# -google-runtime-references: https://github.com/microsoft/onnxruntime/blob/main/docs/Coding_Conventions_and_Standards.md#c-code-style. | ||
# -modernize-concat-nested-namespaces: We don't use it. | ||
# -modernize-use-trailing-return-type: Stylistic preference we do not enforce. | ||
# -readability-identifier-length: A lot of numerical code rely on short names to improve readability. | ||
# -readability-uppercase-literal-suffix: We accept lowercase suffixes | ||
|
||
Checks: > | ||
-*, | ||
cppcoreguidelines-*, | ||
google-*, | ||
readability-*, | ||
modernize-*, | ||
bugprone-*, | ||
performance-*, | ||
misc-*, | ||
-cppcoreguidelines-macro-usage, | ||
-cppcoreguidelines-pro-type-reinterpret-cast, | ||
-google-readability-todo, | ||
-google-runtime-references, | ||
-modernize-concat-nested-namespaces, | ||
-modernize-use-trailing-return-type, | ||
-readability-identifier-length, | ||
-readability-uppercase-literal-suffix, | ||
WarningsAsErrors: "" | ||
HeaderFilterRegex: '.*onnxruntime\/core\/.*' | ||
AnalyzeTemporaryDtors: false | ||
FormatStyle: none | ||
CheckOptions: | ||
- key: google-readability-braces-around-statements.ShortStatementLines | ||
value: '1' | ||
- key: google-readability-function-size.StatementThreshold | ||
value: '800' | ||
- key: google-readability-namespace-comments.ShortNamespaceLines | ||
value: '10' | ||
- key: google-readability-namespace-comments.SpacesBeforeComments | ||
value: '2' | ||
- key: modernize-loop-convert.MaxCopySize | ||
value: '16' | ||
- key: modernize-loop-convert.MinConfidence | ||
value: reasonable | ||
- key: modernize-loop-convert.NamingStyle | ||
value: CamelCase | ||
- key: modernize-pass-by-value.IncludeStyle | ||
value: google | ||
- key: modernize-replace-auto-ptr.IncludeStyle | ||
value: google | ||
- key: modernize-use-nullptr.NullMacros | ||
value: 'NULL' | ||
... | ||
|
||
FormatStyle: none | ||
CheckOptions: | ||
- key: google-readability-braces-around-statements.ShortStatementLines | ||
value: "1" | ||
- key: google-readability-function-size.StatementThreshold | ||
value: "800" | ||
- key: google-readability-namespace-comments.ShortNamespaceLines | ||
value: "10" | ||
- key: google-readability-namespace-comments.SpacesBeforeComments | ||
value: "2" | ||
- key: modernize-loop-convert.MaxCopySize | ||
value: "16" | ||
- key: modernize-loop-convert.MinConfidence | ||
value: reasonable | ||
- key: modernize-loop-convert.NamingStyle | ||
value: CamelCase | ||
- key: modernize-pass-by-value.IncludeStyle | ||
value: google | ||
- key: modernize-replace-auto-ptr.IncludeStyle | ||
value: google | ||
- key: modernize-use-nullptr.NullMacros | ||
value: "NULL" | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"notificationAliases": ["[email protected]"], | ||
"areaPath": "Vienna\\ONNX Runtime\\Shared Core", | ||
"codebaseName": "onnxruntime_master", | ||
"instanceUrl": "https://msdata.visualstudio.com/", | ||
"projectName": "Vienna", | ||
"ignoreBranchName": true | ||
} | ||
"notificationAliases": ["[email protected]"], | ||
"areaPath": "ONNX Runtime\\Engineering Systems", | ||
"codebaseName": "onnxruntime", | ||
"instanceUrl": "https://aiinfra.visualstudio.com/", | ||
"projectName": "ONNX Runtime", | ||
"ignoreBranchName": true, | ||
"template": "AIINFRA_TSA" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# -------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
# -------------------------------------------------------------- | ||
# Dockerfile to Develop inside Dev Container | ||
|
||
ARG VARIANT=ubuntu-20.04 | ||
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT} | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install common packages | ||
RUN apt-get update \ | ||
&& apt-get -y install build-essential cppcheck valgrind clang lldb llvm gdb \ | ||
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* | ||
|
||
# Install additional OS packages. | ||
RUN apt-get update \ | ||
&& apt-get -y install --no-install-recommends \ | ||
python3-dev \ | ||
python3 \ | ||
ca-certificates \ | ||
python3-numpy \ | ||
python3-setuptools \ | ||
python3-wheel \ | ||
python3-pip \ | ||
g++ \ | ||
gcc \ | ||
ninja-build \ | ||
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* | ||
|
||
# Install newer CMake version | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends aria2 aria2 && aria2c -q -d /tmp -o cmake-3.21.0-linux-x86_64.tar.gz https://github.com/Kitware/CMake/releases/download/v3.21.0/cmake-3.21.0-linux-x86_64.tar.gz && tar -zxf /tmp/cmake-3.21.0-linux-x86_64.tar.gz --strip=1 -C /usr \ | ||
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/docker-existing-dockerfile | ||
{ | ||
"name": "Onnx Runtime - Eager Mode", | ||
|
||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
|
||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"python.languageServer": "Default", | ||
"cmake.ignoreCMakeListsMissing": true, | ||
"python.defaultInterpreterPath": "/usr/bin/python3", | ||
"python.linting.enabled": true, | ||
"python.linting.pylintEnabled": true | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-python.vscode-pylance", | ||
"ms-python.python", | ||
"ms-vscode.cpptools-extension-pack", | ||
"ms-vscode.cmake-tools" | ||
] | ||
} | ||
}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Uncomment the next line to run commands after the container is created - for example installing curl. | ||
// "postCreateCommand": "apt-get update && apt-get install -y curl", | ||
|
||
// Uncomment when using a ptrace-based debugger like C++, Go, and Rust | ||
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], | ||
|
||
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode", | ||
|
||
"features": { | ||
"git": "os-provided", | ||
"python": "os-provided", | ||
"powershell": "7.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Build | ||
description: issues related to builds | ||
title: "[Build] " | ||
labels: ["build"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
If your request is a question/idea or otherwise not related to a bug/issue or feature request, please submit to [ONNX Runtime GitHub Discussions](https://github.com/microsoft/onnxruntime/discussions). | ||
Before submitting your request, please review past submissions to ensure that it is not a duplicate of a known issue. | ||
- type: textarea | ||
id: issue-descript | ||
attributes: | ||
label: Describe the issue | ||
placeholder: Include your issue description and any additional context necessary for your issue to be addressed (e.g., screenshots, GPU model & memory, etc.). | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: urgency | ||
attributes: | ||
label: Urgency | ||
placeholder: Is your issue urgent? If important use cases are blocked, there is a regression in ONNX Runtime functionality, or you have a strict project deadline, please elaborate here. | ||
validations: | ||
required: false | ||
- type: input | ||
id: target-platform | ||
attributes: | ||
label: Target platform | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Build script | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Error / output | ||
validations: | ||
required: true | ||
- type: input | ||
id: vs-version | ||
attributes: | ||
label: Visual Studio Version | ||
validations: | ||
required: false | ||
- type: input | ||
id: comp-version | ||
attributes: | ||
label: GCC / Compiler Version | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Documentation | ||
description: issues related to documentation additions and revisions | ||
title: "[Documentation] " | ||
labels: ["documentation"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
If your request is a question/idea or otherwise not related to a bug/issue or feature request, please submit to [ONNX Runtime GitHub Discussions](https://github.com/microsoft/onnxruntime/discussions). | ||
Before submitting your request, please review past submissions to ensure that it is not a duplicate of a known issue. | ||
- type: textarea | ||
id: doc-descript | ||
attributes: | ||
label: Describe the documentation issue | ||
placeholder: Provide a clear and concise description of the issue with current documentation. For simple fixes, please submit a PR by clicking on the "Edit Page in GitHub" link on any https://onnxruntime.ai/docs page. | ||
validations: | ||
required: true | ||
- type: input | ||
id: page-url | ||
attributes: | ||
label: Page / URL | ||
placeholder: Note the page/URL where the documentation issue occurs. | ||
validations: | ||
required: false |
Oops, something went wrong.