Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 7b2c0c8

Browse files
authored
[v1.9.x] license updates (#20598)
Fix the first 3 items in #20616 * Remove ASF2.0 license and properly list under 3-clause BSD files in LICENSE for np_einsum files. * Fix license category for deformable_convolution files. * Update list of Apache-2.0 licensed files. * Add files to LICENSE that fall under Apache 2.0 license. * Add include symlinks and other ASF2 files to LICENSE. * Remove extra line. * Add numpy einsum files (licensed under bsd 3-clause) to rat-excludes. * Mention include/nnvm in LICENSE file. * Remove files from LICENSE with clear ASF-2.0 license headers, added by accident based on skywalking-eyes faulty results. * Move header guards to below license header section, so skywalking-eyes tool recognizes ASF-2.0 header. * Fix formatting with license header. * Fix license section for FindJeMalloc.cmake, move protoc-gen-mypy.py to Apache-2.0 licensed files. * Clearly indicate caffe subdirectory's licensing model in LICENSE. * Add skywalking-eyes config to repo. * Add skywalking-eyes config (.licenserv.yaml) to rat-excludes. * Add skywalking-eyes license checker into Github workflow. * Remove caffe subdir from LICENSE and license-check config whitelist, since it is no longer in the repo. * Remove duplicate entries in LICENSE - leave in Caffe license section.
1 parent 82384cb commit 7b2c0c8

12 files changed

Lines changed: 148 additions & 82 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: license check
2+
3+
on: [push, pull_request]
4+
5+
defaults:
6+
run:
7+
shell: bash
8+
9+
jobs:
10+
licensecheck:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v2
17+
18+
- name: Update Submodules
19+
run: |
20+
git submodule update --init --recursive
21+
- name: Check License Header
22+
uses: apache/skywalking-eyes@main
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+

.licenserc.yaml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
header:
2+
license:
3+
spdx-id: Apache-2.0
4+
copyright-owner: Apache Software Foundation
5+
6+
paths-ignore:
7+
- 'dist'
8+
- 'licenses'
9+
- '**/*.md'
10+
- '**/*.ipynb'
11+
- 'LICENSE'
12+
- 'NOTICE'
13+
- '3rdparty'
14+
- '.gitignore'
15+
- '.codecov.yml'
16+
- '.gitattributes'
17+
- '.github'
18+
- '.gitmodules'
19+
- '.licenserc.yaml'
20+
- 'CODEOWNERS'
21+
- 'DISCLAIMER'
22+
- 'KEYS'
23+
- 'python/mxnet/_cy3/README'
24+
- 'tools/dependencies/LICENSE.binary.dependencies'
25+
# files not distributed in source archive (listed in tools/source-exclude-artifacts.txt)
26+
- 'docs'
27+
- 'example/image-classification/predict-cpp/image-classification-predict.cc'
28+
- 'R-package'
29+
# files licensed under apache-2.0 license but do not include full license headers recognized by skywalking-eyes
30+
- 'contrib/clojure-package/test'
31+
- 'julia/src/runtime.jl'
32+
- 'perl-package'
33+
- 'python/mxnet/cython/ndarray.pyx'
34+
- 'python/mxnet/cython/symbol.pyx'
35+
- 'src/operator/contrib/deformable_convolution-inl.h'
36+
- 'src/operator/contrib/deformable_convolution.cc'
37+
- 'src/operator/contrib/deformable_convolution.cu'
38+
- 'src/operator/contrib/deformable_psroi_pooling-inl.h'
39+
- 'src/operator/contrib/deformable_psroi_pooling.cc'
40+
- 'src/operator/contrib/deformable_psroi_pooling.cu'
41+
- 'src/operator/contrib/multi_proposal-inl.h'
42+
- 'src/operator/contrib/multi_proposal.cc'
43+
- 'src/operator/contrib/multi_proposal.cu'
44+
- 'src/operator/contrib/psroi_pooling.cc'
45+
- 'src/operator/contrib/psroi_pooling.cu'
46+
- 'src/operator/nn/mkldnn/mkldnn_base-inl.h'
47+
- 'tests/python/unittest/test_contrib_text.py'
48+
# files licensed under boost license
49+
- 'cmake/Modules/FindJeMalloc.cmake'
50+
# files licensed under bsd 2-clause
51+
- 'example/ssd/dataset/pycocotools/coco.py'
52+
# files licensed under bsd 3-clause
53+
- 'cmake/upstream/FindCUDAToolkit.cmake'
54+
- 'cmake/upstream/select_compute_arch.cmake'
55+
- 'src/operator/contrib/erfinv-inl.h'
56+
- 'src/operator/numpy/np_einsum_op-inl.h'
57+
- 'src/operator/numpy/np_einsum_op.cc'
58+
- 'src/operator/numpy/np_einsum_path_op-inl.h'
59+
# files licensed under caffe/mit license
60+
- 'src/operator/contrib/modulated_deformable_convolution-inl.h'
61+
- 'src/operator/contrib/modulated_deformable_convolution.cc'
62+
- 'src/operator/contrib/modulated_deformable_convolution.cu'
63+
- 'src/operator/contrib/nn/deformable_im2col.cuh'
64+
- 'src/operator/contrib/nn/deformable_im2col.h'
65+
- 'src/operator/contrib/nn/modulated_deformable_im2col.cuh'
66+
- 'src/operator/contrib/nn/modulated_deformable_im2col.h'
67+
- 'src/operator/nn/im2col.cuh'
68+
- 'src/operator/nn/im2col.h'
69+
- 'src/operator/nn/pool.cuh'
70+
- 'src/operator/nn/pool.h'
71+
# symlinks
72+
- 'include/dlpack' # symlink to 3rdparty/dlpack/include/dlpack
73+
- 'include/dmlc' # symlink to 3rdparty/dmlc-core/include/dmlc
74+
- 'include/mshadow' # symlink to 3rdparty/mshadow/mshadow
75+
- 'include/mkldnn' # symlinks to 3rdparty/mkldnn
76+
# test/build data
77+
- 'contrib/clojure-package/examples/imclassification/test/test-symbol.json.ref'
78+
- 'example/speech_recognition/resources/unicodemap_en_baidu.csv'
79+
- 'example/ssd/dataset/names'
80+
- 'julia/docs/src/tutorial/images/char-lstm-vis.svg' # tutorial include
81+
- 'scala-package/.mvn/wrapper/maven-wrapper.properties'
82+
- 'scala-package/init-native/src/main/native/org_apache_mxnet_init_native_c_api.h' # auto-generated file
83+
- 'scala-package/native/src/main/native/org_apache_mxnet_native_c_api.h' # auto-generated file
84+
- 'tests/python/mkl/data/test_mkldnn_test_mkldnn_model_model1.json'
85+
- 'tests/python/unittest/save_000800.json'
86+
- 'tools/accnn/config.json'
87+
- 'tools/caffe_translator/build.gradle'
88+
89+
comment: on-failure

LICENSE

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -220,20 +220,37 @@
220220

221221
3rdparty/ctc_include
222222
3rdparty/dlpack
223+
include/dlpack (header symlinks to 3rdparty/dlpack/include/dlpack)
223224
3rdparty/dmlc-core
225+
include/dmlc (header symlinks to 3rdparty/dmlc-core/include/dmlc)
224226
3rdparty/mshadow
227+
include/mshadow (header symlinks to 3rdparty/mshadow/mshadow)
225228
3rdparty/tvm
226229
3rdparty/tvm/3rdparty/dmlc-core
227230
3rdparty/tvm/3rdparty/dlpack
231+
include/nnvm (header symlinks to 3rdparty/tvm/nnvm/include/nnvm)
228232
3rdparty/ps-lite
229233
3rdparty/mkldnn
230234
include/mkldnn (header symlinks to 3rdparty/mkldnn)
231235
3rdparty/googletest/googlemock/scripts/generator
232236
3rdparty/onnx-tensorrt/third_party/onnx/third_party/benchmark
237+
3rdparty/onnx-tensorrt/third_party/onnx/tools/protoc-gen-mypy.py
233238
3rdparty/mkldnn/tests/benchdnn (Copy of the License available at top of current file)
234239
src/operator/special_functions-inl.h Cephes Library Functions (Copy of the License available at top of current file)
235240
3rdparty/mkldnn/doc/assets/mathjax (Copy of the License available at top of current file)
236241
3rdparty/tvm/3rdparty/bfloat16/bfloat16.cc (Copy of the License available at top of current file)
242+
src/operator/contrib/deformable_convolution-inl.h
243+
src/operator/contrib/deformable_convolution.cc
244+
src/operator/contrib/deformable_convolution.cu
245+
src/operator/contrib/deformable_psroi_pooling-inl.h
246+
src/operator/contrib/deformable_psroi_pooling.cc
247+
src/operator/contrib/deformable_psroi_pooling.cu
248+
src/operator/contrib/multi_proposal-inl.h
249+
src/operator/contrib/multi_proposal.cc
250+
src/operator/contrib/multi_proposal.cu
251+
src/operator/contrib/psroi_pooling.cc
252+
src/operator/contrib/psroi_pooling.cu
253+
src/operator/nn/mkldnn/mkldnn_base-inl.h
237254

238255
=======================================================================================
239256
MIT license
@@ -245,8 +262,6 @@
245262
3rdparty/onnx-tensorrt/third_party/onnx
246263
3rdparty/intgemm
247264
3rdparty/tvm/3rdparty/compiler-rt/builtin_fp16.h
248-
src/operator/contrib/nn/modulated_deformable_im2col.cuh
249-
src/operator/contrib/nn/modulated_deformable_im2col.h
250265
src/operator/contrib/modulated_deformable_convolution-inl.h
251266
src/operator/contrib/modulated_deformable_convolution.cc
252267
src/operator/contrib/modulated_deformable_convolution.cu
@@ -268,6 +283,9 @@
268283
cmake/upstream/FindCUDAToolkit.cmake
269284
cmake/upstream/select_compute_arch.cmake
270285
src/operator/contrib/erfinv-inl.h
286+
src/operator/numpy/np_einsum_op-inl.h
287+
src/operator/numpy/np_einsum_path_op-inl.h
288+
src/operator/numpy/np_einsum_op.cc
271289

272290
=======================================================================================
273291
2-clause BSD license
@@ -311,33 +329,20 @@
311329
python/mxnet/onnx/mx2onnx/_export_onnx.py
312330
python/mxnet/onnx/mx2onnx/_op_translations/_op_translations_opset12.py
313331
python/mxnet/onnx/mx2onnx/_op_translations/_op_translations_opset13.py
314-
src/operator/numpy/np_einsum_op-inl.h
315-
src/operator/numpy/np_einsum_path_op-inl.h
316-
src/operator/numpy/np_einsum_op.cc
317332

318333
=======================================================================================
319334
Apache-2.0 license + MIT License
320335
=======================================================================================
321336

322-
3rdparty/onnx-tensorrt/third_party/onnx/tools/protoc-gen-mypy.py (Copy of the referenced AL2 License available at top of current file)
323337
src/operator/nn/layer_norm.cc (function LayerNormCPUKernel is adapated from MIT-licensed code)
324-
(Source repository for below deformable conv operators - https://github.com/msracver/Deformable-ConvNets/tree/master/DCNv2_op)
325-
src/operator/contrib/deformable_convolution-inl.h
326-
src/operator/contrib/deformable_convolution.cc
327-
src/operator/contrib/deformable_convolution.cu
328-
329-
=======================================================================================
330-
Apache-2.0 license + Boost Software License, Version 1.0
331-
=======================================================================================
332-
333-
cmake/Modules/FindJeMalloc.cmake
334338

335339
=======================================================================================
336340
Boost Software License, Version 1.0
337341
=======================================================================================
338342

339343
3rdparty/intgemm/test/3rd_party/catch.hpp (Copy of the License available at licenses/BOOST1_0)
340344
3rdparty/mkldnn/src/common/primitive_hashing.hpp
345+
cmake/Modules/FindJeMalloc.cmake
341346

342347
=======================================================================================
343348
LLVM Release License

rat-excludes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ coco.py
5454
# Licenses
5555
licenses/*
5656
LICENSE.binary.dependencies
57+
.licenserc.yaml
5758

5859
# Generated files during build
5960
.buildinfo
@@ -131,6 +132,9 @@ modulated_deformable_im2col.h
131132
FindCUDAToolkit.cmake
132133
FindJeMalloc.cmake
133134
select_compute_arch.cmake
135+
np_einsum_op-inl.h
136+
np_einsum_op.cc
137+
np_einsum_path_op-inl.h
134138

135139
# Incorporated third-party source files from Microsoft that carry Apache 2.0 license, captured in licenses/
136140
deformable_psroi_pooling.cu

src/operator/contrib/krprod.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* regarding copyright ownership. The ASF licenses this file
66
* to you under the Apache License, Version 2.0 (the
77
* "License"); you may not use this file except in compliance
8-
n * with the License. You may obtain a copy of the License at
8+
* with the License. You may obtain a copy of the License at
99
*
1010
* http://www.apache.org/licenses/LICENSE-2.0
1111
*

src/operator/numpy/np_einsum_op-inl.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
18-
*/
19-
201
/*
212
* Copyright (c) 2005-2019, NumPy Developers.
223
*

src/operator/numpy/np_einsum_op.cc

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
18-
*/
19-
201
/*
212
* Copyright (c) 2005-2019, NumPy Developers.
223
* All rights reserved.

src/operator/numpy/np_einsum_path_op-inl.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
18-
*/
19-
201
/*
212
* Copyright (c) 2005-2019, NumPy Developers.
223
* All rights reserved.

src/operator/subgraph/tensorrt/nnvm_to_onnx-inl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#ifndef MXNET_OPERATOR_SUBGRAPH_TENSORRT_NNVM_TO_ONNX_INL_H_
2-
#define MXNET_OPERATOR_SUBGRAPH_TENSORRT_NNVM_TO_ONNX_INL_H_
31
/*
42
* Licensed to the Apache Software Foundation (ASF) under one
53
* or more contributor license agreements. See the NOTICE file
@@ -25,6 +23,8 @@
2523
* \author Marek Kolodziej, Clement Fuji Tsang
2624
*/
2725

26+
#ifndef MXNET_OPERATOR_SUBGRAPH_TENSORRT_NNVM_TO_ONNX_INL_H_
27+
#define MXNET_OPERATOR_SUBGRAPH_TENSORRT_NNVM_TO_ONNX_INL_H_
2828
#if MXNET_USE_TENSORRT
2929

3030
#include <mxnet/operator.h>

src/operator/subgraph/tensorrt/onnx_to_tensorrt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#ifndef MXNET_OPERATOR_SUBGRAPH_TENSORRT_ONNX_TO_TENSORRT_H_
2-
#define MXNET_OPERATOR_SUBGRAPH_TENSORRT_ONNX_TO_TENSORRT_H_
31
/*
42
* Licensed to the Apache Software Foundation (ASF) under one
53
* or more contributor license agreements. See the NOTICE file
@@ -25,6 +23,8 @@
2523
* \author Marek Kolodziej, Clement Fuji Tsang, Serge Panev
2624
*/
2725

26+
#ifndef MXNET_OPERATOR_SUBGRAPH_TENSORRT_ONNX_TO_TENSORRT_H_
27+
#define MXNET_OPERATOR_SUBGRAPH_TENSORRT_ONNX_TO_TENSORRT_H_
2828
#if MXNET_USE_TENSORRT
2929

3030
#include <onnx-tensorrt/NvOnnxParser.h>

0 commit comments

Comments
 (0)