Browse Source

feat(lite): add header licence

GitOrigin-RevId: bcd6860e8c
tags/v1.6.0-rc1
Megvii Engine Team 3 years ago
parent
commit
f971982829
83 changed files with 414 additions and 322 deletions
  1. +3
    -0
      ACKNOWLEDGMENTS
  2. +5
    -0
      CMakeLists.txt
  3. +1
    -84
      lite/README.md
  4. +5
    -3
      lite/example/example.h
  5. +5
    -3
      lite/example/main.cpp
  6. +5
    -3
      lite/example/mge/basic.cpp
  7. +5
    -3
      lite/example/mge/cpu_affinity.cpp
  8. +5
    -3
      lite/example/mge/device_io.cpp
  9. +5
    -3
      lite/example/mge/lite_c_interface.cpp
  10. +5
    -3
      lite/example/mge/network_share_weights.cpp
  11. +5
    -3
      lite/example/mge/reset_io.cpp
  12. +5
    -3
      lite/example/mge/user_allocator.cpp
  13. +5
    -3
      lite/example/mge/user_cryption.cpp
  14. +5
    -3
      lite/include/lite/common_enum_c.h
  15. +5
    -3
      lite/include/lite/global.h
  16. +5
    -3
      lite/include/lite/macro.h
  17. +5
    -3
      lite/include/lite/network.h
  18. +5
    -3
      lite/include/lite/tensor.h
  19. +5
    -3
      lite/lite-c/include/lite-c/global_c.h
  20. +5
    -3
      lite/lite-c/include/lite-c/network_c.h
  21. +5
    -3
      lite/lite-c/include/lite-c/tensor_c.h
  22. +5
    -3
      lite/lite-c/src/common.h
  23. +5
    -3
      lite/lite-c/src/global.cpp
  24. +5
    -3
      lite/lite-c/src/network.cpp
  25. +5
    -3
      lite/lite-c/src/tensor.cpp
  26. +6
    -3
      lite/pylite/megenginelite/__init__.py
  27. +6
    -3
      lite/pylite/megenginelite/base.py
  28. +6
    -3
      lite/pylite/megenginelite/global_setting.py
  29. +6
    -3
      lite/pylite/megenginelite/network.py
  30. +6
    -3
      lite/pylite/megenginelite/struct.py
  31. +6
    -3
      lite/pylite/megenginelite/tensor.py
  32. +6
    -4
      lite/pylite/megenginelite/utils.py
  33. +6
    -3
      lite/pylite/setup.py
  34. +6
    -3
      lite/pylite/test/test_global.py
  35. +6
    -3
      lite/pylite/test/test_network.py
  36. +6
    -3
      lite/pylite/test/test_network_cuda.py
  37. +6
    -3
      lite/pylite/test/test_tensor.py
  38. +6
    -3
      lite/pylite/test/test_utils.py
  39. +5
    -3
      lite/src/decryption/aes_decrypt.h
  40. +4
    -3
      lite/src/decryption/decrypt_base.h
  41. +5
    -3
      lite/src/decryption/rc4/rc4_cryption_base.h
  42. +5
    -3
      lite/src/decryption/rc4/rc4_cryption_impl.cpp
  43. +5
    -3
      lite/src/decryption/rc4/rc4_cryption_impl.h
  44. +5
    -3
      lite/src/decryption/rc4_cryption.cpp
  45. +5
    -3
      lite/src/decryption/rc4_cryption.h
  46. +5
    -3
      lite/src/function_base.h
  47. +5
    -3
      lite/src/global.cpp
  48. +5
    -3
      lite/src/lite_build_config.h.in
  49. +5
    -3
      lite/src/mge/algo_cache/file_cache.cpp
  50. +5
    -3
      lite/src/mge/algo_cache/file_cache.h
  51. +5
    -3
      lite/src/mge/algo_cache/redis_cache.cpp
  52. +5
    -3
      lite/src/mge/algo_cache/redis_cache.h
  53. +5
    -3
      lite/src/mge/common.cpp
  54. +5
    -3
      lite/src/mge/common.h
  55. +5
    -3
      lite/src/mge/function_dft.h
  56. +5
    -3
      lite/src/mge/memory_allocator.h
  57. +5
    -3
      lite/src/mge/network_impl.cpp
  58. +5
    -3
      lite/src/mge/network_impl.h
  59. +5
    -3
      lite/src/mge/tensor_impl.cpp
  60. +5
    -3
      lite/src/mge/tensor_impl.h
  61. +5
    -3
      lite/src/misc.cpp
  62. +5
    -3
      lite/src/misc.h
  63. +5
    -3
      lite/src/network.cpp
  64. +5
    -3
      lite/src/network_impl_base.h
  65. +4
    -3
      lite/src/parse_info/default_parse.h
  66. +4
    -3
      lite/src/parse_info/parse_info_base.h
  67. +5
    -3
      lite/src/parse_model/model_parser.cpp
  68. +5
    -3
      lite/src/parse_model/model_parser.h
  69. +5
    -3
      lite/src/tensor.cpp
  70. +5
    -3
      lite/src/tensor_impl_base.h
  71. +5
    -3
      lite/src/type_info.h
  72. +4
    -0
      lite/test/CMakeLists.txt
  73. +5
    -3
      lite/test/main.cpp
  74. +5
    -3
      lite/test/test_common.h
  75. +5
    -3
      lite/test/test_misc.cpp
  76. +5
    -3
      lite/test/test_network.cpp
  77. +5
    -3
      lite/test/test_network_c.cpp
  78. +5
    -3
      lite/test/test_network_options.cpp
  79. +5
    -3
      lite/test/test_tensor.cpp
  80. +5
    -3
      lite/test/test_tensor_c.cpp
  81. +1
    -2
      lite/tools/dump_model_mgb.py
  82. +5
    -4
      lite/tools/pack_model/pack_model_and_info.py
  83. +5
    -3
      lite/tools/rc4_encrypt.cpp

+ 3
- 0
ACKNOWLEDGMENTS View File

@@ -50,6 +50,9 @@ Copyright 2016-2020 Advanced Micro Devices, Inc.
14. rocRAND
Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.

15. json
Copyright (c) 2013-2021 Niels Lohmann

Terms of the MIT License:
--------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:


+ 5
- 0
CMakeLists.txt View File

@@ -43,6 +43,7 @@ option(MGE_ARMV8_2_FEATURE_FP16 "Enable armv8.2-a+fp16 support" OFF)
option(MGE_DISABLE_FLOAT16 "Disable MegEngine float16 support." OFF)
option(MGE_WITH_CUDA "Enable MegEngine CUDA support." ON)
option(MGE_CUDA_USE_STATIC "Enable MegEngine CUDA static linking." ON)
option(MGE_WITH_LITE "Build MGE with lite" ON)
option(MGE_WITH_TRT "Build MegEngine with TensorRT." ON)
option(MGE_WITH_CUDA_STUB "Build MegEngine with CUDA stub." ON)
option(MGE_WITH_NVRTC_STUB "Build MegEngine with NVRTC stub." OFF)
@@ -1179,3 +1180,7 @@ if(MGE_WITH_CUDA AND MGE_CUDA_USE_STATIC AND("${CUDNN_VERSION}" VERSION_GREATER
message(WARNING "Static link CUDNN8 with many sm is unworkable, please use -DMGE_WITH_CUDNN_SHARED=ON or -DMGE_WITH_LARGE_ARCHIVE=ON -DMGE_CUDA_GENCODE=\"-gencode arch=compute_70,code=sm_70 arch=compute_75,code=sm_75\" ")
message(WARNING "Static link CUDNN8 with many sm is unworkable, please use -DMGE_WITH_CUDNN_SHARED=ON or -DMGE_WITH_LARGE_ARCHIVE=ON -DMGE_CUDA_GENCODE=\"-gencode arch=compute_70,code=sm_70 arch=compute_75,code=sm_75\" ")
endif()

if(MGE_WITH_LITE)
add_subdirectory(lite)
endif()

+ 1
- 84
lite/README.md View File

@@ -3,76 +3,7 @@
It is a lite warper of MegEngine, to enable MegEngine easy to be integrated in
user's SDK

## bazel build

目前支持内部 bazel 和 CMake 编译,支持 C++/C, Python 接口,
下面是 bazel 中 lite_shared 目标的编译,可以作为其他目标的编译的参考,
该编译依赖内部 bazel 编译以及 megvii3。

### 配置编译环境

需要使用 megvii3 workspace 来完成 bazel 的编译

#### Clone megvii3 安装 bazel

```bash
git clone git@git-core.megvii-inc.com:brain-sdk/megvii3.git
./utils/bazel/get_bazel.sh
```

#### Clone megbrain
```
git submodule update brain/megbrain brain/midout
```

### 编译 x86 CUDA 版本

```bash
./bazel build //brain/megbrain/lite:lite_shared --cpu="k8" \
--compiler="gcc7_cuda10" -c opt
```

### 编译 x86 CPU 版本

```bash
./bazel build //brain/megbrain/lite:lite_shared --cpu="k8" \
--compiler="gcc9" -c opt
```

### 编译 arm OpenCL 版本

```bash
./bazel build //brain/megbrain/lite:lite_shared_shared --cpu=android_aarch64 \
-c opt --define enable_opencl=1 --define enable_opencl_search=1
```
### 编译 arm opencl lite_examples
bazel-3.0.0-megvii2 build //brain/megbrain/lite:lite_shared_examples \
--cpu=android_aarch64 --define enable_opencl=1 --define enable_opencl_search=1
####如何运行snpe_loder 的lite_exampes 请查看下面的wiki
https://wiki.megvii-inc.com/pages/viewpage.action?pageId=268786906

### 编译 armv7 CPU 版本

```bash
./bazel build //brain/megbrain/lite:lite_shared --cpu=android_armv7 \
-c opt
```

### 编译 arm64 CPU 版本

```bash
./bazel build //brain/megbrain/lite:lite_shared --cpu=android_aarch64 \
-c opt
```

### 编译 arm64 CPU v8.2 版本

```bash
./bazel build //brain/megbrain/lite:lite_shared --cpu=android_aarch64 \
--copt -march=armv8.2-a+fp16+dotprod -c opt
```

## 同时支持cmake构建
## 支持cmake构建
cmake构建参考scripts/cmake-build/BUILD_README.md,下面example表示同时支持编译megengine
和RKNPU后端且打开OpenCL的release模式
```bash
@@ -235,17 +166,3 @@ Lite 中提供自定义的方式,用户可以自定义自己 Info 部分的类
aes_encrypt.sh xxx.mdl xxx_encrypted.mdl \
000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F
```

* rc4_encypt.cpp 可以被编译成为一个 rc4 加密的工具,这个工具可以通过
制定的 key 或者默认的 key 加密制定的文件,支持 rc4 方法和
simple_fast_rc4 两种方法,支持自定义 key。
* bazel 编译 x86 命令为:
```bash
bazel build //brain/megbrain/lite:rc4_encryptor \
--cpu='k8' --compiler='gcc9'
```
* 加密文件,具体用法见 help
```bash
rc4_encryptor encrypt_predefined_rc4 \
to_be_encrypt.file encrypted.file
```

+ 5
- 3
lite/example/example.h View File

@@ -1,10 +1,12 @@
/**
* \file example/example.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/example/main.cpp View File

@@ -1,10 +1,12 @@
/**
* \file example/example.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite/global.h"


+ 5
- 3
lite/example/mge/basic.cpp View File

@@ -1,10 +1,12 @@
/**
* \file example/basic.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include <thread>


+ 5
- 3
lite/example/mge/cpu_affinity.cpp View File

@@ -1,10 +1,12 @@
/**
* \file example/cpu_affinity.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "../example.h"


+ 5
- 3
lite/example/mge/device_io.cpp View File

@@ -1,10 +1,12 @@
/**
* \file example/device_io.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include <thread>


+ 5
- 3
lite/example/mge/lite_c_interface.cpp View File

@@ -1,10 +1,12 @@
/**
* \file example/basic_c_interface.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "../example.h"


+ 5
- 3
lite/example/mge/network_share_weights.cpp View File

@@ -1,10 +1,12 @@
/**
* \file example/network_share_weights.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "../example.h"


+ 5
- 3
lite/example/mge/reset_io.cpp View File

@@ -1,10 +1,12 @@
/**
* \file example/reset_io.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "../example.h"


+ 5
- 3
lite/example/mge/user_allocator.cpp View File

@@ -1,10 +1,12 @@
/**
* \file example/user_allocator.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "../example.h"


+ 5
- 3
lite/example/mge/user_cryption.cpp View File

@@ -1,10 +1,12 @@
/**
* \file example/user_cryption.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "../example.h"


+ 5
- 3
lite/include/lite/common_enum_c.h View File

@@ -1,10 +1,12 @@
/**
* \file inlude/lite/common_enum_c.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#ifndef LITE_COMMON_ENUM_C_H_


+ 5
- 3
lite/include/lite/global.h View File

@@ -1,10 +1,12 @@
/**
* \file inlude/lite/global.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/include/lite/macro.h View File

@@ -1,10 +1,12 @@
/**
* \file include/lite/macro.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#ifndef LITE_MACRO_H_


+ 5
- 3
lite/include/lite/network.h View File

@@ -1,10 +1,12 @@
/**
* \file inlude/lite/network.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/include/lite/tensor.h View File

@@ -1,10 +1,12 @@
/**
* \file inlude/lite/tensor.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/lite-c/include/lite-c/global_c.h View File

@@ -1,10 +1,12 @@
/**
* \file lite-c/include/lite-c/global-c.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#ifndef LITE_C_GLOBAL_H_


+ 5
- 3
lite/lite-c/include/lite-c/network_c.h View File

@@ -1,10 +1,12 @@
/**
* \file lite-c/include/lite-c/network_c.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#ifndef LITE_C_NETWORK_H_


+ 5
- 3
lite/lite-c/include/lite-c/tensor_c.h View File

@@ -1,10 +1,12 @@
/**
* \file lite-c/include/lite-c/tensor_c.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#ifndef LITE_TENSOR_C_H_


+ 5
- 3
lite/lite-c/src/common.h View File

@@ -1,10 +1,12 @@
/**
* \file lite-c/src/common.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#ifndef LITE_C_COMMON_H_


+ 5
- 3
lite/lite-c/src/global.cpp View File

@@ -1,10 +1,12 @@
/**
* \file lite-c/src/tensor.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite/global.h"


+ 5
- 3
lite/lite-c/src/network.cpp View File

@@ -1,10 +1,12 @@
/**
* \file lite-c/src/network.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite/network.h"


+ 5
- 3
lite/lite-c/src/tensor.cpp View File

@@ -1,10 +1,12 @@
/**
* \file lite-c/src/tensor.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite/tensor.h"


+ 6
- 3
lite/pylite/megenginelite/__init__.py View File

@@ -1,8 +1,11 @@
# -*- coding: utf-8 -*-
# This file is part of MegEngine, a deep learning framework developed by
# Megvii.
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

from .base import *
from .global_setting import *


+ 6
- 3
lite/pylite/megenginelite/base.py View File

@@ -1,8 +1,11 @@
# -*- coding: utf-8 -*-
# This file is part of MegEngine, a deep learning framework developed by
# Megvii.
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

import ctypes
import glob


+ 6
- 3
lite/pylite/megenginelite/global_setting.py View File

@@ -1,8 +1,11 @@
# -*- coding: utf-8 -*-
# This file is part of MegEngine, a deep learning framework developed by
# Megvii.
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

from ctypes import *



+ 6
- 3
lite/pylite/megenginelite/network.py View File

@@ -1,8 +1,11 @@
# -*- coding: utf-8 -*-
# This file is part of MegEngine, a deep learning framework developed by
# Megvii.
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

from ctypes import *



+ 6
- 3
lite/pylite/megenginelite/struct.py View File

@@ -1,8 +1,11 @@
# -*- coding: utf-8 -*-
# This file is part of MegEngine, a deep learning framework developed by
# Megvii.
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

import logging
from ctypes import *


+ 6
- 3
lite/pylite/megenginelite/tensor.py View File

@@ -1,8 +1,11 @@
# -*- coding: utf-8 -*-
# This file is part of MegEngine, a deep learning framework developed by
# Megvii.
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

from ctypes import *



+ 6
- 4
lite/pylite/megenginelite/utils.py View File

@@ -1,9 +1,11 @@
# -*- coding: utf-8 -*-
# This file is part of MegEngine, a deep learning framework developed by
# Megvii.
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) Copyright (c) 2020-2021 Megvii Inc. All rights reserved.

# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
import threading

import numpy as np


+ 6
- 3
lite/pylite/setup.py View File

@@ -1,8 +1,11 @@
# -*- coding: utf-8 -*-
# This file is part of MegEngine, a deep learning framework developed by
# Megvii.
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

import os
import re


+ 6
- 3
lite/pylite/test/test_global.py View File

@@ -1,8 +1,11 @@
# -*- coding: utf-8 -*-
# This file is part of MegEngine, a deep learning framework developed by
# Megvii.
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

import os
import unittest


+ 6
- 3
lite/pylite/test/test_network.py View File

@@ -1,8 +1,11 @@
# -*- coding: utf-8 -*-
# This file is part of MegEngine, a deep learning framework developed by
# Megvii.
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

import os
import unittest


+ 6
- 3
lite/pylite/test/test_network_cuda.py View File

@@ -1,8 +1,11 @@
# -*- coding: utf-8 -*-
# This file is part of MegEngine, a deep learning framework developed by
# Megvii.
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

import functools
import os


+ 6
- 3
lite/pylite/test/test_tensor.py View File

@@ -1,8 +1,11 @@
# -*- coding: utf-8 -*-
# This file is part of MegEngine, a deep learning framework developed by
# Megvii.
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

import functools



+ 6
- 3
lite/pylite/test/test_utils.py View File

@@ -1,8 +1,11 @@
# -*- coding: utf-8 -*-
# This file is part of MegEngine, a deep learning framework developed by
# Megvii.
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

import functools



+ 5
- 3
lite/src/decryption/aes_decrypt.h View File

@@ -1,10 +1,12 @@
/**
* \file src/decryption/aes_decrypt.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "./mbedtls/aes.h"


+ 4
- 3
lite/src/decryption/decrypt_base.h View File

@@ -2,10 +2,11 @@
* \file src/decryption/decrypt_base.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/src/decryption/rc4/rc4_cryption_base.h View File

@@ -1,10 +1,12 @@
/**
* \file src/decryption/rc4/rc4_cryption_base.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
#pragma once



+ 5
- 3
lite/src/decryption/rc4/rc4_cryption_impl.cpp View File

@@ -1,10 +1,12 @@
/**
* \file src/decryption/rc4/rc4_cryption_impl.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "rc4_cryption_impl.h"


+ 5
- 3
lite/src/decryption/rc4/rc4_cryption_impl.h View File

@@ -1,10 +1,12 @@
/**
* \file src/decryption/rc4/rc4_cryption_impl.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
#pragma once
#include "rc4_cryption_base.h"


+ 5
- 3
lite/src/decryption/rc4_cryption.cpp View File

@@ -1,10 +1,12 @@
/**
* \file src/decryption/rc4_cryption.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "rc4_cryption.h"


+ 5
- 3
lite/src/decryption/rc4_cryption.h View File

@@ -1,10 +1,12 @@
/**
* \file src/decryption/rc4_cryption.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
#pragma once



+ 5
- 3
lite/src/function_base.h View File

@@ -1,10 +1,12 @@
/**
* \file src/function_base.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/src/global.cpp View File

@@ -1,10 +1,12 @@
/**
* \file src/global.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include <lite_build_config.h>


+ 5
- 3
lite/src/lite_build_config.h.in View File

@@ -1,10 +1,12 @@
/**
* \file lite/src/lite_build_config.h.in
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
#ifndef _HEADER_LITE_BUILD_CONFIG
#define _HEADER_LITE_BUILD_CONFIG


+ 5
- 3
lite/src/mge/algo_cache/file_cache.cpp View File

@@ -1,10 +1,12 @@
/**
* \file lite/src/mge/algo_cache/file_cache.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2020 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite_build_config.h"


+ 5
- 3
lite/src/mge/algo_cache/file_cache.h View File

@@ -1,10 +1,12 @@
/**
* \file lite/src/mge/algo_cache/file_cache.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2020 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/src/mge/algo_cache/redis_cache.cpp View File

@@ -1,10 +1,12 @@
/**
* \file lite/src/mge/algo_cache/redis_cache.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2020 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite_build_config.h"


+ 5
- 3
lite/src/mge/algo_cache/redis_cache.h View File

@@ -1,10 +1,12 @@
/**
* \file lite/src/mge/algo_cache/redis_cache.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2020 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/src/mge/common.cpp View File

@@ -1,10 +1,12 @@
/**
* \file src/mge/common.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite_build_config.h"


+ 5
- 3
lite/src/mge/common.h View File

@@ -1,10 +1,12 @@
/**
* \file src/mge/common.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/src/mge/function_dft.h View File

@@ -1,11 +1,13 @@

/**
* \file src/mge/function_dft.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/src/mge/memory_allocator.h View File

@@ -1,10 +1,12 @@
/**
* \file src/mge/memory_alloctor.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/src/mge/network_impl.cpp View File

@@ -1,10 +1,12 @@
/**
* \file src/mge/network_impl.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite_build_config.h"


+ 5
- 3
lite/src/mge/network_impl.h View File

@@ -1,10 +1,12 @@
/**
* \file src/mge/network_impl.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/src/mge/tensor_impl.cpp View File

@@ -1,10 +1,12 @@
/**
* \file inlude/mge/tensor.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite_build_config.h"


+ 5
- 3
lite/src/mge/tensor_impl.h View File

@@ -1,10 +1,12 @@
/**
* \file src/mge/tensor_impl.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/src/misc.cpp View File

@@ -1,10 +1,12 @@
/**
* \file inlude/misc.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "./misc.h"


+ 5
- 3
lite/src/misc.h View File

@@ -1,10 +1,12 @@
/**
* \file include/misc.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/src/network.cpp View File

@@ -1,10 +1,12 @@
/**
* \file src/network.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite/network.h"


+ 5
- 3
lite/src/network_impl_base.h View File

@@ -1,10 +1,12 @@
/**
* \file src/network_impl_base.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 4
- 3
lite/src/parse_info/default_parse.h View File

@@ -2,10 +2,11 @@
* \file src/parse_info/default_parse.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 4
- 3
lite/src/parse_info/parse_info_base.h View File

@@ -2,10 +2,11 @@
* \file src/parse_info/parse_info_base.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/src/parse_model/model_parser.cpp View File

@@ -1,10 +1,12 @@
/**
* \file src/model_parser.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "model_parser.h"


+ 5
- 3
lite/src/parse_model/model_parser.h View File

@@ -1,10 +1,12 @@
/**
* \file src/model_parser.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/src/tensor.cpp View File

@@ -1,10 +1,12 @@
/**
* \file src/tensor.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite/tensor.h"


+ 5
- 3
lite/src/tensor_impl_base.h View File

@@ -1,10 +1,12 @@
/**
* \file src/tensor_impl_base.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/src/type_info.h View File

@@ -1,10 +1,12 @@
/**
* \file src/type_info.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 4
- 0
lite/test/CMakeLists.txt View File

@@ -7,6 +7,10 @@ if (MGE_WITH_TEST)
if(LITE_BUILD_WITH_MGE)
# lite_test will depends megbrain interface
target_link_libraries(lite_test megbrain)
if (MGE_WITH_ROCM)
# FIXME: hip obj can not find cpp obj only through lite_static
target_link_libraries(lite_test megdnn)
endif ()
endif()

if(UNIX)


+ 5
- 3
lite/test/main.cpp View File

@@ -1,10 +1,12 @@
/**
* \file test/main.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include <gtest/gtest.h>


+ 5
- 3
lite/test/test_common.h View File

@@ -1,10 +1,12 @@
/**
* \file test/test_common.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once


+ 5
- 3
lite/test/test_misc.cpp View File

@@ -1,10 +1,12 @@
/**
* \file test/test_misc.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite_build_config.h"


+ 5
- 3
lite/test/test_network.cpp View File

@@ -1,10 +1,12 @@
/**
* \file test/test_network.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite_build_config.h"


+ 5
- 3
lite/test/test_network_c.cpp View File

@@ -1,10 +1,12 @@
/**
* \file test/test_network_c.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "../src/misc.h"


+ 5
- 3
lite/test/test_network_options.cpp View File

@@ -1,10 +1,12 @@
/**
* \file test/test_network_options.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite_build_config.h"


+ 5
- 3
lite/test/test_tensor.cpp View File

@@ -1,10 +1,12 @@
/**
* \file test/test_tensor.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite_build_config.h"


+ 5
- 3
lite/test/test_tensor_c.cpp View File

@@ -1,10 +1,12 @@
/**
* \file test/test_tensor_c.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include "lite_build_config.h"


+ 1
- 2
lite/tools/dump_model_mgb.py View File

@@ -1,8 +1,7 @@
#!/usr/bin/env mdl
# -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an


+ 5
- 4
lite/tools/pack_model/pack_model_and_info.py View File

@@ -1,10 +1,11 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# This file is part of MegEngine, a deep learning framework developed by
# Megvii.
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

import argparse
import struct


+ 5
- 3
lite/tools/rc4_encrypt.cpp View File

@@ -1,9 +1,11 @@
/** \file tools/rc4_encrypt.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* This file is part of MegEngine, a deep learning framework developed by
* Megvii.
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#include <stdio.h>


Loading…
Cancel
Save