diff --git a/ACKNOWLEDGMENTS b/ACKNOWLEDGMENTS index d3ddd3cbbcd860c829e3442b1a9a7c01e96552b5..14cf2e57747401ab91517ec618e1cbc790f3fee4 100644 --- a/ACKNOWLEDGMENTS +++ b/ACKNOWLEDGMENTS @@ -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: diff --git a/CMakeLists.txt b/CMakeLists.txt index 5506c440805e7282a9b9e6937a0e04928f8204e2..e1722a7cdf690058fe09253fec3d5048788b6ac6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/lite/README.md b/lite/README.md index 8720a1057f228b643abcd07c1cc03c0ff526cee2..853480ef477181e76eaf1407f9557e27bc3c7e4a 100755 --- a/lite/README.md +++ b/lite/README.md @@ -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 - ``` diff --git a/lite/example/example.h b/lite/example/example.h index 410ec0e610c6ed4757ada4bfc30bb81402aa300d..eaec211de50756ed5c0e377cd14a086aafc1840b 100644 --- a/lite/example/example.h +++ b/lite/example/example.h @@ -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 diff --git a/lite/example/main.cpp b/lite/example/main.cpp index 9e9400083060e11195d22055ad970c75fe384739..ca03caf41d2abd53bec236c7710eeac3511c28ce 100644 --- a/lite/example/main.cpp +++ b/lite/example/main.cpp @@ -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" diff --git a/lite/example/mge/basic.cpp b/lite/example/mge/basic.cpp index 986f1fc304f1afff9bab6d04c6f1efdffdd75c62..7300e09a857d2c122df337777b8559cff601c29f 100644 --- a/lite/example/mge/basic.cpp +++ b/lite/example/mge/basic.cpp @@ -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 diff --git a/lite/example/mge/cpu_affinity.cpp b/lite/example/mge/cpu_affinity.cpp index 0c740b53327b8e536f0e0b4eadb71b0d99cd1511..508910d4eb24288492ec492db3fc90f65df7b2c2 100644 --- a/lite/example/mge/cpu_affinity.cpp +++ b/lite/example/mge/cpu_affinity.cpp @@ -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" diff --git a/lite/example/mge/device_io.cpp b/lite/example/mge/device_io.cpp index 321bf388bd15ca377824803d8b4f9541db8780e1..3aee29490e2c4e2ad004f62813d6c6f19f370bb9 100644 --- a/lite/example/mge/device_io.cpp +++ b/lite/example/mge/device_io.cpp @@ -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 diff --git a/lite/example/mge/lite_c_interface.cpp b/lite/example/mge/lite_c_interface.cpp index 2a917877a5a213c63e9be48fd16795a60c508878..c967948025de88bcb4e314a73f40ccb83118d63a 100644 --- a/lite/example/mge/lite_c_interface.cpp +++ b/lite/example/mge/lite_c_interface.cpp @@ -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" diff --git a/lite/example/mge/network_share_weights.cpp b/lite/example/mge/network_share_weights.cpp index d2b6e741fffa9c7760453aa5650e79412cc55a57..818f09d8aba741128d2d21c394e6c556431b9bb6 100644 --- a/lite/example/mge/network_share_weights.cpp +++ b/lite/example/mge/network_share_weights.cpp @@ -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" diff --git a/lite/example/mge/reset_io.cpp b/lite/example/mge/reset_io.cpp index d95d834ad31b0303a1295eb7bd59637829c794ac..1a8143b30780a61efb0dd8c7710400bfcbc2c72e 100644 --- a/lite/example/mge/reset_io.cpp +++ b/lite/example/mge/reset_io.cpp @@ -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" diff --git a/lite/example/mge/user_allocator.cpp b/lite/example/mge/user_allocator.cpp index 2fd76e6b6bd1ff8853e3e6d8b19ab3bef42f018b..a0f78f259cbf1e7a80346454a04a711959eb424b 100644 --- a/lite/example/mge/user_allocator.cpp +++ b/lite/example/mge/user_allocator.cpp @@ -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" diff --git a/lite/example/mge/user_cryption.cpp b/lite/example/mge/user_cryption.cpp index 1b6f2f3343255d89ab1ad4fda81b70b8691c1652..88496090d1b1356eedfba2c596cfec721b77cbe3 100644 --- a/lite/example/mge/user_cryption.cpp +++ b/lite/example/mge/user_cryption.cpp @@ -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" diff --git a/lite/include/lite/common_enum_c.h b/lite/include/lite/common_enum_c.h index ed4db6c5ef6d658b98d82fa906de4859a59cc91a..361b52d2b250a410f2868a78aec401a17d93247b 100644 --- a/lite/include/lite/common_enum_c.h +++ b/lite/include/lite/common_enum_c.h @@ -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_ diff --git a/lite/include/lite/global.h b/lite/include/lite/global.h index 2737f6a38f91f41b8766b14338b4a0b0af71186e..c293e766eb6d4883a9ad79c064d5e33d130448ac 100644 --- a/lite/include/lite/global.h +++ b/lite/include/lite/global.h @@ -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 diff --git a/lite/include/lite/macro.h b/lite/include/lite/macro.h index 7f3dc91e34acc304f9c7414038c5d0baaa78dba8..9e071e434f99ed06f7df54098f0c36ca1c1f4d27 100644 --- a/lite/include/lite/macro.h +++ b/lite/include/lite/macro.h @@ -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_ diff --git a/lite/include/lite/network.h b/lite/include/lite/network.h index 2082d81489ad8cb930e551efd0232fb54ac226c4..86c505bc006d5886fb30fc6893f886564b2519d5 100644 --- a/lite/include/lite/network.h +++ b/lite/include/lite/network.h @@ -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 diff --git a/lite/include/lite/tensor.h b/lite/include/lite/tensor.h index 6e7a56526d7e8f8590aebf3b7053d51b2b0ea51b..d61dbd57173513deb7feed01d42a8b1cfc324ced 100644 --- a/lite/include/lite/tensor.h +++ b/lite/include/lite/tensor.h @@ -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 diff --git a/lite/lite-c/include/lite-c/global_c.h b/lite/lite-c/include/lite-c/global_c.h index 2b19c4e4a957286a147068d10c3ff98761d7b5a0..518d86ccf700a874bd3b1cf2e39290d7587a2420 100644 --- a/lite/lite-c/include/lite-c/global_c.h +++ b/lite/lite-c/include/lite-c/global_c.h @@ -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_ diff --git a/lite/lite-c/include/lite-c/network_c.h b/lite/lite-c/include/lite-c/network_c.h index 84b13502f0f24f0ce0859cedc106e10cff5efb5c..b7fd960d6896acee329fdbadd52047ce0c5b82dd 100644 --- a/lite/lite-c/include/lite-c/network_c.h +++ b/lite/lite-c/include/lite-c/network_c.h @@ -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_ diff --git a/lite/lite-c/include/lite-c/tensor_c.h b/lite/lite-c/include/lite-c/tensor_c.h index 96316a9a9f526a1c138e4a7aea263ae197a74b83..ede4e57f693a75eecbbe63fd0b44c025d5564979 100644 --- a/lite/lite-c/include/lite-c/tensor_c.h +++ b/lite/lite-c/include/lite-c/tensor_c.h @@ -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_ diff --git a/lite/lite-c/src/common.h b/lite/lite-c/src/common.h index 47208c386fa12c08d55d6737fe62e92fc3f1d16f..1f4c559a8b72ecfdd5e5c404b8b7df0fcde41f7a 100644 --- a/lite/lite-c/src/common.h +++ b/lite/lite-c/src/common.h @@ -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_ diff --git a/lite/lite-c/src/global.cpp b/lite/lite-c/src/global.cpp index 51145b784a9d99663a5d5147bb18e2f89c010c2a..33775d45179b726993e7d133ac213b789af85591 100644 --- a/lite/lite-c/src/global.cpp +++ b/lite/lite-c/src/global.cpp @@ -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" diff --git a/lite/lite-c/src/network.cpp b/lite/lite-c/src/network.cpp index 409924287909058d399701b360377a4ab3ea2e23..dd89f398ef4193726e62ebd393b3be79d01c26ac 100644 --- a/lite/lite-c/src/network.cpp +++ b/lite/lite-c/src/network.cpp @@ -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" diff --git a/lite/lite-c/src/tensor.cpp b/lite/lite-c/src/tensor.cpp index 6ed8499398b8f1cbdebe252d33690401402201e2..14fd7ef59eef5cb3621f7225de77ef3c95c745cb 100644 --- a/lite/lite-c/src/tensor.cpp +++ b/lite/lite-c/src/tensor.cpp @@ -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" diff --git a/lite/pylite/megenginelite/__init__.py b/lite/pylite/megenginelite/__init__.py index c9e52af7b0737de25971d23de8b5e7c8a46c18c1..95c226338f09dc375cca0687ae1b17b3525d1028 100644 --- a/lite/pylite/megenginelite/__init__.py +++ b/lite/pylite/megenginelite/__init__.py @@ -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 * diff --git a/lite/pylite/megenginelite/base.py b/lite/pylite/megenginelite/base.py index f29718b464e38d11acb52a9359967b6ceea1e094..9f8939b561bd7546d66e472d1bba122843ec5353 100644 --- a/lite/pylite/megenginelite/base.py +++ b/lite/pylite/megenginelite/base.py @@ -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 diff --git a/lite/pylite/megenginelite/global_setting.py b/lite/pylite/megenginelite/global_setting.py index fe04b3014f53c4af758cd761afc6685d10e4c4b6..c39cdf62a9363520c9943fce0855293f074cc5ed 100644 --- a/lite/pylite/megenginelite/global_setting.py +++ b/lite/pylite/megenginelite/global_setting.py @@ -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 * diff --git a/lite/pylite/megenginelite/network.py b/lite/pylite/megenginelite/network.py index 856dc757c714117647fdb5476c6b24177789ae53..6808621d7a3d41c0cca3f6c282ed7fd51091b9c6 100644 --- a/lite/pylite/megenginelite/network.py +++ b/lite/pylite/megenginelite/network.py @@ -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 * diff --git a/lite/pylite/megenginelite/struct.py b/lite/pylite/megenginelite/struct.py index 3ae99fe3f0106a796391b440cb5b760912470ff1..6c1e55b014b0ef78674b4c1f8868cd91dc25c253 100644 --- a/lite/pylite/megenginelite/struct.py +++ b/lite/pylite/megenginelite/struct.py @@ -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 * diff --git a/lite/pylite/megenginelite/tensor.py b/lite/pylite/megenginelite/tensor.py index 0f2539ce508d5c95c75fad8ca1fa4a03d24bb9cf..256f2ee2e3822561805f074ec7e9eb2d7ed9751c 100644 --- a/lite/pylite/megenginelite/tensor.py +++ b/lite/pylite/megenginelite/tensor.py @@ -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 * diff --git a/lite/pylite/megenginelite/utils.py b/lite/pylite/megenginelite/utils.py index aec8188a569d8afb274f5e65b4a8313467d4239f..7b6110595608dfbe24cb0c21acc467c2720069e7 100644 --- a/lite/pylite/megenginelite/utils.py +++ b/lite/pylite/megenginelite/utils.py @@ -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 diff --git a/lite/pylite/setup.py b/lite/pylite/setup.py index 436c81dadc4a221f630eb029e15a9cab7682fd8f..7f549c42f8ef04bdef0b52c9fa98a09c00ce9732 100644 --- a/lite/pylite/setup.py +++ b/lite/pylite/setup.py @@ -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 diff --git a/lite/pylite/test/test_global.py b/lite/pylite/test/test_global.py index 0cd4c85a08c6b768e23e08fd3f2236abfb8daa17..3fc35dd94c842bc7e71d451455a71440731d35bf 100644 --- a/lite/pylite/test/test_global.py +++ b/lite/pylite/test/test_global.py @@ -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 diff --git a/lite/pylite/test/test_network.py b/lite/pylite/test/test_network.py index 7e3a20283cb92bae56825a4ca0ae01fcd0355bdd..44b3ae7cd379dd652029fbd335328c5dd0448591 100644 --- a/lite/pylite/test/test_network.py +++ b/lite/pylite/test/test_network.py @@ -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 diff --git a/lite/pylite/test/test_network_cuda.py b/lite/pylite/test/test_network_cuda.py index f7fe9e10129fb835bc03ab91cc395ff69ab41e9e..e92eab2f9e8bb11039285a91cb519e5a574adea9 100644 --- a/lite/pylite/test/test_network_cuda.py +++ b/lite/pylite/test/test_network_cuda.py @@ -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 diff --git a/lite/pylite/test/test_tensor.py b/lite/pylite/test/test_tensor.py index 61d6575b074004a7fbff8e53b43715d1e5dc1b49..6232d7f874b5c8a56e91334a82cea8cf036b85a4 100644 --- a/lite/pylite/test/test_tensor.py +++ b/lite/pylite/test/test_tensor.py @@ -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 diff --git a/lite/pylite/test/test_utils.py b/lite/pylite/test/test_utils.py index 7435825207c5ec723c7179b9b26f095bd215fe7b..893cf03eea67cb6171e7ffa4548926505fa8bc2d 100644 --- a/lite/pylite/test/test_utils.py +++ b/lite/pylite/test/test_utils.py @@ -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 diff --git a/lite/src/decryption/aes_decrypt.h b/lite/src/decryption/aes_decrypt.h index 5f9b134bead76580cd18f6841025df6759b8fa65..643d53fd5c45ba7653ce1dfd589af52898afe86f 100644 --- a/lite/src/decryption/aes_decrypt.h +++ b/lite/src/decryption/aes_decrypt.h @@ -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" diff --git a/lite/src/decryption/decrypt_base.h b/lite/src/decryption/decrypt_base.h index d3df19f900e9d8d49b876df88f6c3253160fcc0f..f99541374c61cd4b1aa07d24201f1751645f0ec1 100644 --- a/lite/src/decryption/decrypt_base.h +++ b/lite/src/decryption/decrypt_base.h @@ -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 diff --git a/lite/src/decryption/rc4/rc4_cryption_base.h b/lite/src/decryption/rc4/rc4_cryption_base.h index e811acba59a8bebd58dd9f492c714ad858375692..d8cb1cb4e2434fbd05bf183310df72d18e6717de 100644 --- a/lite/src/decryption/rc4/rc4_cryption_base.h +++ b/lite/src/decryption/rc4/rc4_cryption_base.h @@ -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 diff --git a/lite/src/decryption/rc4/rc4_cryption_impl.cpp b/lite/src/decryption/rc4/rc4_cryption_impl.cpp index ca477bcfbce0e922788a44820d6e7460c239a8a8..08a24ba99f0ccaadacdbb7856b59bf3904d9207e 100644 --- a/lite/src/decryption/rc4/rc4_cryption_impl.cpp +++ b/lite/src/decryption/rc4/rc4_cryption_impl.cpp @@ -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" diff --git a/lite/src/decryption/rc4/rc4_cryption_impl.h b/lite/src/decryption/rc4/rc4_cryption_impl.h index b5c88e836729a5e27662a0209c9d0163310bfede..dcee322b7b66755dca284528d461192b8f88a411 100644 --- a/lite/src/decryption/rc4/rc4_cryption_impl.h +++ b/lite/src/decryption/rc4/rc4_cryption_impl.h @@ -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" diff --git a/lite/src/decryption/rc4_cryption.cpp b/lite/src/decryption/rc4_cryption.cpp index d8105deec04b40350f5b9b356fb996a8bdcfaf53..dfc5c2f1124b5adeafc68c0b6909211daa37fa38 100644 --- a/lite/src/decryption/rc4_cryption.cpp +++ b/lite/src/decryption/rc4_cryption.cpp @@ -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" diff --git a/lite/src/decryption/rc4_cryption.h b/lite/src/decryption/rc4_cryption.h index 1c5c9f89aded18559ecef610cf4cb31650ca604c..5c581034640c83d2654c4d82839781609d0cdda6 100644 --- a/lite/src/decryption/rc4_cryption.h +++ b/lite/src/decryption/rc4_cryption.h @@ -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 diff --git a/lite/src/function_base.h b/lite/src/function_base.h index 42c1abe8a0e5a11dd9330be3141e839cda4768ba..57cb3a3a4dd9d6237d293e1b54ef0756cc1c1512 100644 --- a/lite/src/function_base.h +++ b/lite/src/function_base.h @@ -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 diff --git a/lite/src/global.cpp b/lite/src/global.cpp index 378127e2fdb4e0e3f72376b6b5aa40eb0bba6e4b..5235d17b02f7664e40cccd3705fd4aa22e3a3e5a 100644 --- a/lite/src/global.cpp +++ b/lite/src/global.cpp @@ -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 diff --git a/lite/src/lite_build_config.h.in b/lite/src/lite_build_config.h.in index e1607948da80840360da040e0de8d68b203dfa98..ffa547d938c32da821c5cee631caa58f9fd28fc9 100644 --- a/lite/src/lite_build_config.h.in +++ b/lite/src/lite_build_config.h.in @@ -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 diff --git a/lite/src/mge/algo_cache/file_cache.cpp b/lite/src/mge/algo_cache/file_cache.cpp index 7d96d4b0bcd91f042d8e699227150c95b33da0d4..87e73c1f0efc56bbe7c926955f06241af8162a99 100644 --- a/lite/src/mge/algo_cache/file_cache.cpp +++ b/lite/src/mge/algo_cache/file_cache.cpp @@ -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" diff --git a/lite/src/mge/algo_cache/file_cache.h b/lite/src/mge/algo_cache/file_cache.h index 340780ec8009cc595abee184296fe2a4cef21716..b7d856640b1105e3bce420682348582dcb12ecbf 100644 --- a/lite/src/mge/algo_cache/file_cache.h +++ b/lite/src/mge/algo_cache/file_cache.h @@ -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 diff --git a/lite/src/mge/algo_cache/redis_cache.cpp b/lite/src/mge/algo_cache/redis_cache.cpp index ecf0ccbcb1604f98e61854cd4d827cf3037a34e0..dbec3a970ddd9d340e4413adf2e3c09a99246f9a 100644 --- a/lite/src/mge/algo_cache/redis_cache.cpp +++ b/lite/src/mge/algo_cache/redis_cache.cpp @@ -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" diff --git a/lite/src/mge/algo_cache/redis_cache.h b/lite/src/mge/algo_cache/redis_cache.h index d0bd0032f629c8ad4872dd3fec71b5f61124391b..7193a5fb892336a56f298a6e9f352a306b24b9ad 100644 --- a/lite/src/mge/algo_cache/redis_cache.h +++ b/lite/src/mge/algo_cache/redis_cache.h @@ -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 diff --git a/lite/src/mge/common.cpp b/lite/src/mge/common.cpp index 08fdcaa756be423811ef77237c19d6c78517b980..12e9ad1aa93bf0ae1f2eec9f3dca101fa932a076 100644 --- a/lite/src/mge/common.cpp +++ b/lite/src/mge/common.cpp @@ -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" diff --git a/lite/src/mge/common.h b/lite/src/mge/common.h index 4d4066d973908093c0acfbe1d7f1a73749c59406..cbbb0e4a8f142472a65c19b88aafdfe5ae318afb 100644 --- a/lite/src/mge/common.h +++ b/lite/src/mge/common.h @@ -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 diff --git a/lite/src/mge/function_dft.h b/lite/src/mge/function_dft.h index a997a3f357e6a330cb2be7b584cd651811ef925f..e3e00a21c13abe9c4e99fce46a6f0347f14541f0 100644 --- a/lite/src/mge/function_dft.h +++ b/lite/src/mge/function_dft.h @@ -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 diff --git a/lite/src/mge/memory_allocator.h b/lite/src/mge/memory_allocator.h index d321fd9fbeeab482403a40c04b5f8e2101159232..ece97d0b7e3e9b5d08c6564ec56a52fea6d7db63 100644 --- a/lite/src/mge/memory_allocator.h +++ b/lite/src/mge/memory_allocator.h @@ -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 diff --git a/lite/src/mge/network_impl.cpp b/lite/src/mge/network_impl.cpp index ae176632edcccb48e566f219d62efcb165703e05..93eee7b7a9713be634f74d5bcbdd343b2f9481f5 100644 --- a/lite/src/mge/network_impl.cpp +++ b/lite/src/mge/network_impl.cpp @@ -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" diff --git a/lite/src/mge/network_impl.h b/lite/src/mge/network_impl.h index fd466da82d4360e3b65792a1f08762223c64e208..152752d70443a9fa89930257b322c5296dcf9f87 100644 --- a/lite/src/mge/network_impl.h +++ b/lite/src/mge/network_impl.h @@ -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 diff --git a/lite/src/mge/tensor_impl.cpp b/lite/src/mge/tensor_impl.cpp index 1c699a3d49b248d8ff9c4819014f3f16a7e46c75..8ce23528d0b0c858bc2c17701fb061dc4680cb84 100644 --- a/lite/src/mge/tensor_impl.cpp +++ b/lite/src/mge/tensor_impl.cpp @@ -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" diff --git a/lite/src/mge/tensor_impl.h b/lite/src/mge/tensor_impl.h index 74991d41c670210eed89da2ab251e682efec50ad..d4ea8dc11b95867a32eb1c710f37abae0b44f061 100644 --- a/lite/src/mge/tensor_impl.h +++ b/lite/src/mge/tensor_impl.h @@ -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 diff --git a/lite/src/misc.cpp b/lite/src/misc.cpp index c44d024179fd8f6b9c08ad14ac89dfd7a4c276a9..94132dbbcc092e7e968942a4677345ac17e66de1 100644 --- a/lite/src/misc.cpp +++ b/lite/src/misc.cpp @@ -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" diff --git a/lite/src/misc.h b/lite/src/misc.h index c6799feda0c6974a69b8703d84f99e5828ddb92b..e6fe2e8f19b527c5c2568feb6ce9765a8c8e9e44 100644 --- a/lite/src/misc.h +++ b/lite/src/misc.h @@ -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 diff --git a/lite/src/network.cpp b/lite/src/network.cpp index 8f779d8792c5d761548468d117d07418f1e4b5f9..7874c0dcdadd575e10fb7906ff1c7c7202852caf 100644 --- a/lite/src/network.cpp +++ b/lite/src/network.cpp @@ -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" diff --git a/lite/src/network_impl_base.h b/lite/src/network_impl_base.h index c90af5b5d316482f1704764b6901983ab69945b2..e930a757d04d29c9476eee816f77206d3832ea39 100644 --- a/lite/src/network_impl_base.h +++ b/lite/src/network_impl_base.h @@ -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 diff --git a/lite/src/parse_info/default_parse.h b/lite/src/parse_info/default_parse.h index 921b6354d566e6cdc4813cf63244dc2af7bd5c41..a2f7a3ff4730425b3d9ff0e3bb421a4dd05c603e 100644 --- a/lite/src/parse_info/default_parse.h +++ b/lite/src/parse_info/default_parse.h @@ -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 diff --git a/lite/src/parse_info/parse_info_base.h b/lite/src/parse_info/parse_info_base.h index d54ed05410fc06d605e43ec1e049ec7fcbfa02f0..8c97334e995683dfab6dcd2a1bfa7b46b7ac0579 100644 --- a/lite/src/parse_info/parse_info_base.h +++ b/lite/src/parse_info/parse_info_base.h @@ -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 diff --git a/lite/src/parse_model/model_parser.cpp b/lite/src/parse_model/model_parser.cpp index de45f48409f162e5920ada98f8077c804e9e6141..afd81486cc2d98f823c2ac4b53684402aeb3b9dd 100644 --- a/lite/src/parse_model/model_parser.cpp +++ b/lite/src/parse_model/model_parser.cpp @@ -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" diff --git a/lite/src/parse_model/model_parser.h b/lite/src/parse_model/model_parser.h index d6edb8f0eefa12a7b32d0687f601d04483e46647..b1e26bf07ee203ea6487fcf25242e496ae2d1763 100644 --- a/lite/src/parse_model/model_parser.h +++ b/lite/src/parse_model/model_parser.h @@ -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 diff --git a/lite/src/tensor.cpp b/lite/src/tensor.cpp index 6bda653f646ec5b95e5b5b80cc94a439248fa2cf..698f124e1f1710b3521641ab50d6834489bab281 100644 --- a/lite/src/tensor.cpp +++ b/lite/src/tensor.cpp @@ -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" diff --git a/lite/src/tensor_impl_base.h b/lite/src/tensor_impl_base.h index a7f1bf0dbca937b248a03859bde64061826ee3d0..d1075bef3d33f3af6a6841011b32c77838e997ae 100644 --- a/lite/src/tensor_impl_base.h +++ b/lite/src/tensor_impl_base.h @@ -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 diff --git a/lite/src/type_info.h b/lite/src/type_info.h index 28785beade407b000f9cad298c9d485c536b0cd5..ed1374d47202e884cf4d81d0ca4fd52a314651f8 100644 --- a/lite/src/type_info.h +++ b/lite/src/type_info.h @@ -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 diff --git a/lite/test/CMakeLists.txt b/lite/test/CMakeLists.txt index 5c5e9d13343ef6a097f814b86ee9dd6c4ad96714..1bf6c8360764f63eaf9aaec44215a9010d11584f 100644 --- a/lite/test/CMakeLists.txt +++ b/lite/test/CMakeLists.txt @@ -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) diff --git a/lite/test/main.cpp b/lite/test/main.cpp index af75a6c4d1f167df27fed7ace1a658a44414c87a..3eb9478b63f0f0fee7abe06eec3f547f5bc5b031 100644 --- a/lite/test/main.cpp +++ b/lite/test/main.cpp @@ -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 diff --git a/lite/test/test_common.h b/lite/test/test_common.h index dae6fb296b5f5a864c2a6bec1dcc5758c084d17d..b85c0fdc31d685734c934c2afde704b7a5e5793e 100644 --- a/lite/test/test_common.h +++ b/lite/test/test_common.h @@ -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 diff --git a/lite/test/test_misc.cpp b/lite/test/test_misc.cpp index d2a0a40f2f1efc0798d45e9cb1827a08dd50eb90..c27467f0f8d76f1648bacd31ddea18b5ddeb7e91 100644 --- a/lite/test/test_misc.cpp +++ b/lite/test/test_misc.cpp @@ -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" diff --git a/lite/test/test_network.cpp b/lite/test/test_network.cpp index 4770965a60a2973b8372a59537d54c578e7dbb84..685c968bc07a03f202c5fcd01801db8a804c65d2 100644 --- a/lite/test/test_network.cpp +++ b/lite/test/test_network.cpp @@ -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" diff --git a/lite/test/test_network_c.cpp b/lite/test/test_network_c.cpp index 419bc6c7a6e9a7c115fbf27a6f10ae00dab36ba5..243dd8a1ad086a3a358285379c19b8b248f39a9a 100644 --- a/lite/test/test_network_c.cpp +++ b/lite/test/test_network_c.cpp @@ -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" diff --git a/lite/test/test_network_options.cpp b/lite/test/test_network_options.cpp index 0ff344ff2254f587ec50cecf3e130bc84ce8bfba..bec79c74a6c17e400d407f5b0b138b3be80e1e44 100644 --- a/lite/test/test_network_options.cpp +++ b/lite/test/test_network_options.cpp @@ -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" diff --git a/lite/test/test_tensor.cpp b/lite/test/test_tensor.cpp index b5ce61b0e986be3deb1cc3ed12d18ec2c95a46ce..7eb760e544bf27af156756471400f3c42bf5e74b 100644 --- a/lite/test/test_tensor.cpp +++ b/lite/test/test_tensor.cpp @@ -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" diff --git a/lite/test/test_tensor_c.cpp b/lite/test/test_tensor_c.cpp index 2c206043516ff36d38730451e2b5a989d0989d66..c6ccf093e5f37d213e07beb924a38055dd700bc5 100644 --- a/lite/test/test_tensor_c.cpp +++ b/lite/test/test_tensor_c.cpp @@ -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" diff --git a/lite/tools/dump_model_mgb.py b/lite/tools/dump_model_mgb.py index 0f34d1b8c4dac9f14fbb46d3862720ad480a7e6b..9ef3f71241ff1904e8e684649a8d270341ae88d4 100755 --- a/lite/tools/dump_model_mgb.py +++ b/lite/tools/dump_model_mgb.py @@ -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 diff --git a/lite/tools/pack_model/pack_model_and_info.py b/lite/tools/pack_model/pack_model_and_info.py index 06378f05f06a0491c98e6111a787920e47e96930..69b69785504918fe10523f8c98763d5b0110c8ed 100644 --- a/lite/tools/pack_model/pack_model_and_info.py +++ b/lite/tools/pack_model/pack_model_and_info.py @@ -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 diff --git a/lite/tools/rc4_encrypt.cpp b/lite/tools/rc4_encrypt.cpp index 75d3ff9c9ffa03bb4890e5d9acccb38e5b448207..1ffa6b9a3aae0fd11d3bd13967cefb34373d54d8 100644 --- a/lite/tools/rc4_encrypt.cpp +++ b/lite/tools/rc4_encrypt.cpp @@ -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