Skip to content

Commit

Permalink
commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJinquan committed Sep 22, 2021
0 parents commit dc51087
Show file tree
Hide file tree
Showing 4,743 changed files with 892,593 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# git rm -r --cached .
# git add .
# git commit -m 'update .gitignore'

*.iml
.gradle
/local.properties
/.idea
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
/cmake-build-debug
114 changes: 114 additions & 0 deletions 3rdparty/TNN/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
---
# 语言: None Cpp Java ObjC Protp
Language: Cpp
#LLVM Google
BasedOnStyle: Google
# 语言: None Cpp Java ObjC Protp
# 访问说明符的偏移(public private)
AccessModifierOffset: -4
# 括号之后,水平对齐参数: Align DontAlign AlwaysBreak
AlignAfterOpenBracket: Align
# 连续的宏
# AlignConsecutiveMacros: true
# 连续的赋值时,对齐所有的等号
AlignConsecutiveAssignments: true
# 左对齐换行(使用反斜杠换行)的反斜杠
AlignEscapedNewlines: Right
# # 左对齐换行(使用反斜杠换行)的反斜杠
# AlignEscapedNewlinesLeft: true
# 水平对齐二元和三元表达式的操作数
AlignOperands: true
# 允许函数声明的所有参数在放在下一行
AllowAllParametersOfDeclarationOnNextLine: false
# AllowAllArgumentsOnNextLine: false
# 允许短的块放在同一行
AllowShortBlocksOnASingleLine : false
# 允许短的case标签放在同一行
AllowShortCaseLabelsOnASingleLine: false
# 允许短的函数放在同一行: None, InlineOnly(定义在类中), Empty(空函数), Inline(定义在类中,空函数), All
AllowShortFunctionsOnASingleLine: Empty
# 是否允许短if单行 If true, if (a) return; 可以放到同一行
AllowShortIfStatementsOnASingleLine: false
# 允许短的循环保持在同一行
AllowShortLoopsOnASingleLine: false
# 总是在定义返回类型后换行(deprecated)
AlwaysBreakAfterDefinitionReturnType: None
# 每行字符的限制,0表示没有限制
ColumnLimit: 120
# 描述具有特殊意义的注释的正则表达式,它不应该被分割为多行或以其它方式改变
CommentPragmas: '^ IWYU pragma:'
#指针的*的挨着哪边
PointerAlignment: Right
#缩进宽度
IndentWidth: 4
# OC block后面的缩进
ObjCBlockIndentWidth: 4
#tab键盘的宽度
TabWidth: 4
Standard: Cpp11
UseTab: Never
CompactNamespaces: false
# 命名空间的偏移
NamespaceIndentation: Inner
# 命名空间的末尾注释
FixNamespaceComments: true
# IndentPPDirectives: BeforeHash
---
# 语言: None Cpp Java ObjC Protp
Language: ObjC
#LLVM Google
BasedOnStyle: LLVM
# 访问说明符的偏移(public private)
AccessModifierOffset: -4
# 括号之后,水平对齐参数: Align DontAlign AlwaysBreak
AlignAfterOpenBracket: Align
# 连续的宏
# AlignConsecutiveMacros: true
# 连续的赋值时,对齐所有的等号
AlignConsecutiveAssignments: true
# 左对齐换行(使用反斜杠换行)的反斜杠
AlignEscapedNewlines: Right
# # 左对齐换行(使用反斜杠换行)的反斜杠
# AlignEscapedNewlinesLeft: true
# 水平对齐二元和三元表达式的操作数
AlignOperands: true
# 允许函数声明的所有参数在放在下一行
AllowAllParametersOfDeclarationOnNextLine: false
# AllowAllArgumentsOnNextLine: false
# 允许短的块放在同一行
AllowShortBlocksOnASingleLine : false
# 允许短的case标签放在同一行
AllowShortCaseLabelsOnASingleLine: false
# 允许短的函数放在同一行: None, InlineOnly(定义在类中), Empty(空函数), Inline(定义在类中,空函数), All
AllowShortFunctionsOnASingleLine: Empty
# 是否允许短if单行 If true, if (a) return; 可以放到同一行
AllowShortIfStatementsOnASingleLine: false
# 允许短的循环保持在同一行
AllowShortLoopsOnASingleLine: false
# 总是在定义返回类型后换行(deprecated)
AlwaysBreakAfterDefinitionReturnType: None
# 每行字符的限制,0表示没有限制
ColumnLimit: 120
# 描述具有特殊意义的注释的正则表达式,它不应该被分割为多行或以其它方式改变
CommentPragmas: '^ IWYU pragma:'
#指针的*的挨着哪边
PointerAlignment: Right
#缩进宽度
IndentWidth: 4
# OC block后面的缩进
ObjCBlockIndentWidth: 4
#tab键盘的宽度
TabWidth: 4
Standard: Cpp11
UseTab: Never
CompactNamespaces: false
# 命名空间的偏移
NamespaceIndentation: Inner
# 命名空间的末尾注释
FixNamespaceComments: true
# IndentPPDirectives: BeforeHash
---
Language: Proto
#.proto文件不格式化
DisableFormat: true
...
20 changes: 20 additions & 0 deletions 3rdparty/TNN/.github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
31 changes: 31 additions & 0 deletions 3rdparty/TNN/.github/ISSUE_TEMPLATE/model-converter-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: model converter issue
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''

---

**1. 使用环境(environment)**
- OS: Mac/Ubuntu/Centos/Docker
- OS Version:

**2. Github版本**
- branch:
- commit(optional):

**3. 详细描述bug 情况 (Describe the bug)**
A clear and concise description of what the bug is.
- issue type: 编译问题(Build failed)/ 模型转换失败(converter failed)/ 模型不对齐(model misalignment)
- original model: Caffe/ONNX/TensorFlow/TensorFlowLite
(如果可以的话,请上传原始的模型文件)

**4. 日志(Log)**
```txt
将日志粘贴在这里
Paste log here or pastebin
```

**5. 截图(Screenshots)**
If applicable, add screenshots to help explain your problem.
41 changes: 41 additions & 0 deletions 3rdparty/TNN/.github/ISSUE_TEMPLATE/tnn-inference-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: tnn inference issue
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''

---

**1. 环境(environment)**
- Build OS and Version: Mac/Ubuntu/Centos/Windows
- RunTime OS Version: Linux/Android/IOS
- RunTime DEVICE: ARM/OPENCL/METAL

**2. Github版本**
- branch:
- commit(optional):

**3. 编译方式(compile method)**
CMake完整编译参数(full cmake arguments)

**4. 编译日志(build log)**
```txt
将日志粘贴在这里
Paste log here or pastebin
```

**5. 详细描述bug 情况 (Describe the bug)**


**6. 运行日志(runtime log)**
```txt
将日志粘贴在这里
Paste log here or pastebin
```

**7. 截图(Screenshots)**
```txt
将截图粘贴在这里
Paste screenshorts here or pastebin
```
29 changes: 29 additions & 0 deletions 3rdparty/TNN/.github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name-template: 'TNN v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'bug'
- title: '🧰 Maintenance'
labels:
- 'documentation'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## Changes
$CHANGES
32 changes: 32 additions & 0 deletions 3rdparty/TNN/.github/workflows/android-arm-cpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: android-arm-cpu
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
setup:
runs-on: ubuntu-latest
outputs:
CONDITION: ${{ steps.preflight.outputs.CONDITION }}
steps:
- uses: actions/checkout@v2
- name: Preflight
id: preflight
run: |
echo ::set-output name=CONDITION::0
./scripts/.ci/preflight.sh android || ret=$? && echo $ret && echo ::set-output name=CONDITION::$ret
android:
needs: [setup]
if: ${{ needs.setup.outputs.CONDITION != '11' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: configure
run: sudo apt-get install attr
- name: build
run: export ANDROID_NDK=$ANDROID_HOME/ndk-bundle && ./scripts/build_android.sh
30 changes: 30 additions & 0 deletions 3rdparty/TNN/.github/workflows/ios-cpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: ios-cpu
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
setup:
runs-on: ubuntu-latest
outputs:
CONDITION: ${{ steps.preflight.outputs.CONDITION }}
steps:
- uses: actions/checkout@v2
- name: Preflight
id: preflight
run: |
echo ::set-output name=CONDITION::0
./scripts/.ci/preflight.sh ios || ret=$? && echo $ret && echo ::set-output name=CONDITION::$ret
ios-iphone-os:
needs: [setup]
if: ${{ needs.setup.outputs.CONDITION != '11' }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: build
run: ./scripts/build_ios.sh
34 changes: 34 additions & 0 deletions 3rdparty/TNN/.github/workflows/linux-x86-cpu-gcc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: linux-x86-cpu-gcc
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
setup:
runs-on: ubuntu-latest
outputs:
CONDITION: ${{ steps.preflight.outputs.CONDITION }}
steps:
- uses: actions/checkout@v2
- name: Preflight
id: preflight
run: |
echo ::set-output name=CONDITION::0
./scripts/.ci/preflight.sh x86 || ret=$? && echo $ret && echo ::set-output name=CONDITION::$ret
linux-gcc:
needs: [setup]
if: ${{ needs.setup.outputs.CONDITION != '11' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: update
run: sudo apt-get update
- name: gcc-multilib
run: sudo apt-get install gcc-multilib g++-multilib libprotobuf-dev protobuf-compiler
- name: build
run: ./scripts/build_x86_linux.sh
32 changes: 32 additions & 0 deletions 3rdparty/TNN/.github/workflows/macos-x64-cpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: macos-x64-cpu
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
setup:
runs-on: ubuntu-latest
outputs:
CONDITION: ${{ steps.preflight.outputs.CONDITION }}
steps:
- uses: actions/checkout@v2
- name: Preflight
id: preflight
run: |
echo ::set-output name=CONDITION::0
./scripts/.ci/preflight.sh x86 || ret=$? && echo $ret && echo ::set-output name=CONDITION::$ret
macos-clang:
needs: [setup]
if: ${{ needs.setup.outputs.CONDITION != '11' }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: protobuf
run: brew install protobuf opencv3
- name: build
run: ./scripts/build_macos.sh
Loading

0 comments on commit dc51087

Please sign in to comment.