From f971982829ac96bbbe09a643cc7733a0ed9eaa72 Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Wed, 4 Aug 2021 20:00:37 +0800 Subject: [PATCH] feat(lite): add header licence GitOrigin-RevId: bcd6860e8c8e8cdaaaeae5340284650547fb6a4b --- ACKNOWLEDGMENTS | 3 + CMakeLists.txt | 5 ++ lite/README.md | 85 +-------------------------- lite/example/example.h | 8 ++- lite/example/main.cpp | 8 ++- lite/example/mge/basic.cpp | 8 ++- lite/example/mge/cpu_affinity.cpp | 8 ++- lite/example/mge/device_io.cpp | 8 ++- lite/example/mge/lite_c_interface.cpp | 8 ++- lite/example/mge/network_share_weights.cpp | 8 ++- lite/example/mge/reset_io.cpp | 8 ++- lite/example/mge/user_allocator.cpp | 8 ++- lite/example/mge/user_cryption.cpp | 8 ++- lite/include/lite/common_enum_c.h | 8 ++- lite/include/lite/global.h | 8 ++- lite/include/lite/macro.h | 8 ++- lite/include/lite/network.h | 8 ++- lite/include/lite/tensor.h | 8 ++- lite/lite-c/include/lite-c/global_c.h | 8 ++- lite/lite-c/include/lite-c/network_c.h | 8 ++- lite/lite-c/include/lite-c/tensor_c.h | 8 ++- lite/lite-c/src/common.h | 8 ++- lite/lite-c/src/global.cpp | 8 ++- lite/lite-c/src/network.cpp | 8 ++- lite/lite-c/src/tensor.cpp | 8 ++- lite/pylite/megenginelite/__init__.py | 9 ++- lite/pylite/megenginelite/base.py | 9 ++- lite/pylite/megenginelite/global_setting.py | 9 ++- lite/pylite/megenginelite/network.py | 9 ++- lite/pylite/megenginelite/struct.py | 9 ++- lite/pylite/megenginelite/tensor.py | 9 ++- lite/pylite/megenginelite/utils.py | 10 ++-- lite/pylite/setup.py | 9 ++- lite/pylite/test/test_global.py | 9 ++- lite/pylite/test/test_network.py | 9 ++- lite/pylite/test/test_network_cuda.py | 9 ++- lite/pylite/test/test_tensor.py | 9 ++- lite/pylite/test/test_utils.py | 9 ++- lite/src/decryption/aes_decrypt.h | 8 ++- lite/src/decryption/decrypt_base.h | 7 ++- lite/src/decryption/rc4/rc4_cryption_base.h | 8 ++- lite/src/decryption/rc4/rc4_cryption_impl.cpp | 8 ++- lite/src/decryption/rc4/rc4_cryption_impl.h | 8 ++- lite/src/decryption/rc4_cryption.cpp | 8 ++- lite/src/decryption/rc4_cryption.h | 8 ++- lite/src/function_base.h | 8 ++- lite/src/global.cpp | 8 ++- lite/src/lite_build_config.h.in | 8 ++- lite/src/mge/algo_cache/file_cache.cpp | 8 ++- lite/src/mge/algo_cache/file_cache.h | 8 ++- lite/src/mge/algo_cache/redis_cache.cpp | 8 ++- lite/src/mge/algo_cache/redis_cache.h | 8 ++- lite/src/mge/common.cpp | 8 ++- lite/src/mge/common.h | 8 ++- lite/src/mge/function_dft.h | 8 ++- lite/src/mge/memory_allocator.h | 8 ++- lite/src/mge/network_impl.cpp | 8 ++- lite/src/mge/network_impl.h | 8 ++- lite/src/mge/tensor_impl.cpp | 8 ++- lite/src/mge/tensor_impl.h | 8 ++- lite/src/misc.cpp | 8 ++- lite/src/misc.h | 8 ++- lite/src/network.cpp | 8 ++- lite/src/network_impl_base.h | 8 ++- lite/src/parse_info/default_parse.h | 7 ++- lite/src/parse_info/parse_info_base.h | 7 ++- lite/src/parse_model/model_parser.cpp | 8 ++- lite/src/parse_model/model_parser.h | 8 ++- lite/src/tensor.cpp | 8 ++- lite/src/tensor_impl_base.h | 8 ++- lite/src/type_info.h | 8 ++- lite/test/CMakeLists.txt | 4 ++ lite/test/main.cpp | 8 ++- lite/test/test_common.h | 8 ++- lite/test/test_misc.cpp | 8 ++- lite/test/test_network.cpp | 8 ++- lite/test/test_network_c.cpp | 8 ++- lite/test/test_network_options.cpp | 8 ++- lite/test/test_tensor.cpp | 8 ++- lite/test/test_tensor_c.cpp | 8 ++- lite/tools/dump_model_mgb.py | 3 +- lite/tools/pack_model/pack_model_and_info.py | 9 +-- lite/tools/rc4_encrypt.cpp | 8 ++- 83 files changed, 414 insertions(+), 322 deletions(-) diff --git a/ACKNOWLEDGMENTS b/ACKNOWLEDGMENTS index d3ddd3cb..14cf2e57 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 5506c440..e1722a7c 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 8720a105..853480ef 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 410ec0e6..eaec211d 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 9e940008..ca03caf4 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 986f1fc3..7300e09a 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 0c740b53..508910d4 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 321bf388..3aee2949 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 2a917877..c9679480 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 d2b6e741..818f09d8 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 d95d834a..1a8143b3 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 2fd76e6b..a0f78f25 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 1b6f2f33..88496090 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 ed4db6c5..361b52d2 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 2737f6a3..c293e766 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 7f3dc91e..9e071e43 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 2082d814..86c505bc 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 6e7a5652..d61dbd57 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 2b19c4e4..518d86cc 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 84b13502..b7fd960d 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 96316a9a..ede4e57f 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 47208c38..1f4c559a 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 51145b78..33775d45 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 40992428..dd89f398 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 6ed84993..14fd7ef5 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 c9e52af7..95c22633 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 f29718b4..9f8939b5 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 fe04b301..c39cdf62 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 856dc757..6808621d 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 3ae99fe3..6c1e55b0 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 0f2539ce..256f2ee2 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 aec8188a..7b611059 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 436c81da..7f549c42 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 0cd4c85a..3fc35dd9 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 7e3a2028..44b3ae7c 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 f7fe9e10..e92eab2f 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 61d6575b..6232d7f8 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 74358252..893cf03e 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 5f9b134b..643d53fd 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 d3df19f9..f9954137 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 e811acba..d8cb1cb4 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 ca477bcf..08a24ba9 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 b5c88e83..dcee322b 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 d8105dee..dfc5c2f1 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 1c5c9f89..5c581034 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 42c1abe8..57cb3a3a 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 378127e2..5235d17b 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 e1607948..ffa547d9 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 7d96d4b0..87e73c1f 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 340780ec..b7d85664 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 ecf0ccbc..dbec3a97 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 d0bd0032..7193a5fb 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 08fdcaa7..12e9ad1a 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 4d4066d9..cbbb0e4a 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 a997a3f3..e3e00a21 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 d321fd9f..ece97d0b 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 ae176632..93eee7b7 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 fd466da8..152752d7 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 1c699a3d..8ce23528 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 74991d41..d4ea8dc1 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 c44d0241..94132dbb 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 c6799fed..e6fe2e8f 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 8f779d87..7874c0dc 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 c90af5b5..e930a757 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 921b6354..a2f7a3ff 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 d54ed054..8c97334e 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 de45f484..afd81486 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 d6edb8f0..b1e26bf0 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 6bda653f..698f124e 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 a7f1bf0d..d1075bef 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 28785bea..ed1374d4 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 5c5e9d13..1bf6c836 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 af75a6c4..3eb9478b 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 dae6fb29..b85c0fdc 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 d2a0a40f..c27467f0 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 4770965a..685c968b 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 419bc6c7..243dd8a1 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 0ff344ff..bec79c74 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 b5ce61b0..7eb760e5 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 2c206043..c6ccf093 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 0f34d1b8..9ef3f712 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 06378f05..69b69785 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 75d3ff9c..1ffa6b9a 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