You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by pa...@apache.org on 2020/04/24 02:49:30 UTC

[incubator-mxnet] branch v1.x updated: Update Apache License for mshadow (#18109) (#18133)

This is an automated email from the ASF dual-hosted git repository.

patriczhao pushed a commit to branch v1.x
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/v1.x by this push:
     new f765e8a  Update Apache License for mshadow (#18109) (#18133)
f765e8a is described below

commit f765e8acfaa5c89929a5fa965019d5918cfd793e
Author: ciyong <ci...@intel.com>
AuthorDate: Fri Apr 24 10:48:41 2020 +0800

    Update Apache License for mshadow (#18109) (#18133)
    
    * Add Apache License for mshadow
    
    * update cpp-package license
    
    * udpate license for mx-theme in top-level LICENSE
    
    * Enable RAT License check for mshadow, and keep the rest of 3rdparty unchanged.
    
    * add license header
---
 3rdparty/mshadow/CHANGES.md                         | 17 +++++++++++++++++
 3rdparty/mshadow/LICENSE                            |  2 --
 3rdparty/mshadow/README.md                          | 17 +++++++++++++++++
 3rdparty/mshadow/doc/Doxyfile                       | 17 +++++++++++++++++
 3rdparty/mshadow/doc/README.md                      | 17 +++++++++++++++++
 3rdparty/mshadow/doc/mkdoc.sh                       | 18 ++++++++++++++++++
 3rdparty/mshadow/guide/Makefile                     | 17 +++++++++++++++++
 3rdparty/mshadow/guide/README.md                    | 17 +++++++++++++++++
 3rdparty/mshadow/guide/basic.cpp                    | 19 +++++++++++++++++++
 3rdparty/mshadow/guide/basic_stream.cu              | 19 +++++++++++++++++++
 3rdparty/mshadow/guide/config.mk                    | 17 +++++++++++++++++
 3rdparty/mshadow/guide/defop.cpp                    | 19 +++++++++++++++++++
 3rdparty/mshadow/guide/exp-template/Makefile        | 17 +++++++++++++++++
 3rdparty/mshadow/guide/exp-template/README.md       | 17 +++++++++++++++++
 3rdparty/mshadow/guide/exp-template/exp_lazy.cpp    | 19 +++++++++++++++++++
 .../mshadow/guide/exp-template/exp_template.cpp     | 19 +++++++++++++++++++
 .../mshadow/guide/exp-template/exp_template_op.cpp  | 19 +++++++++++++++++++
 3rdparty/mshadow/guide/mshadow-ps/Makefile          | 17 +++++++++++++++++
 3rdparty/mshadow/guide/mshadow-ps/README.md         | 17 +++++++++++++++++
 3rdparty/mshadow/guide/mshadow-ps/config.mk         | 17 +++++++++++++++++
 3rdparty/mshadow/guide/mshadow-ps/dbstr.h           | 19 +++++++++++++++++++
 .../mshadow/guide/mshadow-ps/dist_async_sum-inl.h   | 19 +++++++++++++++++++
 .../mshadow/guide/mshadow-ps/dist_async_sum.cpp     | 19 +++++++++++++++++++
 3rdparty/mshadow/guide/mshadow-ps/local.sh          | 18 ++++++++++++++++++
 3rdparty/mshadow/guide/mshadow-ps/local_sum-inl.h   | 19 +++++++++++++++++++
 3rdparty/mshadow/guide/mshadow-ps/local_sum.cpp     | 19 +++++++++++++++++++
 3rdparty/mshadow/guide/mshadow-ps/local_sum.cu      | 19 +++++++++++++++++++
 3rdparty/mshadow/guide/neuralnet/Makefile           | 17 +++++++++++++++++
 3rdparty/mshadow/guide/neuralnet/README.md          | 17 +++++++++++++++++
 3rdparty/mshadow/guide/neuralnet/config.mk          | 17 +++++++++++++++++
 3rdparty/mshadow/guide/neuralnet/convnet.cu         | 19 +++++++++++++++++++
 3rdparty/mshadow/guide/neuralnet/nnet.cu            | 19 +++++++++++++++++++
 3rdparty/mshadow/guide/neuralnet/nnet_ps.cu         | 19 +++++++++++++++++++
 3rdparty/mshadow/guide/neuralnet/util.h             | 19 +++++++++++++++++++
 3rdparty/mshadow/make/README.md                     | 17 +++++++++++++++++
 3rdparty/mshadow/make/mshadow.mk                    | 17 +++++++++++++++++
 3rdparty/mshadow/mshadow-ps/README.md               | 17 +++++++++++++++++
 3rdparty/mshadow/mshadow-ps/mshadow_ps.h            | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow-ps/ps_dist-inl.h           | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow-ps/ps_local-inl.h          | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow-ps/ps_rabit-inl.h          | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow-ps/thread.h                | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow-ps/thread_util.h           | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/README.md                  | 17 +++++++++++++++++
 3rdparty/mshadow/mshadow/base.h                     | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/cuda/reduce.cuh            | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/cuda/tensor_gpu-inl.cuh    | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/dot_engine-inl.h           | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/expr_engine-inl.h          | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/expr_scalar-inl.h          | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/expression.h               | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension.h                | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/broadcast.h      | 19 +++++++++++++++++++
 .../mshadow/mshadow/extension/broadcast_with_axis.h | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/channel_pool.h   | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/channel_unpool.h | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/choose.h         | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/complex.h        | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/concat.h         | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/crop.h           | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/fill.h           | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/flip.h           | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/implicit_gemm.h  | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/mask.h           | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/mirror.h         | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/one_hot.h        | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/pack_col2patch.h | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/pad.h            | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/range.h          | 19 +++++++++++++++++++
 .../mshadow/mshadow/extension/reduce_with_axis.h    | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/reduceto1d.h     | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/reshape.h        | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/slice.h          | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/slice_ex.h       | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/spatial_pool.h   | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/spatial_unpool.h | 19 +++++++++++++++++++
 .../mshadow/extension/spatial_upsampling_nearest.h  | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/swapaxis.h       | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/take.h           | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/take_grad.h      | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/extension/transpose.h      | 19 +++++++++++++++++++
 .../mshadow/mshadow/extension/unpack_patch2col.h    | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/half.h                     | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/io.h                       | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/logging.h                  | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/packet-inl.h               | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/packet/plain-inl.h         | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/packet/sse-inl.h           | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/random.h                   | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/stream_gpu-inl.h           | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/tensor.h                   | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/tensor_container.h         | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/tensor_cpu-inl.h           | 19 +++++++++++++++++++
 3rdparty/mshadow/mshadow/tensor_gpu-inl.h           | 19 +++++++++++++++++++
 3rdparty/mshadow/scripts/travis_script.sh           | 17 +++++++++++++++++
 3rdparty/mshadow/test/Makefile                      | 17 +++++++++++++++++
 3rdparty/mshadow/test/pairtest.cu                   | 21 ++++++++++++++++++++-
 3rdparty/mshadow/test/pool.cu                       | 21 ++++++++++++++++++++-
 3rdparty/mshadow/test/reshape.cu                    | 21 ++++++++++++++++++++-
 3rdparty/mshadow/test/test.cu                       | 19 +++++++++++++++++++
 3rdparty/mshadow/test/test.h                        | 19 +++++++++++++++++++
 3rdparty/mshadow/test/unpack.cu                     | 21 ++++++++++++++++++++-
 LICENSE                                             |  2 ++
 cpp-package/LICENSE                                 |  2 --
 tests/nightly/apache_rat_license_check/rat-excludes | 11 ++++++++++-
 105 files changed, 1891 insertions(+), 9 deletions(-)

diff --git a/3rdparty/mshadow/CHANGES.md b/3rdparty/mshadow/CHANGES.md
index 03bb169..9d76d7a 100644
--- a/3rdparty/mshadow/CHANGES.md
+++ b/3rdparty/mshadow/CHANGES.md
@@ -1,3 +1,20 @@
+<!--- 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. -->
+
 Change Log
 =====
 
diff --git a/3rdparty/mshadow/LICENSE b/3rdparty/mshadow/LICENSE
index ebf9611..13e990c 100644
--- a/3rdparty/mshadow/LICENSE
+++ b/3rdparty/mshadow/LICENSE
@@ -1,5 +1,3 @@
-Copyright (c) 2014 by Contributors
-
 Licensed 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
diff --git a/3rdparty/mshadow/README.md b/3rdparty/mshadow/README.md
index cc18964..6ff6cad 100644
--- a/3rdparty/mshadow/README.md
+++ b/3rdparty/mshadow/README.md
@@ -1,3 +1,20 @@
+<!--- 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. -->
+
 mshadow: Matrix Shadow
 ======
 [![Build Status](https://travis-ci.org/dmlc/mshadow.svg?branch=master)](https://travis-ci.org/dmlc/mshadow)
diff --git a/3rdparty/mshadow/doc/Doxyfile b/3rdparty/mshadow/doc/Doxyfile
index 3e83d47..eb9d16f 100644
--- a/3rdparty/mshadow/doc/Doxyfile
+++ b/3rdparty/mshadow/doc/Doxyfile
@@ -1,5 +1,22 @@
 # Doxyfile 1.8.8
 
+# 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.
+
 # This file describes the settings to be used by the documentation system
 # doxygen (www.doxygen.org) for a project.
 #
diff --git a/3rdparty/mshadow/doc/README.md b/3rdparty/mshadow/doc/README.md
index 2fed344..d8c31f6 100644
--- a/3rdparty/mshadow/doc/README.md
+++ b/3rdparty/mshadow/doc/README.md
@@ -1,3 +1,20 @@
+<!--- 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. -->
+
 MShadow Documentation
 =====
 This is the documentation for mshadow: A Lightweight CPU/GPU Matrix/Tensor Template Library in C++/CUDA. 
diff --git a/3rdparty/mshadow/doc/mkdoc.sh b/3rdparty/mshadow/doc/mkdoc.sh
index 3ee3d71..e325c39 100755
--- a/3rdparty/mshadow/doc/mkdoc.sh
+++ b/3rdparty/mshadow/doc/mkdoc.sh
@@ -1,4 +1,22 @@
 #!/bin/bash
+
+# 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.
+
 cd ..
 doxygen doc/Doxyfile
 cd doc
diff --git a/3rdparty/mshadow/guide/Makefile b/3rdparty/mshadow/guide/Makefile
index bad7a8e..9c14a90 100644
--- a/3rdparty/mshadow/guide/Makefile
+++ b/3rdparty/mshadow/guide/Makefile
@@ -1,3 +1,20 @@
+# 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.
+
 # set LD_LIBRARY_PATH
 export CC  = gcc
 export CXX = g++
diff --git a/3rdparty/mshadow/guide/README.md b/3rdparty/mshadow/guide/README.md
index 3f2e681..db99dc2 100644
--- a/3rdparty/mshadow/guide/README.md
+++ b/3rdparty/mshadow/guide/README.md
@@ -1,3 +1,20 @@
+<!--- 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. -->
+
 Tutorial of mshadow
 =====
 This is a beginner's tutorial for mshadow. If you like mshadow and have ideas to improve this tutorial, you are more than welcome to contribute :)
diff --git a/3rdparty/mshadow/guide/basic.cpp b/3rdparty/mshadow/guide/basic.cpp
index 8e90ac9..a7b2c36 100644
--- a/3rdparty/mshadow/guide/basic.cpp
+++ b/3rdparty/mshadow/guide/basic.cpp
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 // header file to use mshadow
 #include "mshadow/tensor.h"
 // this namespace contains all data structures, functions
diff --git a/3rdparty/mshadow/guide/basic_stream.cu b/3rdparty/mshadow/guide/basic_stream.cu
index 930fc54..89d59e6 100644
--- a/3rdparty/mshadow/guide/basic_stream.cu
+++ b/3rdparty/mshadow/guide/basic_stream.cu
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 // header file to use mshadow
 #include "mshadow/tensor.h"
 // this namespace contains all data structures, functions
diff --git a/3rdparty/mshadow/guide/config.mk b/3rdparty/mshadow/guide/config.mk
index 26431bb..ccc88cb 100644
--- a/3rdparty/mshadow/guide/config.mk
+++ b/3rdparty/mshadow/guide/config.mk
@@ -1,3 +1,20 @@
+# 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.
+
 #---------------------------------------------------------------------------------------
 #  mshadow: the configuration compile script
 #
diff --git a/3rdparty/mshadow/guide/defop.cpp b/3rdparty/mshadow/guide/defop.cpp
index 8aa1b5c..39714f8 100644
--- a/3rdparty/mshadow/guide/defop.cpp
+++ b/3rdparty/mshadow/guide/defop.cpp
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #include <cmath>
 // header file to use mshadow
 #include "mshadow/tensor.h"
diff --git a/3rdparty/mshadow/guide/exp-template/Makefile b/3rdparty/mshadow/guide/exp-template/Makefile
index 9063989..402fd22 100644
--- a/3rdparty/mshadow/guide/exp-template/Makefile
+++ b/3rdparty/mshadow/guide/exp-template/Makefile
@@ -1,3 +1,20 @@
+# 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.
+
 # set LD_LIBRARY_PATH
 export CC  = gcc
 export CXX = g++
diff --git a/3rdparty/mshadow/guide/exp-template/README.md b/3rdparty/mshadow/guide/exp-template/README.md
index 46e0019..389a427 100644
--- a/3rdparty/mshadow/guide/exp-template/README.md
+++ b/3rdparty/mshadow/guide/exp-template/README.md
@@ -1,3 +1,20 @@
+<!--- 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. -->
+
 Expression Template Tutorial
 ====
 This page explains how mshadow works. The main trick behind mshadow is called [Expression Template](http://en.wikipedia.org/wiki/Expression_templates).
diff --git a/3rdparty/mshadow/guide/exp-template/exp_lazy.cpp b/3rdparty/mshadow/guide/exp-template/exp_lazy.cpp
index 4e6a6b1..c7af13c 100644
--- a/3rdparty/mshadow/guide/exp-template/exp_lazy.cpp
+++ b/3rdparty/mshadow/guide/exp-template/exp_lazy.cpp
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 // Example Lazy evaluation code
 // for simplicity, we use struct and make all members public
 #include <cstdio>
diff --git a/3rdparty/mshadow/guide/exp-template/exp_template.cpp b/3rdparty/mshadow/guide/exp-template/exp_template.cpp
index 556b103..50b08f4 100644
--- a/3rdparty/mshadow/guide/exp-template/exp_template.cpp
+++ b/3rdparty/mshadow/guide/exp-template/exp_template.cpp
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 // Example code, expression template, and more length equations
 // for simplicity, we use struct and make all members public
 #include <cstdio>
diff --git a/3rdparty/mshadow/guide/exp-template/exp_template_op.cpp b/3rdparty/mshadow/guide/exp-template/exp_template_op.cpp
index ecc1be8..71a3df3 100644
--- a/3rdparty/mshadow/guide/exp-template/exp_template_op.cpp
+++ b/3rdparty/mshadow/guide/exp-template/exp_template_op.cpp
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 // Example code, expression template
 // with binary operator definition and extension
 // for simplicity, we use struct and make all members public
diff --git a/3rdparty/mshadow/guide/mshadow-ps/Makefile b/3rdparty/mshadow/guide/mshadow-ps/Makefile
index 58d64a3..41e9fb1 100644
--- a/3rdparty/mshadow/guide/mshadow-ps/Makefile
+++ b/3rdparty/mshadow/guide/mshadow-ps/Makefile
@@ -1,3 +1,20 @@
+# 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.
+
 # set LD_LIBRARY_PATH
 export CC  = gcc
 export CXX = g++
diff --git a/3rdparty/mshadow/guide/mshadow-ps/README.md b/3rdparty/mshadow/guide/mshadow-ps/README.md
index 146c7f0..d651ca6 100644
--- a/3rdparty/mshadow/guide/mshadow-ps/README.md
+++ b/3rdparty/mshadow/guide/mshadow-ps/README.md
@@ -1,3 +1,20 @@
+<!--- 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. -->
+
 mshadow-ps
 ====
 ### Parameter Server Interface for GPU Tensor
diff --git a/3rdparty/mshadow/guide/mshadow-ps/config.mk b/3rdparty/mshadow/guide/mshadow-ps/config.mk
index ed7af28..b2b9657 100644
--- a/3rdparty/mshadow/guide/mshadow-ps/config.mk
+++ b/3rdparty/mshadow/guide/mshadow-ps/config.mk
@@ -1,3 +1,20 @@
+# 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.
+
 #---------------------------------------------------------------------------------------
 #  mshadow: the configuration compile script
 #
diff --git a/3rdparty/mshadow/guide/mshadow-ps/dbstr.h b/3rdparty/mshadow/guide/mshadow-ps/dbstr.h
index 59a7135..a4aab47 100644
--- a/3rdparty/mshadow/guide/mshadow-ps/dbstr.h
+++ b/3rdparty/mshadow/guide/mshadow-ps/dbstr.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #pragma once
 #include <mshadow/tensor.h>
 #include <sstream>
diff --git a/3rdparty/mshadow/guide/mshadow-ps/dist_async_sum-inl.h b/3rdparty/mshadow/guide/mshadow-ps/dist_async_sum-inl.h
index 9b60460..bb53614 100644
--- a/3rdparty/mshadow/guide/mshadow-ps/dist_async_sum-inl.h
+++ b/3rdparty/mshadow/guide/mshadow-ps/dist_async_sum-inl.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 /**
  * @brief  Simple test of KVLayer
  */
diff --git a/3rdparty/mshadow/guide/mshadow-ps/dist_async_sum.cpp b/3rdparty/mshadow/guide/mshadow-ps/dist_async_sum.cpp
index 1189105..b157cbe 100644
--- a/3rdparty/mshadow/guide/mshadow-ps/dist_async_sum.cpp
+++ b/3rdparty/mshadow/guide/mshadow-ps/dist_async_sum.cpp
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #include "./dist_async_sum-inl.h"
 
 int CreateServerNode(int argc, char *argv[]) {
diff --git a/3rdparty/mshadow/guide/mshadow-ps/local.sh b/3rdparty/mshadow/guide/mshadow-ps/local.sh
index a965ea8..1a47d17 100755
--- a/3rdparty/mshadow/guide/mshadow-ps/local.sh
+++ b/3rdparty/mshadow/guide/mshadow-ps/local.sh
@@ -1,4 +1,22 @@
 #!/bin/bash
+
+# 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.
+
 # set -x
 # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../third_party/lib
 if [ $# -lt 3 ]; then
diff --git a/3rdparty/mshadow/guide/mshadow-ps/local_sum-inl.h b/3rdparty/mshadow/guide/mshadow-ps/local_sum-inl.h
index cfd5037..97ef221 100644
--- a/3rdparty/mshadow/guide/mshadow-ps/local_sum-inl.h
+++ b/3rdparty/mshadow/guide/mshadow-ps/local_sum-inl.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 // This is an example demonstrating the usage of mshadow ps
 #include <cstdio>
 // use openmp to launch multiple threads
diff --git a/3rdparty/mshadow/guide/mshadow-ps/local_sum.cpp b/3rdparty/mshadow/guide/mshadow-ps/local_sum.cpp
index 7f0eed0..c8752d0 100644
--- a/3rdparty/mshadow/guide/mshadow-ps/local_sum.cpp
+++ b/3rdparty/mshadow/guide/mshadow-ps/local_sum.cpp
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #include "./local_sum-inl.h"
 int main(int argc, char *argv[]) {
   return Run<mshadow::cpu>(argc, argv);
diff --git a/3rdparty/mshadow/guide/mshadow-ps/local_sum.cu b/3rdparty/mshadow/guide/mshadow-ps/local_sum.cu
index 6e83960..a474d1d 100644
--- a/3rdparty/mshadow/guide/mshadow-ps/local_sum.cu
+++ b/3rdparty/mshadow/guide/mshadow-ps/local_sum.cu
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #include "./local_sum-inl.h"
 int main(int argc, char *argv[]) {
   return Run<mshadow::gpu>(argc, argv);
diff --git a/3rdparty/mshadow/guide/neuralnet/Makefile b/3rdparty/mshadow/guide/neuralnet/Makefile
index 826384b..33e0ebf 100644
--- a/3rdparty/mshadow/guide/neuralnet/Makefile
+++ b/3rdparty/mshadow/guide/neuralnet/Makefile
@@ -1,3 +1,20 @@
+# 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.
+
 # set LD_LIBRARY_PATH
 export CC  = gcc
 export CXX = g++
diff --git a/3rdparty/mshadow/guide/neuralnet/README.md b/3rdparty/mshadow/guide/neuralnet/README.md
index dd181e7..2379a85 100644
--- a/3rdparty/mshadow/guide/neuralnet/README.md
+++ b/3rdparty/mshadow/guide/neuralnet/README.md
@@ -1,3 +1,20 @@
+<!--- 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. -->
+
 Example Neural Net code with MShadow
 ====
 
diff --git a/3rdparty/mshadow/guide/neuralnet/config.mk b/3rdparty/mshadow/guide/neuralnet/config.mk
index 6c10b79..03c20cb 100644
--- a/3rdparty/mshadow/guide/neuralnet/config.mk
+++ b/3rdparty/mshadow/guide/neuralnet/config.mk
@@ -1,3 +1,20 @@
+# 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.
+
 #---------------------------------------------------------------------------------------
 #  mshadow: the configuration compile script
 #
diff --git a/3rdparty/mshadow/guide/neuralnet/convnet.cu b/3rdparty/mshadow/guide/neuralnet/convnet.cu
index 5276338..8b41ebd 100644
--- a/3rdparty/mshadow/guide/neuralnet/convnet.cu
+++ b/3rdparty/mshadow/guide/neuralnet/convnet.cu
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 // this implements a simple convolution neural net: conv-maxpool-fullc
 #include <vector>
 // header file to use mshadow
diff --git a/3rdparty/mshadow/guide/neuralnet/nnet.cu b/3rdparty/mshadow/guide/neuralnet/nnet.cu
index 6ef8b0d..477a04a 100644
--- a/3rdparty/mshadow/guide/neuralnet/nnet.cu
+++ b/3rdparty/mshadow/guide/neuralnet/nnet.cu
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 // this implements a simple two layer neural net
 #include <vector>
 #include <cmath>
diff --git a/3rdparty/mshadow/guide/neuralnet/nnet_ps.cu b/3rdparty/mshadow/guide/neuralnet/nnet_ps.cu
index 5c03fb1..98fe7ef 100644
--- a/3rdparty/mshadow/guide/neuralnet/nnet_ps.cu
+++ b/3rdparty/mshadow/guide/neuralnet/nnet_ps.cu
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 // this implements a simple two layer Multi-GPU neural net
 // this implementation uses mshadow-ps to get gradient aggregation
 // between cards
diff --git a/3rdparty/mshadow/guide/neuralnet/util.h b/3rdparty/mshadow/guide/neuralnet/util.h
index f58203c..a14e27c 100644
--- a/3rdparty/mshadow/guide/neuralnet/util.h
+++ b/3rdparty/mshadow/guide/neuralnet/util.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #pragma once
 #include <assert.h>
 #include <cstdio>
diff --git a/3rdparty/mshadow/make/README.md b/3rdparty/mshadow/make/README.md
index 6ef24d6..fbe6f1a 100644
--- a/3rdparty/mshadow/make/README.md
+++ b/3rdparty/mshadow/make/README.md
@@ -1,3 +1,20 @@
+<!--- 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. -->
+
 Makefile Configuration of MShadow
 =====
 MShadow is a template library, you only need to include mshadow to use it. So this folder is not used to build mshadow library file.
diff --git a/3rdparty/mshadow/make/mshadow.mk b/3rdparty/mshadow/make/mshadow.mk
index 86155ea..85704ed 100644
--- a/3rdparty/mshadow/make/mshadow.mk
+++ b/3rdparty/mshadow/make/mshadow.mk
@@ -1,3 +1,20 @@
+# 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.
+
 #---------------------------------------------------------------------------------------
 #  mshadow configuration script
 #
diff --git a/3rdparty/mshadow/mshadow-ps/README.md b/3rdparty/mshadow/mshadow-ps/README.md
index 9c90cc9..39adad2 100644
--- a/3rdparty/mshadow/mshadow-ps/README.md
+++ b/3rdparty/mshadow/mshadow-ps/README.md
@@ -1,3 +1,20 @@
+<!--- 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. -->
+
 mshadow-ps
 ====
 This folder contains mshadow-ps parameter server interface for mshadow GPU/CPU Tensor. See [guide on mshadow-ps](../guide/mshadow-ps) for introduction of the interface.
diff --git a/3rdparty/mshadow/mshadow-ps/mshadow_ps.h b/3rdparty/mshadow/mshadow-ps/mshadow_ps.h
index a00e79a..f228078 100644
--- a/3rdparty/mshadow/mshadow-ps/mshadow_ps.h
+++ b/3rdparty/mshadow/mshadow-ps/mshadow_ps.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file mshadow_ps.h
diff --git a/3rdparty/mshadow/mshadow-ps/ps_dist-inl.h b/3rdparty/mshadow/mshadow-ps/ps_dist-inl.h
index 9bce0e1..dc76155 100644
--- a/3rdparty/mshadow/mshadow-ps/ps_dist-inl.h
+++ b/3rdparty/mshadow/mshadow-ps/ps_dist-inl.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file ps_dist-inl.h
diff --git a/3rdparty/mshadow/mshadow-ps/ps_local-inl.h b/3rdparty/mshadow/mshadow-ps/ps_local-inl.h
index ee4c55d..d78155e 100644
--- a/3rdparty/mshadow/mshadow-ps/ps_local-inl.h
+++ b/3rdparty/mshadow/mshadow-ps/ps_local-inl.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file ps_local-inl.h
diff --git a/3rdparty/mshadow/mshadow-ps/ps_rabit-inl.h b/3rdparty/mshadow/mshadow-ps/ps_rabit-inl.h
index 238932e..69722fc 100644
--- a/3rdparty/mshadow/mshadow-ps/ps_rabit-inl.h
+++ b/3rdparty/mshadow/mshadow-ps/ps_rabit-inl.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file ps_rabit-inl.h
diff --git a/3rdparty/mshadow/mshadow-ps/thread.h b/3rdparty/mshadow/mshadow-ps/thread.h
index a80dffc..dd176c9 100644
--- a/3rdparty/mshadow/mshadow-ps/thread.h
+++ b/3rdparty/mshadow/mshadow-ps/thread.h
@@ -1,3 +1,22 @@
+/*
+ * 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 by Contributors
  * \file thread.h
diff --git a/3rdparty/mshadow/mshadow-ps/thread_util.h b/3rdparty/mshadow/mshadow-ps/thread_util.h
index 185cfcf..4665536 100644
--- a/3rdparty/mshadow/mshadow-ps/thread_util.h
+++ b/3rdparty/mshadow/mshadow-ps/thread_util.h
@@ -1,3 +1,22 @@
+/*
+ * 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 by Contributors
  * \file thread_util.h
diff --git a/3rdparty/mshadow/mshadow/README.md b/3rdparty/mshadow/mshadow/README.md
index 86276af..cfb9a5f 100644
--- a/3rdparty/mshadow/mshadow/README.md
+++ b/3rdparty/mshadow/mshadow/README.md
@@ -1,3 +1,20 @@
+<!--- 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. -->
+
 Code Guide
 ====
 This readme contains notes about code in mshadow. MShadow generally follows Google's C++ Style.
diff --git a/3rdparty/mshadow/mshadow/base.h b/3rdparty/mshadow/mshadow/base.h
index 2e658cf..6469bbc 100755
--- a/3rdparty/mshadow/mshadow/base.h
+++ b/3rdparty/mshadow/mshadow/base.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file base.h
diff --git a/3rdparty/mshadow/mshadow/cuda/reduce.cuh b/3rdparty/mshadow/mshadow/cuda/reduce.cuh
index 921d5ad..b3d9c163b 100644
--- a/3rdparty/mshadow/mshadow/cuda/reduce.cuh
+++ b/3rdparty/mshadow/mshadow/cuda/reduce.cuh
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file reduce.cuh
diff --git a/3rdparty/mshadow/mshadow/cuda/tensor_gpu-inl.cuh b/3rdparty/mshadow/mshadow/cuda/tensor_gpu-inl.cuh
index 3ebe83c..a64d786 100755
--- a/3rdparty/mshadow/mshadow/cuda/tensor_gpu-inl.cuh
+++ b/3rdparty/mshadow/mshadow/cuda/tensor_gpu-inl.cuh
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file tensor_gpu-inl.cuh
diff --git a/3rdparty/mshadow/mshadow/dot_engine-inl.h b/3rdparty/mshadow/mshadow/dot_engine-inl.h
index d9abf29..225821e 100644
--- a/3rdparty/mshadow/mshadow/dot_engine-inl.h
+++ b/3rdparty/mshadow/mshadow/dot_engine-inl.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file dot_engine-inl.h
diff --git a/3rdparty/mshadow/mshadow/expr_engine-inl.h b/3rdparty/mshadow/mshadow/expr_engine-inl.h
index 6421ebc..a1b70ac 100644
--- a/3rdparty/mshadow/mshadow/expr_engine-inl.h
+++ b/3rdparty/mshadow/mshadow/expr_engine-inl.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file expr_engine-inl.h
diff --git a/3rdparty/mshadow/mshadow/expr_scalar-inl.h b/3rdparty/mshadow/mshadow/expr_scalar-inl.h
index 1ddaba4..64d39f6 100644
--- a/3rdparty/mshadow/mshadow/expr_scalar-inl.h
+++ b/3rdparty/mshadow/mshadow/expr_scalar-inl.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file expr_scalar-inl.h
diff --git a/3rdparty/mshadow/mshadow/expression.h b/3rdparty/mshadow/mshadow/expression.h
index 77f9431..6e5cca8 100644
--- a/3rdparty/mshadow/mshadow/expression.h
+++ b/3rdparty/mshadow/mshadow/expression.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file expression.h
diff --git a/3rdparty/mshadow/mshadow/extension.h b/3rdparty/mshadow/mshadow/extension.h
index 7af0f56..d12a85e 100644
--- a/3rdparty/mshadow/mshadow/extension.h
+++ b/3rdparty/mshadow/mshadow/extension.h
@@ -1,3 +1,22 @@
+/*
+ * 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 by Contributors
  * \file extension.h
diff --git a/3rdparty/mshadow/mshadow/extension/broadcast.h b/3rdparty/mshadow/mshadow/extension/broadcast.h
index ea138cc..88ffcf2 100644
--- a/3rdparty/mshadow/mshadow/extension/broadcast.h
+++ b/3rdparty/mshadow/mshadow/extension/broadcast.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file broadcast.h
diff --git a/3rdparty/mshadow/mshadow/extension/broadcast_with_axis.h b/3rdparty/mshadow/mshadow/extension/broadcast_with_axis.h
index 49605af..1fc348c 100644
--- a/3rdparty/mshadow/mshadow/extension/broadcast_with_axis.h
+++ b/3rdparty/mshadow/mshadow/extension/broadcast_with_axis.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2016 by Contributors
  * \file broadcast_with_axis.h
diff --git a/3rdparty/mshadow/mshadow/extension/channel_pool.h b/3rdparty/mshadow/mshadow/extension/channel_pool.h
index 60d1112..f796e95 100644
--- a/3rdparty/mshadow/mshadow/extension/channel_pool.h
+++ b/3rdparty/mshadow/mshadow/extension/channel_pool.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file channel_pool.h
diff --git a/3rdparty/mshadow/mshadow/extension/channel_unpool.h b/3rdparty/mshadow/mshadow/extension/channel_unpool.h
index 00ba279..48f5cc4 100644
--- a/3rdparty/mshadow/mshadow/extension/channel_unpool.h
+++ b/3rdparty/mshadow/mshadow/extension/channel_unpool.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file channel_pool.h
diff --git a/3rdparty/mshadow/mshadow/extension/choose.h b/3rdparty/mshadow/mshadow/extension/choose.h
index b139172..e0fcda1 100644
--- a/3rdparty/mshadow/mshadow/extension/choose.h
+++ b/3rdparty/mshadow/mshadow/extension/choose.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file choose.h
diff --git a/3rdparty/mshadow/mshadow/extension/complex.h b/3rdparty/mshadow/mshadow/extension/complex.h
index 8e79b7e..c2eea8a 100644
--- a/3rdparty/mshadow/mshadow/extension/complex.h
+++ b/3rdparty/mshadow/mshadow/extension/complex.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2016 by Contributors
  * \file complex.h
diff --git a/3rdparty/mshadow/mshadow/extension/concat.h b/3rdparty/mshadow/mshadow/extension/concat.h
index c51b1dc..387d38e 100644
--- a/3rdparty/mshadow/mshadow/extension/concat.h
+++ b/3rdparty/mshadow/mshadow/extension/concat.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file concat.h
diff --git a/3rdparty/mshadow/mshadow/extension/crop.h b/3rdparty/mshadow/mshadow/extension/crop.h
index 80096a2..5c53d7a 100644
--- a/3rdparty/mshadow/mshadow/extension/crop.h
+++ b/3rdparty/mshadow/mshadow/extension/crop.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file crop.h
diff --git a/3rdparty/mshadow/mshadow/extension/fill.h b/3rdparty/mshadow/mshadow/extension/fill.h
index 4ac62c1..a63b1c4 100644
--- a/3rdparty/mshadow/mshadow/extension/fill.h
+++ b/3rdparty/mshadow/mshadow/extension/fill.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2015 by Contributors
  * \file fill.h
diff --git a/3rdparty/mshadow/mshadow/extension/flip.h b/3rdparty/mshadow/mshadow/extension/flip.h
index 17d1894..b6f400a 100644
--- a/3rdparty/mshadow/mshadow/extension/flip.h
+++ b/3rdparty/mshadow/mshadow/extension/flip.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2016 by Contributors
  * \file flip.h
diff --git a/3rdparty/mshadow/mshadow/extension/implicit_gemm.h b/3rdparty/mshadow/mshadow/extension/implicit_gemm.h
index b4b88ea..27e993f 100644
--- a/3rdparty/mshadow/mshadow/extension/implicit_gemm.h
+++ b/3rdparty/mshadow/mshadow/extension/implicit_gemm.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file implicit_gemm.h
diff --git a/3rdparty/mshadow/mshadow/extension/mask.h b/3rdparty/mshadow/mshadow/extension/mask.h
index 0fd4cc6..0662d96 100644
--- a/3rdparty/mshadow/mshadow/extension/mask.h
+++ b/3rdparty/mshadow/mshadow/extension/mask.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2016 by Contributors
  * \file mask.h
diff --git a/3rdparty/mshadow/mshadow/extension/mirror.h b/3rdparty/mshadow/mshadow/extension/mirror.h
index 9e9edc9..af35950 100644
--- a/3rdparty/mshadow/mshadow/extension/mirror.h
+++ b/3rdparty/mshadow/mshadow/extension/mirror.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file mirror.h
diff --git a/3rdparty/mshadow/mshadow/extension/one_hot.h b/3rdparty/mshadow/mshadow/extension/one_hot.h
index 326d4c3..3432918 100644
--- a/3rdparty/mshadow/mshadow/extension/one_hot.h
+++ b/3rdparty/mshadow/mshadow/extension/one_hot.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file one_hot.h
diff --git a/3rdparty/mshadow/mshadow/extension/pack_col2patch.h b/3rdparty/mshadow/mshadow/extension/pack_col2patch.h
index 37f1a69..9887c13 100644
--- a/3rdparty/mshadow/mshadow/extension/pack_col2patch.h
+++ b/3rdparty/mshadow/mshadow/extension/pack_col2patch.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file pack_col2patch.h
diff --git a/3rdparty/mshadow/mshadow/extension/pad.h b/3rdparty/mshadow/mshadow/extension/pad.h
index 6622a02..eb04642 100644
--- a/3rdparty/mshadow/mshadow/extension/pad.h
+++ b/3rdparty/mshadow/mshadow/extension/pad.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file pad.h
diff --git a/3rdparty/mshadow/mshadow/extension/range.h b/3rdparty/mshadow/mshadow/extension/range.h
index ab49b6e..21bcb89 100644
--- a/3rdparty/mshadow/mshadow/extension/range.h
+++ b/3rdparty/mshadow/mshadow/extension/range.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file range.h
diff --git a/3rdparty/mshadow/mshadow/extension/reduce_with_axis.h b/3rdparty/mshadow/mshadow/extension/reduce_with_axis.h
index 26b6156..abd20d5 100644
--- a/3rdparty/mshadow/mshadow/extension/reduce_with_axis.h
+++ b/3rdparty/mshadow/mshadow/extension/reduce_with_axis.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2015 by Contributors
  * \file reduce_with_axis.h
diff --git a/3rdparty/mshadow/mshadow/extension/reduceto1d.h b/3rdparty/mshadow/mshadow/extension/reduceto1d.h
index 09a478a..825efd7 100644
--- a/3rdparty/mshadow/mshadow/extension/reduceto1d.h
+++ b/3rdparty/mshadow/mshadow/extension/reduceto1d.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file reduceto1d.h
diff --git a/3rdparty/mshadow/mshadow/extension/reshape.h b/3rdparty/mshadow/mshadow/extension/reshape.h
index b310fe6..0578084 100644
--- a/3rdparty/mshadow/mshadow/extension/reshape.h
+++ b/3rdparty/mshadow/mshadow/extension/reshape.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file reshape.h
diff --git a/3rdparty/mshadow/mshadow/extension/slice.h b/3rdparty/mshadow/mshadow/extension/slice.h
index d0c2662..038818f 100644
--- a/3rdparty/mshadow/mshadow/extension/slice.h
+++ b/3rdparty/mshadow/mshadow/extension/slice.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file slice.h
diff --git a/3rdparty/mshadow/mshadow/extension/slice_ex.h b/3rdparty/mshadow/mshadow/extension/slice_ex.h
index 7f46409..2789503 100644
--- a/3rdparty/mshadow/mshadow/extension/slice_ex.h
+++ b/3rdparty/mshadow/mshadow/extension/slice_ex.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file slice.h
diff --git a/3rdparty/mshadow/mshadow/extension/spatial_pool.h b/3rdparty/mshadow/mshadow/extension/spatial_pool.h
index c833fb4..ecb400b 100644
--- a/3rdparty/mshadow/mshadow/extension/spatial_pool.h
+++ b/3rdparty/mshadow/mshadow/extension/spatial_pool.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file spatial_pool.h
diff --git a/3rdparty/mshadow/mshadow/extension/spatial_unpool.h b/3rdparty/mshadow/mshadow/extension/spatial_unpool.h
index e9ca2df..58b21a7 100644
--- a/3rdparty/mshadow/mshadow/extension/spatial_unpool.h
+++ b/3rdparty/mshadow/mshadow/extension/spatial_unpool.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file spatial_unpool.h
diff --git a/3rdparty/mshadow/mshadow/extension/spatial_upsampling_nearest.h b/3rdparty/mshadow/mshadow/extension/spatial_upsampling_nearest.h
index 534fbdd..97f0870 100644
--- a/3rdparty/mshadow/mshadow/extension/spatial_upsampling_nearest.h
+++ b/3rdparty/mshadow/mshadow/extension/spatial_upsampling_nearest.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2015 by Contributors
  * \file spatial_upsampling.h
diff --git a/3rdparty/mshadow/mshadow/extension/swapaxis.h b/3rdparty/mshadow/mshadow/extension/swapaxis.h
index b79aba4..a4407a0 100644
--- a/3rdparty/mshadow/mshadow/extension/swapaxis.h
+++ b/3rdparty/mshadow/mshadow/extension/swapaxis.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file swapaxis.h
diff --git a/3rdparty/mshadow/mshadow/extension/take.h b/3rdparty/mshadow/mshadow/extension/take.h
index 76c4f47..b14029c 100644
--- a/3rdparty/mshadow/mshadow/extension/take.h
+++ b/3rdparty/mshadow/mshadow/extension/take.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2015 by Contributors
  * \file take.h
diff --git a/3rdparty/mshadow/mshadow/extension/take_grad.h b/3rdparty/mshadow/mshadow/extension/take_grad.h
index 4479b3e..f749e43 100644
--- a/3rdparty/mshadow/mshadow/extension/take_grad.h
+++ b/3rdparty/mshadow/mshadow/extension/take_grad.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2015 by Contributors
  * \file take_grad.h
diff --git a/3rdparty/mshadow/mshadow/extension/transpose.h b/3rdparty/mshadow/mshadow/extension/transpose.h
index 6640153..1834b45 100644
--- a/3rdparty/mshadow/mshadow/extension/transpose.h
+++ b/3rdparty/mshadow/mshadow/extension/transpose.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2016 by Contributors
  * \file transpose.h
diff --git a/3rdparty/mshadow/mshadow/extension/unpack_patch2col.h b/3rdparty/mshadow/mshadow/extension/unpack_patch2col.h
index ed473f8..621f880 100644
--- a/3rdparty/mshadow/mshadow/extension/unpack_patch2col.h
+++ b/3rdparty/mshadow/mshadow/extension/unpack_patch2col.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file unpack_patch2col.h
diff --git a/3rdparty/mshadow/mshadow/half.h b/3rdparty/mshadow/mshadow/half.h
index 1cc53ae..f2abab8 100644
--- a/3rdparty/mshadow/mshadow/half.h
+++ b/3rdparty/mshadow/mshadow/half.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2015 by Contributors
  * \file half.h
diff --git a/3rdparty/mshadow/mshadow/io.h b/3rdparty/mshadow/mshadow/io.h
index 2d0efc3..073c494 100644
--- a/3rdparty/mshadow/mshadow/io.h
+++ b/3rdparty/mshadow/mshadow/io.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file io.h
diff --git a/3rdparty/mshadow/mshadow/logging.h b/3rdparty/mshadow/mshadow/logging.h
index 5fc56af..666ca58 100644
--- a/3rdparty/mshadow/mshadow/logging.h
+++ b/3rdparty/mshadow/mshadow/logging.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2015 by Contributors
  * \file logging.h
diff --git a/3rdparty/mshadow/mshadow/packet-inl.h b/3rdparty/mshadow/mshadow/packet-inl.h
index 58cbc40..1b3d11a 100644
--- a/3rdparty/mshadow/mshadow/packet-inl.h
+++ b/3rdparty/mshadow/mshadow/packet-inl.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file packet-inl.h
diff --git a/3rdparty/mshadow/mshadow/packet/plain-inl.h b/3rdparty/mshadow/mshadow/packet/plain-inl.h
index de28ad7..ddcc4a7 100644
--- a/3rdparty/mshadow/mshadow/packet/plain-inl.h
+++ b/3rdparty/mshadow/mshadow/packet/plain-inl.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file plain-inl.h
diff --git a/3rdparty/mshadow/mshadow/packet/sse-inl.h b/3rdparty/mshadow/mshadow/packet/sse-inl.h
index 923a5f6..f104d5e 100644
--- a/3rdparty/mshadow/mshadow/packet/sse-inl.h
+++ b/3rdparty/mshadow/mshadow/packet/sse-inl.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file sse-inl.h
diff --git a/3rdparty/mshadow/mshadow/random.h b/3rdparty/mshadow/mshadow/random.h
index c136f4f..32526f0 100644
--- a/3rdparty/mshadow/mshadow/random.h
+++ b/3rdparty/mshadow/mshadow/random.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  *  \file random.h
diff --git a/3rdparty/mshadow/mshadow/stream_gpu-inl.h b/3rdparty/mshadow/mshadow/stream_gpu-inl.h
index 603da97..3998771 100644
--- a/3rdparty/mshadow/mshadow/stream_gpu-inl.h
+++ b/3rdparty/mshadow/mshadow/stream_gpu-inl.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file stream_gpu-inl.h
diff --git a/3rdparty/mshadow/mshadow/tensor.h b/3rdparty/mshadow/mshadow/tensor.h
index 0add5a8..8dd57e2 100755
--- a/3rdparty/mshadow/mshadow/tensor.h
+++ b/3rdparty/mshadow/mshadow/tensor.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file tensor.h
diff --git a/3rdparty/mshadow/mshadow/tensor_container.h b/3rdparty/mshadow/mshadow/tensor_container.h
index 8dee1de..4717434 100644
--- a/3rdparty/mshadow/mshadow/tensor_container.h
+++ b/3rdparty/mshadow/mshadow/tensor_container.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file tensor_container.h
diff --git a/3rdparty/mshadow/mshadow/tensor_cpu-inl.h b/3rdparty/mshadow/mshadow/tensor_cpu-inl.h
index 7531dd9..a1c9db0 100755
--- a/3rdparty/mshadow/mshadow/tensor_cpu-inl.h
+++ b/3rdparty/mshadow/mshadow/tensor_cpu-inl.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file tensor_cpu-inl.h
diff --git a/3rdparty/mshadow/mshadow/tensor_gpu-inl.h b/3rdparty/mshadow/mshadow/tensor_gpu-inl.h
index 009e5d6..e7dde27 100755
--- a/3rdparty/mshadow/mshadow/tensor_gpu-inl.h
+++ b/3rdparty/mshadow/mshadow/tensor_gpu-inl.h
@@ -1,3 +1,22 @@
+/*
+ * 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) 2014 by Contributors
  * \file tensor_gpu-inl.h
diff --git a/3rdparty/mshadow/scripts/travis_script.sh b/3rdparty/mshadow/scripts/travis_script.sh
index c0220eb..d801a25 100755
--- a/3rdparty/mshadow/scripts/travis_script.sh
+++ b/3rdparty/mshadow/scripts/travis_script.sh
@@ -1,3 +1,20 @@
+# 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.
+
 # main script of travis
 if [ ${TASK} == "lint" ]; then
     python3 dmlc-core/scripts/lint.py mshadow all mshadow mshadow-ps || exit -1
diff --git a/3rdparty/mshadow/test/Makefile b/3rdparty/mshadow/test/Makefile
index dc2d055..b493cd7 100644
--- a/3rdparty/mshadow/test/Makefile
+++ b/3rdparty/mshadow/test/Makefile
@@ -1,3 +1,20 @@
+# 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.
+
 # set LD_LIBRARY_PATH
 export CC  = gcc
 export CXX = g++
diff --git a/3rdparty/mshadow/test/pairtest.cu b/3rdparty/mshadow/test/pairtest.cu
index 56b0380..1f9538c 100644
--- a/3rdparty/mshadow/test/pairtest.cu
+++ b/3rdparty/mshadow/test/pairtest.cu
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #include "mshadow/tensor.h"
 #include "old/tensor.h"
 #include "assert.h"
@@ -102,4 +121,4 @@ int main(int argc, char** argv) {
   } else {
     RunTask<mshadow::gpu, Xmshadow::gpu>();
   }
-}
\ No newline at end of file
+}
diff --git a/3rdparty/mshadow/test/pool.cu b/3rdparty/mshadow/test/pool.cu
index 9641d53..c809a11 100644
--- a/3rdparty/mshadow/test/pool.cu
+++ b/3rdparty/mshadow/test/pool.cu
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #include "mshadow/tensor.h"
 #include "old/tensor.h"
 #include "assert.h"
@@ -66,4 +85,4 @@ int main(int argc, char** argv) {
   } else {
     RunTask<mshadow::gpu, Xmshadow::gpu>();
   }
-}
\ No newline at end of file
+}
diff --git a/3rdparty/mshadow/test/reshape.cu b/3rdparty/mshadow/test/reshape.cu
index c1ad52e..b8b944c 100644
--- a/3rdparty/mshadow/test/reshape.cu
+++ b/3rdparty/mshadow/test/reshape.cu
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #include "mshadow/tensor.h"
 #include "old/tensor.h"
 #include "assert.h"
@@ -71,4 +90,4 @@ int main(int argc, char** argv) {
   } else {
     RunTask<mshadow::gpu, Xmshadow::gpu>();
   }
-}
\ No newline at end of file
+}
diff --git a/3rdparty/mshadow/test/test.cu b/3rdparty/mshadow/test/test.cu
index 13f26dc..71cb40e 100644
--- a/3rdparty/mshadow/test/test.cu
+++ b/3rdparty/mshadow/test/test.cu
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #include "test.h"
 
 using namespace mshadow;
diff --git a/3rdparty/mshadow/test/test.h b/3rdparty/mshadow/test/test.h
index 2cfc515..27a542ba 100644
--- a/3rdparty/mshadow/test/test.h
+++ b/3rdparty/mshadow/test/test.h
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #ifndef TEST_H
 #define TEST_H
 
diff --git a/3rdparty/mshadow/test/unpack.cu b/3rdparty/mshadow/test/unpack.cu
index dd0c2b9..aea8837 100644
--- a/3rdparty/mshadow/test/unpack.cu
+++ b/3rdparty/mshadow/test/unpack.cu
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 #include "mshadow/tensor.h"
 #include "old/tensor.h"
 #include "assert.h"
@@ -82,4 +101,4 @@ int main(int argc, char** argv) {
   } else {
     RunTask<mshadow::gpu, Xmshadow::gpu>();
   }
-}
\ No newline at end of file
+}
diff --git a/LICENSE b/LICENSE
index 893e52b..235fbc3 100644
--- a/LICENSE
+++ b/LICENSE
@@ -307,6 +307,8 @@
          Licensed MIT © Zeno Rocha
     10. clipboard.min.js - Refer to https://zenorocha.github.io/clipboard.js
          Licensed MIT © Zeno Rocha
+    11. mx-theme - For details, see docs/python_docs/themes/mx-theme/LICENSE
+         Copyright (c) 2016 myyasuda
 
 
     =======================================================================================
diff --git a/cpp-package/LICENSE b/cpp-package/LICENSE
index 2525650..13e990c 100644
--- a/cpp-package/LICENSE
+++ b/cpp-package/LICENSE
@@ -1,5 +1,3 @@
-Copyright (c) 2015 by Contributors 
-
 Licensed 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
diff --git a/tests/nightly/apache_rat_license_check/rat-excludes b/tests/nightly/apache_rat_license_check/rat-excludes
index 9ec4b79..88c12b2 100755
--- a/tests/nightly/apache_rat_license_check/rat-excludes
+++ b/tests/nightly/apache_rat_license_check/rat-excludes
@@ -31,7 +31,16 @@ _includes/*
 .*ipynb
 .*json
 .*txt
-3rdparty/*
+ctc_include/*
+dlpack/*
+dmlc-core/*
+googletest/*
+mkldnn/*
+nvidia_cub/*
+onnx-tensorrt/*
+openmp/*
+ps-lite/*
+tvm/*
 R-package/*
 trunk/*
 .*\\.m