From a660028d0673d951340bfc9e365aaee72364c798 Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Tue, 21 Sep 2021 00:15:45 +0000 Subject: [PATCH 01/18] Remove ASF2.0 license and properly list under 3-clause BSD files in LICENSE for np_einsum files. --- LICENSE | 6 +++--- src/operator/numpy/np_einsum_op-inl.h | 19 ------------------- src/operator/numpy/np_einsum_op.cc | 19 ------------------- src/operator/numpy/np_einsum_path_op-inl.h | 19 ------------------- 4 files changed, 3 insertions(+), 60 deletions(-) diff --git a/LICENSE b/LICENSE index 9b94e8ebeffc..8ff9d722b7e3 100644 --- a/LICENSE +++ b/LICENSE @@ -268,6 +268,9 @@ cmake/upstream/FindCUDAToolkit.cmake cmake/upstream/select_compute_arch.cmake src/operator/contrib/erfinv-inl.h + src/operator/numpy/np_einsum_op-inl.h + src/operator/numpy/np_einsum_path_op-inl.h + src/operator/numpy/np_einsum_op.cc ======================================================================================= 2-clause BSD license @@ -311,9 +314,6 @@ python/mxnet/onnx/mx2onnx/_export_onnx.py python/mxnet/onnx/mx2onnx/_op_translations/_op_translations_opset12.py python/mxnet/onnx/mx2onnx/_op_translations/_op_translations_opset13.py - src/operator/numpy/np_einsum_op-inl.h - src/operator/numpy/np_einsum_path_op-inl.h - src/operator/numpy/np_einsum_op.cc ======================================================================================= Apache-2.0 license + MIT License diff --git a/src/operator/numpy/np_einsum_op-inl.h b/src/operator/numpy/np_einsum_op-inl.h index fe8f516101e1..54daccfd0e47 100644 --- a/src/operator/numpy/np_einsum_op-inl.h +++ b/src/operator/numpy/np_einsum_op-inl.h @@ -1,22 +1,3 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - /* * Copyright (c) 2005-2019, NumPy Developers. * diff --git a/src/operator/numpy/np_einsum_op.cc b/src/operator/numpy/np_einsum_op.cc index 522780f5f3ad..e297b24d8c9c 100644 --- a/src/operator/numpy/np_einsum_op.cc +++ b/src/operator/numpy/np_einsum_op.cc @@ -1,22 +1,3 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - /* * Copyright (c) 2005-2019, NumPy Developers. * All rights reserved. diff --git a/src/operator/numpy/np_einsum_path_op-inl.h b/src/operator/numpy/np_einsum_path_op-inl.h index 5f6f11adbb57..7ba2b996c440 100644 --- a/src/operator/numpy/np_einsum_path_op-inl.h +++ b/src/operator/numpy/np_einsum_path_op-inl.h @@ -1,22 +1,3 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - /* * Copyright (c) 2005-2019, NumPy Developers. * All rights reserved. From d54ac6f93bf365548ddcfd064d794f0cd3ad990c Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Mon, 20 Sep 2021 19:28:15 -0700 Subject: [PATCH 02/18] Fix license category for deformable_convolution files. --- LICENSE | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index 8ff9d722b7e3..377912d62d52 100644 --- a/LICENSE +++ b/LICENSE @@ -234,6 +234,9 @@ src/operator/special_functions-inl.h Cephes Library Functions (Copy of the License available at top of current file) 3rdparty/mkldnn/doc/assets/mathjax (Copy of the License available at top of current file) 3rdparty/tvm/3rdparty/bfloat16/bfloat16.cc (Copy of the License available at top of current file) + src/operator/contrib/deformable_convolution-inl.h + src/operator/contrib/deformable_convolution.cc + src/operator/contrib/deformable_convolution.cu ======================================================================================= MIT license @@ -322,9 +325,6 @@ 3rdparty/onnx-tensorrt/third_party/onnx/tools/protoc-gen-mypy.py (Copy of the referenced AL2 License available at top of current file) src/operator/nn/layer_norm.cc (function LayerNormCPUKernel is adapated from MIT-licensed code) (Source repository for below deformable conv operators - https://github.com/msracver/Deformable-ConvNets/tree/master/DCNv2_op) - src/operator/contrib/deformable_convolution-inl.h - src/operator/contrib/deformable_convolution.cc - src/operator/contrib/deformable_convolution.cu ======================================================================================= Apache-2.0 license + Boost Software License, Version 1.0 From d46fabc3acc913a7714349297abff198da12c77b Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Tue, 21 Sep 2021 02:30:38 +0000 Subject: [PATCH 03/18] Update list of Apache-2.0 licensed files. --- LICENSE | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LICENSE b/LICENSE index 377912d62d52..8645bed5d3c1 100644 --- a/LICENSE +++ b/LICENSE @@ -237,6 +237,8 @@ src/operator/contrib/deformable_convolution-inl.h src/operator/contrib/deformable_convolution.cc src/operator/contrib/deformable_convolution.cu + src/operator/contrib/deformable_psroi_pooling.cc + src/operator/contrib/deformable_psroi_pooling.cu ======================================================================================= MIT license From 57a3df01f7256daedae53078cb1e4223c4fbd88e Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Tue, 21 Sep 2021 03:16:19 +0000 Subject: [PATCH 04/18] Add files to LICENSE that fall under Apache 2.0 license. --- LICENSE | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/LICENSE b/LICENSE index 8645bed5d3c1..dbb50d834498 100644 --- a/LICENSE +++ b/LICENSE @@ -237,8 +237,21 @@ src/operator/contrib/deformable_convolution-inl.h src/operator/contrib/deformable_convolution.cc src/operator/contrib/deformable_convolution.cu + src/operator/contrib/deformable_psroi_pooling-inl.h src/operator/contrib/deformable_psroi_pooling.cc src/operator/contrib/deformable_psroi_pooling.cu + src/operator/contrib/krprod.cc + src/operator/contrib/multi_proposal-inl.h + src/operator/contrib/multi_proposal.cc + src/operator/contrib/multi_proposal.cu + src/operator/contrib/psroi_pooling.cc + src/operator/contrib/psroi_pooling.cu + tests/python/unittest/test_contrib_text.py + src/operator/nn/mkldnn/mkldnn_base-inl.h + src/operator/subgraph/tensorrt/nnvm_to_onnx-inl.h + src/operator/subgraph/tensorrt/onnx_to_tensorrt.h + src/operator/subgraph/tensorrt/tensorrt-inl.h + src/operator/subgraph/tensorrt/tensorrt_int8_calibrator.h ======================================================================================= MIT license From 6f4491d3336f08f480cb183143e61d9a8904b919 Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Tue, 21 Sep 2021 04:08:05 +0000 Subject: [PATCH 05/18] Add include symlinks and other ASF2 files to LICENSE. --- LICENSE | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LICENSE b/LICENSE index dbb50d834498..d0536f8cbce1 100644 --- a/LICENSE +++ b/LICENSE @@ -220,8 +220,11 @@ 3rdparty/ctc_include 3rdparty/dlpack + include/dlpack (header symlinks to 3rdparty/dlpack/include/dlpack) 3rdparty/dmlc-core + include/dmlc (header symlinks to 3rdparty/dmlc-core/include/dmlc) 3rdparty/mshadow + include/mshadow (header symlinks to 3rdparty/mshadow/mshadow) 3rdparty/tvm 3rdparty/tvm/3rdparty/dmlc-core 3rdparty/tvm/3rdparty/dlpack @@ -252,6 +255,8 @@ src/operator/subgraph/tensorrt/onnx_to_tensorrt.h src/operator/subgraph/tensorrt/tensorrt-inl.h src/operator/subgraph/tensorrt/tensorrt_int8_calibrator.h + julia/src/runtime.jl + contrib/clojure-package/test/good-test-ndarray-api.clj ======================================================================================= MIT license From 2019dfa09b9769b3348e9830ab155bc92fbbac06 Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Mon, 27 Sep 2021 17:58:35 +0000 Subject: [PATCH 06/18] Remove extra line. --- LICENSE | 1 - 1 file changed, 1 deletion(-) diff --git a/LICENSE b/LICENSE index d0536f8cbce1..8b9aaa2ee5d4 100644 --- a/LICENSE +++ b/LICENSE @@ -344,7 +344,6 @@ 3rdparty/onnx-tensorrt/third_party/onnx/tools/protoc-gen-mypy.py (Copy of the referenced AL2 License available at top of current file) src/operator/nn/layer_norm.cc (function LayerNormCPUKernel is adapated from MIT-licensed code) - (Source repository for below deformable conv operators - https://github.com/msracver/Deformable-ConvNets/tree/master/DCNv2_op) ======================================================================================= Apache-2.0 license + Boost Software License, Version 1.0 From 670af3c8fcd14fe6e88df9484023dae54005e44b Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Mon, 27 Sep 2021 18:02:41 +0000 Subject: [PATCH 07/18] Add numpy einsum files (licensed under bsd 3-clause) to rat-excludes. --- rat-excludes | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rat-excludes b/rat-excludes index d877d0e6ee37..1cbd2608de49 100644 --- a/rat-excludes +++ b/rat-excludes @@ -131,6 +131,9 @@ modulated_deformable_im2col.h FindCUDAToolkit.cmake FindJeMalloc.cmake select_compute_arch.cmake +np_einsum_op-inl.h +np_einsum_op.cc +np_einsum_path_op-inl.h # Incorporated third-party source files from Microsoft that carry Apache 2.0 license, captured in licenses/ deformable_psroi_pooling.cu From debc17404980c9fdc901ffa8398cd314546f7910 Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Tue, 28 Sep 2021 00:59:37 +0000 Subject: [PATCH 08/18] Mention include/nnvm in LICENSE file. --- LICENSE | 1 + 1 file changed, 1 insertion(+) diff --git a/LICENSE b/LICENSE index 8b9aaa2ee5d4..996c65a8307b 100644 --- a/LICENSE +++ b/LICENSE @@ -228,6 +228,7 @@ 3rdparty/tvm 3rdparty/tvm/3rdparty/dmlc-core 3rdparty/tvm/3rdparty/dlpack + include/nnvm (header symlinks to 3rdparty/tvm/nnvm/include/nnvm) 3rdparty/ps-lite 3rdparty/mkldnn include/mkldnn (header symlinks to 3rdparty/mkldnn) From ae87c51d4f91bd1c65dc2ff7057dba406536ce00 Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Tue, 28 Sep 2021 02:45:32 +0000 Subject: [PATCH 09/18] Remove files from LICENSE with clear ASF-2.0 license headers, added by accident based on skywalking-eyes faulty results. --- LICENSE | 8 -------- 1 file changed, 8 deletions(-) diff --git a/LICENSE b/LICENSE index 996c65a8307b..4c8bd561e2e0 100644 --- a/LICENSE +++ b/LICENSE @@ -244,20 +244,12 @@ src/operator/contrib/deformable_psroi_pooling-inl.h src/operator/contrib/deformable_psroi_pooling.cc src/operator/contrib/deformable_psroi_pooling.cu - src/operator/contrib/krprod.cc src/operator/contrib/multi_proposal-inl.h src/operator/contrib/multi_proposal.cc src/operator/contrib/multi_proposal.cu src/operator/contrib/psroi_pooling.cc src/operator/contrib/psroi_pooling.cu - tests/python/unittest/test_contrib_text.py src/operator/nn/mkldnn/mkldnn_base-inl.h - src/operator/subgraph/tensorrt/nnvm_to_onnx-inl.h - src/operator/subgraph/tensorrt/onnx_to_tensorrt.h - src/operator/subgraph/tensorrt/tensorrt-inl.h - src/operator/subgraph/tensorrt/tensorrt_int8_calibrator.h - julia/src/runtime.jl - contrib/clojure-package/test/good-test-ndarray-api.clj ======================================================================================= MIT license From 7c3ca2329a4b5472fff389deabb373d71d91f237 Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Tue, 28 Sep 2021 02:56:07 +0000 Subject: [PATCH 10/18] Move header guards to below license header section, so skywalking-eyes tool recognizes ASF-2.0 header. --- src/operator/subgraph/tensorrt/nnvm_to_onnx-inl.h | 4 ++-- src/operator/subgraph/tensorrt/onnx_to_tensorrt.h | 4 ++-- src/operator/subgraph/tensorrt/tensorrt-inl.h | 4 ++-- src/operator/subgraph/tensorrt/tensorrt_int8_calibrator.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/operator/subgraph/tensorrt/nnvm_to_onnx-inl.h b/src/operator/subgraph/tensorrt/nnvm_to_onnx-inl.h index 18e8bae4e382..c4549a5167fc 100644 --- a/src/operator/subgraph/tensorrt/nnvm_to_onnx-inl.h +++ b/src/operator/subgraph/tensorrt/nnvm_to_onnx-inl.h @@ -1,5 +1,3 @@ -#ifndef MXNET_OPERATOR_SUBGRAPH_TENSORRT_NNVM_TO_ONNX_INL_H_ -#define MXNET_OPERATOR_SUBGRAPH_TENSORRT_NNVM_TO_ONNX_INL_H_ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file @@ -25,6 +23,8 @@ * \author Marek Kolodziej, Clement Fuji Tsang */ +#ifndef MXNET_OPERATOR_SUBGRAPH_TENSORRT_NNVM_TO_ONNX_INL_H_ +#define MXNET_OPERATOR_SUBGRAPH_TENSORRT_NNVM_TO_ONNX_INL_H_ #if MXNET_USE_TENSORRT #include diff --git a/src/operator/subgraph/tensorrt/onnx_to_tensorrt.h b/src/operator/subgraph/tensorrt/onnx_to_tensorrt.h index fa6ee4cb1732..fb7aefecc7d5 100644 --- a/src/operator/subgraph/tensorrt/onnx_to_tensorrt.h +++ b/src/operator/subgraph/tensorrt/onnx_to_tensorrt.h @@ -1,5 +1,3 @@ -#ifndef MXNET_OPERATOR_SUBGRAPH_TENSORRT_ONNX_TO_TENSORRT_H_ -#define MXNET_OPERATOR_SUBGRAPH_TENSORRT_ONNX_TO_TENSORRT_H_ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file @@ -25,6 +23,8 @@ * \author Marek Kolodziej, Clement Fuji Tsang, Serge Panev */ +#ifndef MXNET_OPERATOR_SUBGRAPH_TENSORRT_ONNX_TO_TENSORRT_H_ +#define MXNET_OPERATOR_SUBGRAPH_TENSORRT_ONNX_TO_TENSORRT_H_ #if MXNET_USE_TENSORRT #include diff --git a/src/operator/subgraph/tensorrt/tensorrt-inl.h b/src/operator/subgraph/tensorrt/tensorrt-inl.h index 129bf4559885..6fb0386ff558 100644 --- a/src/operator/subgraph/tensorrt/tensorrt-inl.h +++ b/src/operator/subgraph/tensorrt/tensorrt-inl.h @@ -1,5 +1,3 @@ -#ifndef MXNET_OPERATOR_SUBGRAPH_TENSORRT_TENSORRT_INL_H_ -#define MXNET_OPERATOR_SUBGRAPH_TENSORRT_TENSORRT_INL_H_ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file @@ -25,6 +23,8 @@ * \author Marek Kolodziej, Clement Fuji Tsang, Serge Panev */ +#ifndef MXNET_OPERATOR_SUBGRAPH_TENSORRT_TENSORRT_INL_H_ +#define MXNET_OPERATOR_SUBGRAPH_TENSORRT_TENSORRT_INL_H_ #if MXNET_USE_TENSORRT #include diff --git a/src/operator/subgraph/tensorrt/tensorrt_int8_calibrator.h b/src/operator/subgraph/tensorrt/tensorrt_int8_calibrator.h index df4c20c1ed91..94e7b40a3466 100644 --- a/src/operator/subgraph/tensorrt/tensorrt_int8_calibrator.h +++ b/src/operator/subgraph/tensorrt/tensorrt_int8_calibrator.h @@ -1,5 +1,3 @@ -#ifndef MXNET_OPERATOR_SUBGRAPH_TENSORRT_TENSORRT_INT8_CALIBRATOR_H_ -#define MXNET_OPERATOR_SUBGRAPH_TENSORRT_TENSORRT_INT8_CALIBRATOR_H_ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file @@ -25,6 +23,8 @@ * \author Serge Panev */ +#ifndef MXNET_OPERATOR_SUBGRAPH_TENSORRT_TENSORRT_INT8_CALIBRATOR_H_ +#define MXNET_OPERATOR_SUBGRAPH_TENSORRT_TENSORRT_INT8_CALIBRATOR_H_ #if MXNET_USE_TENSORRT #include From e1d7294edfe6a44ce30479355a0c5ad9f9cd9b8d Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Tue, 28 Sep 2021 03:49:05 +0000 Subject: [PATCH 11/18] Fix formatting with license header. --- src/operator/contrib/krprod.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operator/contrib/krprod.cc b/src/operator/contrib/krprod.cc index f0325645f4dd..4dbe4c8415e0 100644 --- a/src/operator/contrib/krprod.cc +++ b/src/operator/contrib/krprod.cc @@ -5,7 +5,7 @@ * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance -n * with the License. You may obtain a copy of the License at + * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * From f754c440b57bbbb46b20bfbd7d84444b0307bba4 Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Tue, 28 Sep 2021 03:55:17 +0000 Subject: [PATCH 12/18] Fix license section for FindJeMalloc.cmake, move protoc-gen-mypy.py to Apache-2.0 licensed files. --- LICENSE | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/LICENSE b/LICENSE index 4c8bd561e2e0..716c4f60da80 100644 --- a/LICENSE +++ b/LICENSE @@ -234,6 +234,7 @@ include/mkldnn (header symlinks to 3rdparty/mkldnn) 3rdparty/googletest/googlemock/scripts/generator 3rdparty/onnx-tensorrt/third_party/onnx/third_party/benchmark + 3rdparty/onnx-tensorrt/third_party/onnx/tools/protoc-gen-mypy.py 3rdparty/mkldnn/tests/benchdnn (Copy of the License available at top of current file) src/operator/special_functions-inl.h Cephes Library Functions (Copy of the License available at top of current file) 3rdparty/mkldnn/doc/assets/mathjax (Copy of the License available at top of current file) @@ -335,21 +336,15 @@ Apache-2.0 license + MIT License ======================================================================================= - 3rdparty/onnx-tensorrt/third_party/onnx/tools/protoc-gen-mypy.py (Copy of the referenced AL2 License available at top of current file) src/operator/nn/layer_norm.cc (function LayerNormCPUKernel is adapated from MIT-licensed code) - ======================================================================================= - Apache-2.0 license + Boost Software License, Version 1.0 - ======================================================================================= - - cmake/Modules/FindJeMalloc.cmake - ======================================================================================= Boost Software License, Version 1.0 ======================================================================================= 3rdparty/intgemm/test/3rd_party/catch.hpp (Copy of the License available at licenses/BOOST1_0) 3rdparty/mkldnn/src/common/primitive_hashing.hpp + cmake/Modules/FindJeMalloc.cmake ======================================================================================= LLVM Release License From 71cad607a83ad6761a2ce763a175bf1ca2b4988e Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Tue, 28 Sep 2021 04:19:20 +0000 Subject: [PATCH 13/18] Clearly indicate caffe subdirectory's licensing model in LICENSE. --- LICENSE | 1 + 1 file changed, 1 insertion(+) diff --git a/LICENSE b/LICENSE index 716c4f60da80..a179e7bfbeca 100644 --- a/LICENSE +++ b/LICENSE @@ -309,6 +309,7 @@ Caffe Licensing Model ======================================================================================= + caffe src/operator/nn/pool.h src/operator/nn/pool.cuh src/operator/nn/im2col.h From 183de9a16d127b8c980ee69ec53e9e9457130812 Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Tue, 28 Sep 2021 04:20:38 +0000 Subject: [PATCH 14/18] Add skywalking-eyes config to repo. --- .licenserc.yaml | 90 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .licenserc.yaml diff --git a/.licenserc.yaml b/.licenserc.yaml new file mode 100644 index 000000000000..62a19e85e310 --- /dev/null +++ b/.licenserc.yaml @@ -0,0 +1,90 @@ +header: + license: + spdx-id: Apache-2.0 + copyright-owner: Apache Software Foundation + + paths-ignore: + - 'dist' + - 'licenses' + - '**/*.md' + - '**/*.ipynb' + - 'LICENSE' + - 'NOTICE' + - '3rdparty' + - '.gitignore' + - '.codecov.yml' + - '.gitattributes' + - '.github' + - '.gitmodules' + - '.licenserc.yaml' + - 'CODEOWNERS' + - 'DISCLAIMER' + - 'KEYS' + - 'python/mxnet/_cy3/README' + - 'tools/dependencies/LICENSE.binary.dependencies' + # files not distributed in source archive (listed in tools/source-exclude-artifacts.txt) + - 'docs' + - 'example/image-classification/predict-cpp/image-classification-predict.cc' + - 'R-package' + # files licensed under apache-2.0 license but do not include full license headers recognized by skywalking-eyes + - 'contrib/clojure-package/test' + - 'julia/src/runtime.jl' + - 'perl-package' + - 'python/mxnet/cython/ndarray.pyx' + - 'python/mxnet/cython/symbol.pyx' + - 'src/operator/contrib/deformable_convolution-inl.h' + - 'src/operator/contrib/deformable_convolution.cc' + - 'src/operator/contrib/deformable_convolution.cu' + - 'src/operator/contrib/deformable_psroi_pooling-inl.h' + - 'src/operator/contrib/deformable_psroi_pooling.cc' + - 'src/operator/contrib/deformable_psroi_pooling.cu' + - 'src/operator/contrib/multi_proposal-inl.h' + - 'src/operator/contrib/multi_proposal.cc' + - 'src/operator/contrib/multi_proposal.cu' + - 'src/operator/contrib/psroi_pooling.cc' + - 'src/operator/contrib/psroi_pooling.cu' + - 'src/operator/nn/mkldnn/mkldnn_base-inl.h' + - 'tests/python/unittest/test_contrib_text.py' + # files licensed under boost license + - 'cmake/Modules/FindJeMalloc.cmake' + # files licensed under bsd 2-clause + - 'example/ssd/dataset/pycocotools/coco.py' + # files licensed under bsd 3-clause + - 'cmake/upstream/FindCUDAToolkit.cmake' + - 'cmake/upstream/select_compute_arch.cmake' + - 'src/operator/contrib/erfinv-inl.h' + - 'src/operator/numpy/np_einsum_op-inl.h' + - 'src/operator/numpy/np_einsum_op.cc' + - 'src/operator/numpy/np_einsum_path_op-inl.h' + # files licensed under caffe/mit license + - 'caffe' + - 'src/operator/contrib/modulated_deformable_convolution-inl.h' + - 'src/operator/contrib/modulated_deformable_convolution.cc' + - 'src/operator/contrib/modulated_deformable_convolution.cu' + - 'src/operator/contrib/nn/deformable_im2col.cuh' + - 'src/operator/contrib/nn/deformable_im2col.h' + - 'src/operator/contrib/nn/modulated_deformable_im2col.cuh' + - 'src/operator/contrib/nn/modulated_deformable_im2col.h' + - 'src/operator/nn/im2col.cuh' + - 'src/operator/nn/im2col.h' + - 'src/operator/nn/pool.cuh' + - 'src/operator/nn/pool.h' + # symlinks + - 'include/dlpack' # symlink to 3rdparty/dlpack/include/dlpack + - 'include/dmlc' # symlink to 3rdparty/dmlc-core/include/dmlc + - 'include/mshadow' # symlink to 3rdparty/mshadow/mshadow + - 'include/mkldnn' # symlinks to 3rdparty/mkldnn + # test/build data + - 'contrib/clojure-package/examples/imclassification/test/test-symbol.json.ref' + - 'example/speech_recognition/resources/unicodemap_en_baidu.csv' + - 'example/ssd/dataset/names' + - 'julia/docs/src/tutorial/images/char-lstm-vis.svg' # tutorial include + - 'scala-package/.mvn/wrapper/maven-wrapper.properties' + - 'scala-package/init-native/src/main/native/org_apache_mxnet_init_native_c_api.h' # auto-generated file + - 'scala-package/native/src/main/native/org_apache_mxnet_native_c_api.h' # auto-generated file + - 'tests/python/mkl/data/test_mkldnn_test_mkldnn_model_model1.json' + - 'tests/python/unittest/save_000800.json' + - 'tools/accnn/config.json' + - 'tools/caffe_translator/build.gradle' + + comment: on-failure From a81125a38acab789225be27335f08202b4e2a8f7 Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Tue, 28 Sep 2021 04:25:46 +0000 Subject: [PATCH 15/18] Add skywalking-eyes config (.licenserv.yaml) to rat-excludes. --- rat-excludes | 1 + 1 file changed, 1 insertion(+) diff --git a/rat-excludes b/rat-excludes index 1cbd2608de49..ba8ad5c74a99 100644 --- a/rat-excludes +++ b/rat-excludes @@ -54,6 +54,7 @@ coco.py # Licenses licenses/* LICENSE.binary.dependencies +.licenserc.yaml # Generated files during build .buildinfo From ee5b3ea3be4bce6f5bda172b8060879de39f72dc Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Tue, 28 Sep 2021 20:24:13 +0000 Subject: [PATCH 16/18] Add skywalking-eyes license checker into Github workflow. --- .github/workflows/license_check.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/license_check.yml diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml new file mode 100644 index 000000000000..93cb69e804f1 --- /dev/null +++ b/.github/workflows/license_check.yml @@ -0,0 +1,25 @@ +name: license check + +on: [push, pull_request] + +defaults: + run: + shell: bash + +jobs: + licensecheck: + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Update Submodules + run: | + git submodule update --init --recursive + - name: Check License Header + uses: apache/skywalking-eyes@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + From d4c0de579b27089faa943414d485c60777dba8e6 Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Wed, 29 Sep 2021 03:23:05 +0000 Subject: [PATCH 17/18] Remove caffe subdir from LICENSE and license-check config whitelist, since it is no longer in the repo. --- .licenserc.yaml | 1 - LICENSE | 1 - 2 files changed, 2 deletions(-) diff --git a/.licenserc.yaml b/.licenserc.yaml index 62a19e85e310..89a403a50d36 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -57,7 +57,6 @@ header: - 'src/operator/numpy/np_einsum_op.cc' - 'src/operator/numpy/np_einsum_path_op-inl.h' # files licensed under caffe/mit license - - 'caffe' - 'src/operator/contrib/modulated_deformable_convolution-inl.h' - 'src/operator/contrib/modulated_deformable_convolution.cc' - 'src/operator/contrib/modulated_deformable_convolution.cu' diff --git a/LICENSE b/LICENSE index a179e7bfbeca..716c4f60da80 100644 --- a/LICENSE +++ b/LICENSE @@ -309,7 +309,6 @@ Caffe Licensing Model ======================================================================================= - caffe src/operator/nn/pool.h src/operator/nn/pool.cuh src/operator/nn/im2col.h From db178e27b7cdd80e62e7a69c7768e69efc506cf2 Mon Sep 17 00:00:00 2001 From: Joe Evans Date: Wed, 29 Sep 2021 03:25:02 +0000 Subject: [PATCH 18/18] Remove duplicate entries in LICENSE - leave in Caffe license section. --- LICENSE | 2 -- 1 file changed, 2 deletions(-) diff --git a/LICENSE b/LICENSE index 716c4f60da80..fd09e5a85f2c 100644 --- a/LICENSE +++ b/LICENSE @@ -262,8 +262,6 @@ 3rdparty/onnx-tensorrt/third_party/onnx 3rdparty/intgemm 3rdparty/tvm/3rdparty/compiler-rt/builtin_fp16.h - src/operator/contrib/nn/modulated_deformable_im2col.cuh - src/operator/contrib/nn/modulated_deformable_im2col.h src/operator/contrib/modulated_deformable_convolution-inl.h src/operator/contrib/modulated_deformable_convolution.cc src/operator/contrib/modulated_deformable_convolution.cu