Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang committed Dec 27, 2019
1 parent 62c5ca4 commit 002ac36
Show file tree
Hide file tree
Showing 1,227 changed files with 58,739 additions and 19,812 deletions.
34 changes: 31 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,38 @@ project/android/.idea/caches/build_file_checksums.ser

### Temps
3rd_party/flatbuffers/tmp
schema/current
# FIXME(haijing): Xcode pre-build stage breaks compilation of flatbuffers by setting envs that do cmake cross-compilation for iOS
# schema/current
schema/private
tools/converter/source/IR
benchmark/benchmark.txt

### Models
*.mnn
### Python MNN
pymnn/android/build/
pymnn/android/local.properties
pymnn/android/.idea
pymnn/android/.idea/.name
pymnn/android/.idea/gradle.xml
pymnn/android/.idea/misc.xml
pymnn/android/.idea/modules.xml
pymnn/android/.idea/runConfigurations.xml
pymnn/android/.idea/vcs.xml
pymnn/android/.idea/caches/build_file_checksums.ser

buildios
build*/
include/MNN/VCS.h
source/backend/opencl/execution/cl/codegen/opencl_program.cc
source/backend/opencl/execution/cl/opencl_program.cc
# FIXME(haijing): MTL issues.....
# source/backend/metal/MetalOPRegister.mm
source/backend/opengl/AllShader.cpp
include/MNN/backend/opengl/shaders/AllShader.h
source/backend/vulkan/compiler/AllShader.cpp
include/MNN/backend/vulkan/shaders/AllShader.h
.idea
project/ios/ios_64
project/ios/ios_32
project/ios/MNN.framework

pymnn_build/
118 changes: 96 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,29 @@ matrix:
osx_image: xcode11.2
compiler: clang
script:
- ./schema/generate.sh
- mkdir macosbuild
- cd macosbuild
- cmake ../ -DCMAKE_BUILD_TYPE=Release -DMNN_BUILD_TRAIN=ON -DMNN_BUILD_DEMO=ON -DMNN_BUILD_QUANTOOLS=ON -DMNN_EVALUATION=ON -DMNN_BUILD_CONVERTER=ON -DMNN_SUPPORT_TFLITE_QUAN=ON -DMNN_METAL=ON -DMNN_BUILD_TEST=ON -DMNN_BUILD_BENCHMARK=ON
- make -j8
- ./ciscripts/macOS/CPU_Metal.sh
name: "macOS11.2 | CPU_Metal"
- os: osx
language: cpp
osx_image: xcode11.2
compiler: clang
script:
- ./schema/generate.sh
- xcodebuild -configuration Release -project project/ios/MNN.xcodeproj
- find . -name ".DS_Store" -delete
- cd project/ios/build/Release-iphoneos/
- zip -r MNN.iOS.framework.zip ./
- curl -T MNN.iOS.framework.zip -umnn:${BINTRAY_DEPLOY_TOKEN} https://api.bintray.com/content/mnnteam/Pods/Nightly/0.0.0/MNN-iOS-Nightly.zip
name: "iOS | CPU_Metal"
- ./ciscripts/macOS/CPU.sh
name: "macOS11.2 | CPU"
- os: osx
language: cpp
osx_image: xcode11.2
compiler: clang
script:
- ./ciscripts/iOS/Xcode.sh
name: "iOS | CPU_Metal | Xcode"
- os: osx
language: cpp
osx_image: xcode11.2
compiler: clang
script:
- ./ciscripts/iOS/CMake.sh
name: "iOS | CPU_Metal | CMake"
- os: linux
sudo: required
dist: bionic
Expand All @@ -34,12 +39,81 @@ matrix:
- sudo apt-get install ant libprotobuf-dev libvulkan-dev libglew-dev freeglut3-dev protobuf-compiler ocl-icd-opencl-dev libglfw3-dev
compiler: gcc
script:
- ./schema/generate.sh
- mkdir linuxbuild
- cd linuxbuild
- cmake ../ -DCMAKE_BUILD_TYPE=Release -DMNN_BUILD_TRAIN=ON -DMNN_BUILD_DEMO=ON -DMNN_BUILD_QUANTOOLS=ON -DMNN_EVALUATION=ON -DMNN_BUILD_CONVERTER=ON -DMNN_SUPPORT_TFLITE_QUAN=ON -DMNN_BUILD_TEST=ON -DMNN_OPENCL=ON -DMNN_VULKAN=ON -DMNN_OPENMP=ON -DMNN_BUILD_BENCHMARK=ON
- make -j8
name: "Linux | CPU_CL_OpenMP_Vulkan"
- ./ciscripts/Linux/CL_ThreadPool_Vulkan.sh
name: "Linux | CPU_CL_ThreadPool_Vulkan"
- os: linux
sudo: required
dist: trusty
language: android
compiler: clang
android:
components:
- tools
- build-tools
- platform-tools
- android-21
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_script:
- sudo apt-get install ant libprotobuf-dev protobuf-compiler
- sudo apt-get remove cmake
- echo yes | sdkmanager "ndk-bundle"
- echo yes | sdkmanager "cmake;3.10.2.4988404"
- export ANDROID_NDK=$ANDROID_HOME/ndk-bundle
- export PATH=/usr/local/android-sdk/cmake/3.10.2.4988404/bin/:$PATH
script:
- ./ciscripts/Android/32.sh
name: "Android | AArch32_ThreadPool_Vulkan"
- os: linux
sudo: required
dist: trusty
language: android
compiler: clang
android:
components:
- tools
- build-tools
- platform-tools
- android-21
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_script:
- sudo apt-get install ant libprotobuf-dev protobuf-compiler
- echo yes | sdkmanager "ndk-bundle"
- echo yes | sdkmanager "cmake;3.10.2.4988404"
- export ANDROID_NDK=$ANDROID_HOME/ndk-bundle
- export PATH=/usr/local/android-sdk/cmake/3.10.2.4988404/bin/:$PATH
script:
- ./ciscripts/Android/32OMP.sh
name: "Android | AArch32_OMP_Vulkan"
- os: linux
sudo: required
dist: trusty
language: android
compiler: clang
android:
components:
- tools
- build-tools
- platform-tools
- android-21
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_script:
- sudo apt-get install ant libprotobuf-dev protobuf-compiler
- echo yes | sdkmanager "ndk-bundle"
- echo yes | sdkmanager "cmake;3.10.2.4988404"
- export ANDROID_NDK=$ANDROID_HOME/ndk-bundle
- export PATH=/usr/local/android-sdk/cmake/3.10.2.4988404/bin/:$PATH
script:
- ./ciscripts/Android/64.sh
name: "Android | AArch64_ThreadPool_Vulkan"
- os: linux
sudo: required
dist: trusty
Expand All @@ -56,11 +130,11 @@ matrix:
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_script:
- sudo apt-get install ant libprotobuf-dev protobuf-compiler tree
- sudo apt-get install ant libprotobuf-dev protobuf-compiler
- echo yes | sdkmanager "ndk-bundle"
- echo yes | sdkmanager "cmake;3.10.2.4988404"
- export ANDROID_NDK=$ANDROID_HOME/ndk-bundle
- export PATH=/usr/local/android-sdk/cmake/3.10.2.4988404/bin/:$PATH
script:
- cd project/android/
- ./gradlew assembleRelease bintrayUpload -PbintrayKey=${BINTRAY_DEPLOY_TOKEN}
name: "Android | AArch32"
- ./ciscripts/Android/64OMP.sh
name: "Android | AArch64_OMP_Vulkan"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
42 changes: 0 additions & 42 deletions 3rd_party/flatbuffers/docs/source/CONTRIBUTING.md

This file was deleted.

1 change: 1 addition & 0 deletions 3rd_party/flatbuffers/docs/source/CONTRIBUTING.md
Loading

1 comment on commit 002ac36

@jxt1234
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

更新内容
1、Op 补全
(1)新增 TFlite 30 + op 支持
(2)新增 Onnx 20 + op 支持
(3)新增 Caffe 9 个 op 支持
(4)新增 Tensorflow 24 个 op 支持
2、工程优化
(1)完善CMake相关编译配置
(2)头文件目录规范化,原 include 目录下的头文件移到 include/MNN 下
3、推理相关功能完善与Bug修复
(1)OpenCL BinaryOp 相关 Bug 修复
(2)CPU MatMul Bug 修复
(3)完善单元测试,添加 30 + op 单元测试用例
(4)ImageProcess 支持 NV12 输入以及 NV21 / NV12 stride 支持
4、训练能力(整体仍处调试阶段)
(1)优化 Express 模块动态图运行机制
(2)MNN 单机训练功能完善,Demo完成

Please sign in to comment.