diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 62785db6..574ef2a6 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015-2016 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/Makefile b/Makefile index 3975ec92..46da016d 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2017 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # Top-level control of the building/installation/cleaning of various targets # # set empty to prevent any implicit rules from firing. diff --git a/bin/neon b/bin/neon index 0eb48308..8f63d02a 100755 --- a/bin/neon +++ b/bin/neon @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 neon run script. diff --git a/bin/nvis b/bin/nvis index d84779be..6932389c 100755 --- a/bin/nvis +++ b/bin/nvis @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** ''' neon visualization script. diff --git a/doc/Makefile b/doc/Makefile index 500a1518..4db56ecf 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 for Sphinx documentation # diff --git a/doc/source/activations.rst b/doc/source/activations.rst index 10acba49..9e95f28b 100644 --- a/doc/source/activations.rst +++ b/doc/source/activations.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2016 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/api.rst b/doc/source/api.rst index e18a561b..41bef2ca 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/backends.rst b/doc/source/backends.rst index 2ad8ec39..414907d0 100644 --- a/doc/source/backends.rst +++ b/doc/source/backends.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/callbacks.rst b/doc/source/callbacks.rst index 797fe4b5..bb9c3979 100644 --- a/doc/source/callbacks.rst +++ b/doc/source/callbacks.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2016 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/conf.py b/doc/source/conf.py index 92e3fb33..b658a49e 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -63,7 +63,7 @@ # General information about the project. project = u'neon' -copyright = u'2017, Nervana Systems Inc' +copyright = u'2018, Intel Corporation' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the diff --git a/doc/source/costs.rst b/doc/source/costs.rst index faad1a90..6aaf5248 100644 --- a/doc/source/costs.rst +++ b/doc/source/costs.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2016 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/datasets.rst b/doc/source/datasets.rst index 0375dcd5..7825d280 100644 --- a/doc/source/datasets.rst +++ b/doc/source/datasets.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/design.rst b/doc/source/design.rst index d0e16691..cdb99e7c 100644 --- a/doc/source/design.rst +++ b/doc/source/design.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/developer_guide.rst b/doc/source/developer_guide.rst index dfe65c1a..cdbc1f4d 100644 --- a/doc/source/developer_guide.rst +++ b/doc/source/developer_guide.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/faq.rst b/doc/source/faq.rst index 7268ab31..43510983 100644 --- a/doc/source/faq.rst +++ b/doc/source/faq.rst @@ -1,5 +1,5 @@ -.. --------------------------------------------------------------------------- -.. Copyright 2015 Nervana Systems Inc. +.. Copyright 2017-2018 Intel Corporation +.. .. 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 @@ -11,7 +11,6 @@ .. 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. -.. --------------------------------------------------------------------------- Frequently Asked Questions -------------------------- diff --git a/doc/source/index.rst b/doc/source/index.rst index b042e814..bf75860a 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015-2017 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/initializers.rst b/doc/source/initializers.rst index cf4c4b44..42e8d479 100644 --- a/doc/source/initializers.rst +++ b/doc/source/initializers.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/installation.rst b/doc/source/installation.rst index 65216563..5602b2ca 100644 --- a/doc/source/installation.rst +++ b/doc/source/installation.rst @@ -1,5 +1,5 @@ -.. --------------------------------------------------------------------------- -.. Copyright 2015 Nervana Systems Inc. +.. Copyright 2017-2018 Intel Corporation +.. .. 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 @@ -11,7 +11,6 @@ .. 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. -.. --------------------------------------------------------------------------- Installation =============== diff --git a/doc/source/layer_containers.rst b/doc/source/layer_containers.rst index e598db1a..218fd1c6 100644 --- a/doc/source/layer_containers.rst +++ b/doc/source/layer_containers.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/layers.rst b/doc/source/layers.rst index 48fc8fed..8c6048ff 100644 --- a/doc/source/layers.rst +++ b/doc/source/layers.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/ml_operational_layer.rst b/doc/source/ml_operational_layer.rst index 3b72c95d..670b357c 100644 --- a/doc/source/ml_operational_layer.rst +++ b/doc/source/ml_operational_layer.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/model_zoo.rst b/doc/source/model_zoo.rst index 1df41ca6..b72bf4bd 100644 --- a/doc/source/model_zoo.rst +++ b/doc/source/model_zoo.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2016 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/models.rst b/doc/source/models.rst index 6730ac31..8a07fdd4 100644 --- a/doc/source/models.rst +++ b/doc/source/models.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/optimizers.rst b/doc/source/optimizers.rst index e9c31ba7..da4afdb7 100644 --- a/doc/source/optimizers.rst +++ b/doc/source/optimizers.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/overview.rst b/doc/source/overview.rst index 992b272d..11ebbf33 100644 --- a/doc/source/overview.rst +++ b/doc/source/overview.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/previous_versions.rst b/doc/source/previous_versions.rst index 10b7a9de..9cbdbdeb 100644 --- a/doc/source/previous_versions.rst +++ b/doc/source/previous_versions.rst @@ -1,5 +1,7 @@ + .. --------------------------------------------------------------------------- -.. Copyright 2015-2017 Nervana Systems Inc. +.. Copyright 2016-2018 Intel Corporation +.. .. 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/doc/source/running_models.rst b/doc/source/running_models.rst index ab393daa..ee725c87 100644 --- a/doc/source/running_models.rst +++ b/doc/source/running_models.rst @@ -1,5 +1,5 @@ -.. --------------------------------------------------------------------------- -.. Copyright 2015-2017 Nervana Systems Inc. +.. Copyright 2017-2018 Intel Corporation +.. .. 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 @@ -11,7 +11,6 @@ .. 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. -.. --------------------------------------------------------------------------- Running models ============== diff --git a/examples/babi/demo.py b/examples/babi/demo.py index 616a1201..c189f231 100755 --- a/examples/babi/demo.py +++ b/examples/babi/demo.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Interactive demo based on Facebook Q&A dataset: bAbI diff --git a/examples/babi/train.py b/examples/babi/train.py index 20f27c51..9d7a7f5e 100755 --- a/examples/babi/train.py +++ b/examples/babi/train.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 that trains on the Facebook Q&A dataset: bAbI. diff --git a/examples/babi/util.py b/examples/babi/util.py index a4ad7383..a9a30baf 100644 --- a/examples/babi/util.py +++ b/examples/babi/util.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Utility functions for bAbI example and demo. """ diff --git a/examples/binary/train.py b/examples/binary/train.py index 08afe9e8..1bbd7a69 100755 --- a/examples/binary/train.py +++ b/examples/binary/train.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Trains BinaryNet on MNIST dataset. diff --git a/examples/char_lstm.py b/examples/char_lstm.py index ef52bcb1..7ab43107 100755 --- a/examples/char_lstm.py +++ b/examples/char_lstm.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Train a LSTM or GRU based recurrent network on the Penn Treebank dataset parsing on character-level. diff --git a/examples/char_rae.py b/examples/char_rae.py index f8de0a67..503334e5 100755 --- a/examples/char_rae.py +++ b/examples/char_rae.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Character-level recurrent autoencoder. This model shows how to use the Seq2Seq container class to build an Encoder-Decoder style RNN. diff --git a/examples/char_rnn.py b/examples/char_rnn.py index f48bacf5..d48106d7 100755 --- a/examples/char_rnn.py +++ b/examples/char_rnn.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Train a network with one recurrent layer of tanh units on the Penn treebank data parsing on character-level. diff --git a/examples/cifar10.py b/examples/cifar10.py index fe8d0523..1276d4f8 100755 --- a/examples/cifar10.py +++ b/examples/cifar10.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Small MLP with fully connected layers trained on CIFAR10 data. diff --git a/examples/cifar10_allcnn.py b/examples/cifar10_allcnn.py index 8bf62ef5..6b8c41fd 100755 --- a/examples/cifar10_allcnn.py +++ b/examples/cifar10_allcnn.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ AllCNN style convnet on CIFAR10 data. diff --git a/examples/cifar10_conv.py b/examples/cifar10_conv.py index 4c150f46..1b1d269f 100755 --- a/examples/cifar10_conv.py +++ b/examples/cifar10_conv.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Small convolutional neural network on CIFAR10 data. Showcases the use of cost scaling with the fp16 data format. diff --git a/examples/cifar10_msra/data.py b/examples/cifar10_msra/data.py index 7d329ffa..1f9af71d 100644 --- a/examples/cifar10_msra/data.py +++ b/examples/cifar10_msra/data.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import numpy as np import os from tqdm import tqdm diff --git a/examples/cifar10_msra/network.py b/examples/cifar10_msra/network.py index e7430cc3..f4444de1 100644 --- a/examples/cifar10_msra/network.py +++ b/examples/cifar10_msra/network.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.initializers import Kaiming from neon.layers import Conv, Pooling, GeneralizedCost, Activation, Affine from neon.layers import MergeSum, SkipNode, BatchNorm diff --git a/examples/cifar10_msra/train.py b/examples/cifar10_msra/train.py index b606d861..9f94f7ad 100755 --- a/examples/cifar10_msra/train.py +++ b/examples/cifar10_msra/train.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os from neon.optimizers import GradientDescentMomentum, Schedule from neon.transforms import TopKMisclassification diff --git a/examples/conv_autoencoder.py b/examples/conv_autoencoder.py index 3b0e13d7..c0803eac 100755 --- a/examples/conv_autoencoder.py +++ b/examples/conv_autoencoder.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Convolutional autoencoder example network on MNIST data set. diff --git a/examples/convnet-benchmarks/alexnet.py b/examples/convnet-benchmarks/alexnet.py index 46bd5f15..1088ec06 100755 --- a/examples/convnet-benchmarks/alexnet.py +++ b/examples/convnet-benchmarks/alexnet.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Alexnet Benchmark https://github.com/soumith/convnet-benchmarks diff --git a/examples/convnet-benchmarks/googlenet_v1.py b/examples/convnet-benchmarks/googlenet_v1.py index 5e591318..a8c6b020 100755 --- a/examples/convnet-benchmarks/googlenet_v1.py +++ b/examples/convnet-benchmarks/googlenet_v1.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ GoogLeNet v1 Benchmark https://github.com/soumith/convnet-benchmarks diff --git a/examples/convnet-benchmarks/overfeat.py b/examples/convnet-benchmarks/overfeat.py index d0c8cbb4..0cc994f2 100755 --- a/examples/convnet-benchmarks/overfeat.py +++ b/examples/convnet-benchmarks/overfeat.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Overfeat Benchmark https://github.com/soumith/convnet-benchmarks diff --git a/examples/convnet-benchmarks/vgg_a.py b/examples/convnet-benchmarks/vgg_a.py index b400a459..908b8a1d 100755 --- a/examples/convnet-benchmarks/vgg_a.py +++ b/examples/convnet-benchmarks/vgg_a.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ VGG_A Benchmark https://github.com/soumith/convnet-benchmarks diff --git a/examples/deep_dream.py b/examples/deep_dream.py index a38dbe36..2ce0296b 100755 --- a/examples/deep_dream.py +++ b/examples/deep_dream.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Deep Dream. diff --git a/examples/early_stopping.py b/examples/early_stopping.py index 88f49d73..1a957fa5 100755 --- a/examples/early_stopping.py +++ b/examples/early_stopping.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 that trains an MLP using early stopping. Training will stop when the stopping condition is satisfied diff --git a/examples/faster-rcnn/convert_xml_to_json.py b/examples/faster-rcnn/convert_xml_to_json.py index bce4b03a..874f00d5 100644 --- a/examples/faster-rcnn/convert_xml_to_json.py +++ b/examples/faster-rcnn/convert_xml_to_json.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import json import glob import collections diff --git a/examples/faster-rcnn/faster_rcnn.py b/examples/faster-rcnn/faster_rcnn.py index 72e508d6..b9a8e8c1 100644 --- a/examples/faster-rcnn/faster_rcnn.py +++ b/examples/faster-rcnn/faster_rcnn.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.initializers import Constant, Gaussian from neon.transforms import Rectlin, Identity, Softmax, PixelwiseSoftmax from neon.layers import Conv, Affine, BranchNode, Tree, Dropout, RoiPooling diff --git a/examples/faster-rcnn/inference.py b/examples/faster-rcnn/inference.py index 145a27bd..aaccfd3c 100755 --- a/examples/faster-rcnn/inference.py +++ b/examples/faster-rcnn/inference.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Test a trained Faster-RCNN model to do object detection using PASCAL VOC dataset. diff --git a/examples/faster-rcnn/ingest_kitti.py b/examples/faster-rcnn/ingest_kitti.py index 1484eba6..dae0ddd6 100644 --- a/examples/faster-rcnn/ingest_kitti.py +++ b/examples/faster-rcnn/ingest_kitti.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import print_function import os import glob diff --git a/examples/faster-rcnn/ingest_pascalvoc.py b/examples/faster-rcnn/ingest_pascalvoc.py index 38f15395..00d35ed7 100644 --- a/examples/faster-rcnn/ingest_pascalvoc.py +++ b/examples/faster-rcnn/ingest_pascalvoc.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from configargparse import ArgumentParser from convert_xml_to_json import convert_xml_to_json import numpy as np diff --git a/examples/faster-rcnn/objectlocalization.py b/examples/faster-rcnn/objectlocalization.py index a692a8a4..f9ce5539 100644 --- a/examples/faster-rcnn/objectlocalization.py +++ b/examples/faster-rcnn/objectlocalization.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Defines PASCAL_VOC datatset handling. """ diff --git a/examples/faster-rcnn/proposal_layer.py b/examples/faster-rcnn/proposal_layer.py index 330dea7b..eb3050ca 100644 --- a/examples/faster-rcnn/proposal_layer.py +++ b/examples/faster-rcnn/proposal_layer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Define a layer that takes Region Proposal Network's output and generate region proposals in the format of bounding boxes, compares with ground truth boxes diff --git a/examples/faster-rcnn/tests/conftest.py b/examples/faster-rcnn/tests/conftest.py index ece869dd..19a84248 100644 --- a/examples/faster-rcnn/tests/conftest.py +++ b/examples/faster-rcnn/tests/conftest.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ General functions for running the unit tests via pytest. """ diff --git a/examples/faster-rcnn/tests/test_anchor_target_layer.py b/examples/faster-rcnn/tests/test_anchor_target_layer.py index 386a2a1d..aa8cc8d1 100644 --- a/examples/faster-rcnn/tests/test_anchor_target_layer.py +++ b/examples/faster-rcnn/tests/test_anchor_target_layer.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import division diff --git a/examples/faster-rcnn/tests/test_proposal_layer.py b/examples/faster-rcnn/tests/test_proposal_layer.py index 9a0dcd0d..12d432ec 100644 --- a/examples/faster-rcnn/tests/test_proposal_layer.py +++ b/examples/faster-rcnn/tests/test_proposal_layer.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Test for proposal layer and proposal target layer. It uses the layer implementations from faster rcnn code (https://github.com/rbgirshick/py-faster-rcnn) and currently in the file diff --git a/examples/faster-rcnn/train.py b/examples/faster-rcnn/train.py index 03ad7819..c78c98fa 100755 --- a/examples/faster-rcnn/train.py +++ b/examples/faster-rcnn/train.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Train a Faster-RCNN model to do object detection using PASCAL VOC dataset. This training currently runs 1 image at a time. All parameters are from the diff --git a/examples/faster-rcnn/util.py b/examples/faster-rcnn/util.py index 008f6cbe..640bb8f1 100644 --- a/examples/faster-rcnn/util.py +++ b/examples/faster-rcnn/util.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Utility functions for Faster-RCNN model. Includes methods for: - Defining and loading VGG weights diff --git a/examples/faster-rcnn/voc_eval.py b/examples/faster-rcnn/voc_eval.py index 252d2246..656b362a 100644 --- a/examples/faster-rcnn/voc_eval.py +++ b/examples/faster-rcnn/voc_eval.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # -------------------------------------------------------- # Fast/er R-CNN # Licensed under The MIT License [see LICENSE for details] diff --git a/examples/gan/lsun_data.py b/examples/gan/lsun_data.py index 85128201..bb3a4111 100644 --- a/examples/gan/lsun_data.py +++ b/examples/gan/lsun_data.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import numpy as np import os import shutil diff --git a/examples/gan/lsun_dcgan.py b/examples/gan/lsun_dcgan.py index 9df1e3e1..381a04a5 100755 --- a/examples/gan/lsun_dcgan.py +++ b/examples/gan/lsun_dcgan.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Simple DCGAN implementation for generating LSUN bedroom images. """ diff --git a/examples/gan/lsun_wgan.py b/examples/gan/lsun_wgan.py index 511a0195..82c0d84c 100755 --- a/examples/gan/lsun_wgan.py +++ b/examples/gan/lsun_wgan.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Train WGAN to generate LSUN bedroom images. """ diff --git a/examples/gan/mnist_dcgan.py b/examples/gan/mnist_dcgan.py index a06529c5..805a177f 100755 --- a/examples/gan/mnist_dcgan.py +++ b/examples/gan/mnist_dcgan.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Simple DCGAN implementation for generating MNIST images. """ diff --git a/examples/gan/mnist_wgan.py b/examples/gan/mnist_wgan.py index 13a4ef6d..87eb8a7a 100755 --- a/examples/gan/mnist_wgan.py +++ b/examples/gan/mnist_wgan.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Train WGAN to generate MNIST images. """ diff --git a/examples/gan/network_gan.py b/examples/gan/network_gan.py index 142ffeb9..2d46b549 100644 --- a/examples/gan/network_gan.py +++ b/examples/gan/network_gan.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Generative Adversarial Network models for image data """ diff --git a/examples/image_caption.py b/examples/image_caption.py index dcf2be33..b796fb1e 100755 --- a/examples/image_caption.py +++ b/examples/image_caption.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Train an image captioning model on precomputed image features from a CNN and reference sentences. diff --git a/examples/imagenet/alexnet.py b/examples/imagenet/alexnet.py index 1d925c9a..8d318438 100755 --- a/examples/imagenet/alexnet.py +++ b/examples/imagenet/alexnet.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os from neon.util.argparser import NeonArgparser from neon.optimizers import GradientDescentMomentum, Schedule, MultiOptimizer diff --git a/examples/imagenet/alexnet.yaml b/examples/imagenet/alexnet.yaml index faf65cab..3037db71 100644 --- a/examples/imagenet/alexnet.yaml +++ b/examples/imagenet/alexnet.yaml @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** backend: gpu cost: CrossEntropyMulti diff --git a/examples/imagenet/alexnet_lrn.py b/examples/imagenet/alexnet_lrn.py index 05127204..8b26fd62 100644 --- a/examples/imagenet/alexnet_lrn.py +++ b/examples/imagenet/alexnet_lrn.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os from neon.util.argparser import NeonArgparser from neon.optimizers import GradientDescentMomentum, Schedule, MultiOptimizer diff --git a/examples/imagenet/allcnn.py b/examples/imagenet/allcnn.py index 4d9769ee..7e59cc01 100644 --- a/examples/imagenet/allcnn.py +++ b/examples/imagenet/allcnn.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os from neon.util.argparser import NeonArgparser from neon.optimizers import GradientDescentMomentum, Schedule diff --git a/examples/imagenet/data.py b/examples/imagenet/data.py index d922a753..c035f8dc 100644 --- a/examples/imagenet/data.py +++ b/examples/imagenet/data.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import numpy as np from neon.util.persist import get_data_cache_or_nothing from neon.data.dataloader_transformers import OneHot, TypeCast, BGRMeanSubtract diff --git a/examples/imagenet/i1k_msra.py b/examples/imagenet/i1k_msra.py index b0283923..fb6fa1d8 100755 --- a/examples/imagenet/i1k_msra.py +++ b/examples/imagenet/i1k_msra.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os from neon.util.argparser import NeonArgparser from neon.optimizers import GradientDescentMomentum, Schedule diff --git a/examples/imagenet/ingest.py b/examples/imagenet/ingest.py index 8c3dbfec..42b355ec 100644 --- a/examples/imagenet/ingest.py +++ b/examples/imagenet/ingest.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from builtins import str, zip from configargparse import ArgParser from itertools import repeat diff --git a/examples/imdb/inference.py b/examples/imdb/inference.py index f3727bdc..f06fcf01 100755 --- a/examples/imdb/inference.py +++ b/examples/imdb/inference.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 that does inference on an LSTM networks for amazon review analysis diff --git a/examples/imdb/prepare.py b/examples/imdb/prepare.py index 9fddc655..2002705a 100644 --- a/examples/imdb/prepare.py +++ b/examples/imdb/prepare.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from future import standard_library standard_library.install_aliases() # triggers E402, hence noqa below import h5py # noqa diff --git a/examples/imdb/train.py b/examples/imdb/train.py index 016f13ee..9f24aeab 100755 --- a/examples/imdb/train.py +++ b/examples/imdb/train.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Train a LSTM network for sentiment analysis on IMDB review data. diff --git a/examples/imdb_lstm.py b/examples/imdb_lstm.py index da7d5c3c..2c71d7d5 100755 --- a/examples/imdb_lstm.py +++ b/examples/imdb_lstm.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Train a LSTM or GRU network for sentiment analysis on IMDB review data. diff --git a/examples/mnist_branch.py b/examples/mnist_branch.py index 930b94eb..0ee73a9f 100755 --- a/examples/mnist_branch.py +++ b/examples/mnist_branch.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 that trains a small multi-layer perceptron with multiple branches on MNIST data. diff --git a/examples/mnist_hdf5.py b/examples/mnist_hdf5.py index 04492a93..48d83bfd 100755 --- a/examples/mnist_hdf5.py +++ b/examples/mnist_hdf5.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 for using the HDF5 data iterator on a MLP with the MNIST data. diff --git a/examples/mnist_merge.py b/examples/mnist_merge.py index eb09496a..fa2f7cd6 100755 --- a/examples/mnist_merge.py +++ b/examples/mnist_merge.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 demonstrating the use of merge layers training the MNIST data. diff --git a/examples/mnist_mlp.py b/examples/mnist_mlp.py index d14bf390..fab75757 100755 --- a/examples/mnist_mlp.py +++ b/examples/mnist_mlp.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Train a small multi-layer perceptron with fully connected layers on MNIST data. diff --git a/examples/mnist_mlp.yaml b/examples/mnist_mlp.yaml index bf996307..1c19148f 100644 --- a/examples/mnist_mlp.yaml +++ b/examples/mnist_mlp.yaml @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** backend: mkl epochs: 10 diff --git a/examples/multi_optimizer.py b/examples/multi_optimizer.py index fc643ba8..348443c9 100755 --- a/examples/multi_optimizer.py +++ b/examples/multi_optimizer.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 highlighting the ability to mix different optimizers in different layers, or different components of the same layer. diff --git a/examples/nmt/data.py b/examples/nmt/data.py index 18c7c802..05a53489 100755 --- a/examples/nmt/data.py +++ b/examples/nmt/data.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Utilities for handling the bilingual text dataset used for Neural Machine Translation. diff --git a/examples/nmt/train.py b/examples/nmt/train.py index fe40e54e..e09bae9e 100755 --- a/examples/nmt/train.py +++ b/examples/nmt/train.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Machine translation example using recurrent encoder-decoder. diff --git a/examples/rnn_copy.py b/examples/rnn_copy.py index bbddee53..c3cf2e12 100755 --- a/examples/rnn_copy.py +++ b/examples/rnn_copy.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Train a network with one GRU layer to perform the vector copy task. diff --git a/examples/skip-thought/data_iterator.py b/examples/skip-thought/data_iterator.py index 66538156..21b77343 100644 --- a/examples/skip-thought/data_iterator.py +++ b/examples/skip-thought/data_iterator.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import division import numpy as np diff --git a/examples/skip-thought/data_loader.py b/examples/skip-thought/data_loader.py index 82f84744..6bfcf793 100644 --- a/examples/skip-thought/data_loader.py +++ b/examples/skip-thought/data_loader.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import print_function import os diff --git a/examples/skip-thought/eval_sick.py b/examples/skip-thought/eval_sick.py index a2c43c82..823d0f2f 100644 --- a/examples/skip-thought/eval_sick.py +++ b/examples/skip-thought/eval_sick.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # -------------------------------------------------------- # Skip-Thoughts # Licensed under Apache License 2.0 [see LICENSE for details] diff --git a/examples/skip-thought/inference.py b/examples/skip-thought/inference.py index 1449e4c4..5a1ce465 100755 --- a/examples/skip-thought/inference.py +++ b/examples/skip-thought/inference.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import print_function import numpy as np diff --git a/examples/skip-thought/train.py b/examples/skip-thought/train.py index 02ab9552..097b1d1e 100755 --- a/examples/skip-thought/train.py +++ b/examples/skip-thought/train.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Train a sentence embedding model on the BookCorpus dataset. diff --git a/examples/skip-thought/util.py b/examples/skip-thought/util.py index 9db80b12..3299060e 100644 --- a/examples/skip-thought/util.py +++ b/examples/skip-thought/util.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os import numpy as np from collections import defaultdict, OrderedDict diff --git a/examples/ssd/datasets/convert_xml_to_json.py b/examples/ssd/datasets/convert_xml_to_json.py index 7872faaf..afed4fda 100644 --- a/examples/ssd/datasets/convert_xml_to_json.py +++ b/examples/ssd/datasets/convert_xml_to_json.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import json import glob import collections diff --git a/examples/ssd/datasets/ingest_kitti.py b/examples/ssd/datasets/ingest_kitti.py index 0aae0c57..1a3db2e8 100755 --- a/examples/ssd/datasets/ingest_kitti.py +++ b/examples/ssd/datasets/ingest_kitti.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import print_function import os import glob diff --git a/examples/ssd/datasets/ingest_pascalvoc.py b/examples/ssd/datasets/ingest_pascalvoc.py index 5ec04b88..d7d056d8 100755 --- a/examples/ssd/datasets/ingest_pascalvoc.py +++ b/examples/ssd/datasets/ingest_pascalvoc.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from argparse import ArgumentParser from convert_xml_to_json import convert_xml_to_json import numpy as np diff --git a/examples/ssd/datasets/ingest_spacenet.py b/examples/ssd/datasets/ingest_spacenet.py index 6515ff1c..192df795 100755 --- a/examples/ssd/datasets/ingest_spacenet.py +++ b/examples/ssd/datasets/ingest_spacenet.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import pickle import glob import os diff --git a/examples/ssd/inference.py b/examples/ssd/inference.py index 523c9f5e..a1e26260 100755 --- a/examples/ssd/inference.py +++ b/examples/ssd/inference.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.backends import gen_backend from neon.util.argparser import NeonArgparser from neon.models.model import Model diff --git a/examples/ssd/ssd_dataloader.py b/examples/ssd/ssd_dataloader.py index aa87f2c5..5cb60a90 100644 --- a/examples/ssd/ssd_dataloader.py +++ b/examples/ssd/ssd_dataloader.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import numpy as np from neon.data.dataloader_transformers import DataLoaderTransformer from neon.data.dataloader_transformers import TypeCast, BGRMeanSubtract diff --git a/examples/ssd/train.py b/examples/ssd/train.py index aa13ca8c..2119b043 100755 --- a/examples/ssd/train.py +++ b/examples/ssd/train.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.backends import gen_backend from neon.util.argparser import NeonArgparser from neon.util.persist import get_data_cache_dir diff --git a/examples/ssd/util/voc_eval.py b/examples/ssd/util/voc_eval.py index dc797400..b1637080 100644 --- a/examples/ssd/util/voc_eval.py +++ b/examples/ssd/util/voc_eval.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # -------------------------------------------------------- # Fast/er R-CNN # Licensed under The MIT License [see LICENSE for details] diff --git a/examples/text_generation_lstm.py b/examples/text_generation_lstm.py index e48fa16a..69a0b26f 100755 --- a/examples/text_generation_lstm.py +++ b/examples/text_generation_lstm.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Train a LSTM based recurrent network on the Shakespeare dataset and produce samples from the trained network. diff --git a/examples/timeseries/timeseries_lstm.py b/examples/timeseries/timeseries_lstm.py index 7347280f..1d24ae0a 100755 --- a/examples/timeseries/timeseries_lstm.py +++ b/examples/timeseries/timeseries_lstm.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Usage: python timeseries_lstm.py -e 10 -eval 1 diff --git a/examples/timeseries/utils.py b/examples/timeseries/utils.py index d66dc05f..0cb3a136 100644 --- a/examples/timeseries/utils.py +++ b/examples/timeseries/utils.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import division import numpy as np import math diff --git a/examples/video-c3d/data.py b/examples/video-c3d/data.py index 9221f7ea..a16f2244 100644 --- a/examples/video-c3d/data.py +++ b/examples/video-c3d/data.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os import numpy as np diff --git a/examples/video-c3d/demo.py b/examples/video-c3d/demo.py index fa7d065e..de115a64 100755 --- a/examples/video-c3d/demo.py +++ b/examples/video-c3d/demo.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os import numpy as np import subprocess diff --git a/examples/video-c3d/inference.py b/examples/video-c3d/inference.py index 9432587a..163bae21 100755 --- a/examples/video-c3d/inference.py +++ b/examples/video-c3d/inference.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os import numpy as np from neon import logger as neon_logger diff --git a/examples/video-c3d/network.py b/examples/video-c3d/network.py index fdd57839..cb011a68 100644 --- a/examples/video-c3d/network.py +++ b/examples/video-c3d/network.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.initializers import Constant, Gaussian from neon.layers import Conv, Dropout, Pooling, Affine, GeneralizedCost from neon.models import Model diff --git a/examples/video-c3d/train.py b/examples/video-c3d/train.py index 070bd8ad..fcb0f4f6 100755 --- a/examples/video-c3d/train.py +++ b/examples/video-c3d/train.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os from neon import logger as neon_logger from neon.optimizers import GradientDescentMomentum, Schedule, MultiOptimizer diff --git a/examples/whale_calls/data.py b/examples/whale_calls/data.py index 82f5260f..43c447a8 100644 --- a/examples/whale_calls/data.py +++ b/examples/whale_calls/data.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os import numpy as np from zipfile import ZipFile diff --git a/examples/whale_calls/make_submission.py b/examples/whale_calls/make_submission.py index 7fc1d189..f809577b 100644 --- a/examples/whale_calls/make_submission.py +++ b/examples/whale_calls/make_submission.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os import numpy as np from neon import logger as neon_logger diff --git a/examples/whale_calls/network.py b/examples/whale_calls/network.py index 931efa5a..000ad18f 100755 --- a/examples/whale_calls/network.py +++ b/examples/whale_calls/network.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.initializers import GlorotUniform from neon.layers import Conv, Pooling, GeneralizedCost, Affine, DeepBiRNN, RecurrentLast diff --git a/examples/whale_calls/train.py b/examples/whale_calls/train.py index ece16adb..f04d482a 100755 --- a/examples/whale_calls/train.py +++ b/examples/whale_calls/train.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os from neon import logger as neon_logger from neon.util.argparser import NeonArgparser diff --git a/examples/word_lstm.py b/examples/word_lstm.py index 66478397..5e6bb011 100755 --- a/examples/word_lstm.py +++ b/examples/word_lstm.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Train a LSTM or GRU based recurrent network on Penn Treebank data. diff --git a/install_mkl.sh b/install_mkl.sh index 78d29c3e..a56fd57e 100755 --- a/install_mkl.sh +++ b/install_mkl.sh @@ -1,18 +1,19 @@ #!/bin/bash -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** export CC= export CXX= intel=$1 diff --git a/neon/__init__.py b/neon/__init__.py index e12ae716..2c696256 100644 --- a/neon/__init__.py +++ b/neon/__init__.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Nervana's deep learning library """ diff --git a/neon/backends/__init__.py b/neon/backends/__init__.py index d1ba54cb..8b886bb0 100644 --- a/neon/backends/__init__.py +++ b/neon/backends/__init__.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Defines gen_backend function """ diff --git a/neon/backends/abstract_backend.py b/neon/backends/abstract_backend.py index 8a2ed638..41015384 100644 --- a/neon/backends/abstract_backend.py +++ b/neon/backends/abstract_backend.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Defines interface that any backend must implement """ diff --git a/neon/backends/autodiff.py b/neon/backends/autodiff.py index 4d04fee9..744715d7 100644 --- a/neon/backends/autodiff.py +++ b/neon/backends/autodiff.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Automatic differentiation of optrees diff --git a/neon/backends/backend.py b/neon/backends/backend.py index 21414511..862778eb 100644 --- a/neon/backends/backend.py +++ b/neon/backends/backend.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Defines Tensor and Backend class. """ diff --git a/neon/backends/conv_kernel_test.py b/neon/backends/conv_kernel_test.py index 4bc54d3f..38fe4ec3 100755 --- a/neon/backends/conv_kernel_test.py +++ b/neon/backends/conv_kernel_test.py @@ -1,17 +1,19 @@ #!/usr/bin/env python -# Copyright 2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** from __future__ import division from builtins import str import numpy as np diff --git a/neon/backends/convnet-benchmarks.py b/neon/backends/convnet-benchmarks.py index 5431e246..4067ef38 100755 --- a/neon/backends/convnet-benchmarks.py +++ b/neon/backends/convnet-benchmarks.py @@ -1,17 +1,19 @@ #!/usr/bin/python -# Copyright 2014-2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** from __future__ import division import numpy as np import pycuda.driver as drv diff --git a/neon/backends/convolution.py b/neon/backends/convolution.py index c4da0e18..0a6edd4a 100644 --- a/neon/backends/convolution.py +++ b/neon/backends/convolution.py @@ -1,16 +1,18 @@ -# Copyright 2014-2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** """ Python code to wrap convolution kernels """ diff --git a/neon/backends/cuda_templates.py b/neon/backends/cuda_templates.py index d1ce77e0..defd5a3a 100644 --- a/neon/backends/cuda_templates.py +++ b/neon/backends/cuda_templates.py @@ -1,17 +1,19 @@ # ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** # ---------------------------------------------------------------------------- """ Templates for cuda kernels: diff --git a/neon/backends/float_ew.py b/neon/backends/float_ew.py index beb4d50f..9b6adfad 100644 --- a/neon/backends/float_ew.py +++ b/neon/backends/float_ew.py @@ -1,17 +1,19 @@ # ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** # ---------------------------------------------------------------------------- """ Floating point elementwise operations on GPU. diff --git a/neon/backends/kernel_specs.py b/neon/backends/kernel_specs.py index cfa6364d..a1ce4424 100644 --- a/neon/backends/kernel_specs.py +++ b/neon/backends/kernel_specs.py @@ -1,16 +1,18 @@ -# Copyright 2014-2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** from builtins import str import re import os.path diff --git a/neon/backends/kernels/__init__.py b/neon/backends/kernels/__init__.py index a0abf389..25512361 100644 --- a/neon/backends/kernels/__init__.py +++ b/neon/backends/kernels/__init__.py @@ -1,13 +1,15 @@ -# Copyright 2015-2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/cuda/__init__.py b/neon/backends/kernels/cuda/__init__.py index a0abf389..25512361 100644 --- a/neon/backends/kernels/cuda/__init__.py +++ b/neon/backends/kernels/cuda/__init__.py @@ -1,13 +1,15 @@ -# Copyright 2015-2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/cuda/binary.py b/neon/backends/kernels/cuda/binary.py index 8b7ee0ff..c9648957 100644 --- a/neon/backends/kernels/cuda/binary.py +++ b/neon/backends/kernels/cuda/binary.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from pycuda.compiler import SourceModule from pycuda.tools import context_dependent_memoize diff --git a/neon/backends/kernels/cuda/lookuptable.py b/neon/backends/kernels/cuda/lookuptable.py index 17eedd4b..a4222446 100644 --- a/neon/backends/kernels/cuda/lookuptable.py +++ b/neon/backends/kernels/cuda/lookuptable.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from future.utils import native_str from pycuda.tools import context_dependent_memoize diff --git a/neon/backends/kernels/cuda/nms.py b/neon/backends/kernels/cuda/nms.py index 65c86679..6432c82e 100644 --- a/neon/backends/kernels/cuda/nms.py +++ b/neon/backends/kernels/cuda/nms.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # ------------------------------------------------------------------ # Fast R-CNN diff --git a/neon/backends/kernels/cuda/roipooling.py b/neon/backends/kernels/cuda/roipooling.py index c8e51da2..d9eb7d7d 100644 --- a/neon/backends/kernels/cuda/roipooling.py +++ b/neon/backends/kernels/cuda/roipooling.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # ------------------------------------------------------------------ # Fast R-CNN # Copyright (c) 2015 Microsoft diff --git a/neon/backends/kernels/sass/hconv_bprop_C1_N64.sass b/neon/backends/kernels/sass/hconv_bprop_C1_N64.sass index fb00d820..514dda66 100644 --- a/neon/backends/kernels/sass/hconv_bprop_C1_N64.sass +++ b/neon/backends/kernels/sass/hconv_bprop_C1_N64.sass @@ -1,18 +1,20 @@ # Kernel: hconv_bprop_C32_N64 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $int16; diff --git a/neon/backends/kernels/sass/hconv_updat_C128_K128.sass b/neon/backends/kernels/sass/hconv_updat_C128_K128.sass index d6c9c150..6dbb3cea 100644 --- a/neon/backends/kernels/sass/hconv_updat_C128_K128.sass +++ b/neon/backends/kernels/sass/hconv_updat_C128_K128.sass @@ -1,18 +1,20 @@ # Kernel: hconv_updat_C128_K128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $int16; diff --git a/neon/backends/kernels/sass/hconv_updat_C128_K64.sass b/neon/backends/kernels/sass/hconv_updat_C128_K64.sass index a40fcb85..3d2287eb 100644 --- a/neon/backends/kernels/sass/hconv_updat_C128_K64.sass +++ b/neon/backends/kernels/sass/hconv_updat_C128_K64.sass @@ -1,18 +1,20 @@ # Kernel: hconv_updat_C128_K64 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $int16; diff --git a/neon/backends/kernels/sass/hconv_xprop_X128_N128.sass b/neon/backends/kernels/sass/hconv_xprop_X128_N128.sass index 71bae4bb..6021cec0 100644 --- a/neon/backends/kernels/sass/hconv_xprop_X128_N128.sass +++ b/neon/backends/kernels/sass/hconv_xprop_X128_N128.sass @@ -1,17 +1,19 @@ -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $int16; diff --git a/neon/backends/kernels/sass/hconv_xprop_X128_N64.sass b/neon/backends/kernels/sass/hconv_xprop_X128_N64.sass index ce647172..a071c757 100644 --- a/neon/backends/kernels/sass/hconv_xprop_X128_N64.sass +++ b/neon/backends/kernels/sass/hconv_xprop_X128_N64.sass @@ -1,17 +1,19 @@ -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $int16; diff --git a/neon/backends/kernels/sass/hconv_xprop_X32_N128.sass b/neon/backends/kernels/sass/hconv_xprop_X32_N128.sass index e85f7d42..e0f664b9 100644 --- a/neon/backends/kernels/sass/hconv_xprop_X32_N128.sass +++ b/neon/backends/kernels/sass/hconv_xprop_X32_N128.sass @@ -1,17 +1,19 @@ -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $int16; diff --git a/neon/backends/kernels/sass/hconv_xprop_X64_N128.sass b/neon/backends/kernels/sass/hconv_xprop_X64_N128.sass index 38f81833..de802595 100644 --- a/neon/backends/kernels/sass/hconv_xprop_X64_N128.sass +++ b/neon/backends/kernels/sass/hconv_xprop_X64_N128.sass @@ -1,17 +1,19 @@ -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $int16; diff --git a/neon/backends/kernels/sass/hconv_xprop_X64_N64.sass b/neon/backends/kernels/sass/hconv_xprop_X64_N64.sass index 16b92c5a..9c4c5a46 100644 --- a/neon/backends/kernels/sass/hconv_xprop_X64_N64.sass +++ b/neon/backends/kernels/sass/hconv_xprop_X64_N64.sass @@ -1,17 +1,19 @@ -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $int16; diff --git a/neon/backends/kernels/sass/hgemm_common_128x128.sass b/neon/backends/kernels/sass/hgemm_common_128x128.sass index d6994831..fab2a4d1 100644 --- a/neon/backends/kernels/sass/hgemm_common_128x128.sass +++ b/neon/backends/kernels/sass/hgemm_common_128x128.sass @@ -1,18 +1,20 @@ # hgemm_common_128x128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- diff --git a/neon/backends/kernels/sass/hgemm_common_128x32.sass b/neon/backends/kernels/sass/hgemm_common_128x32.sass index 9d4860a1..4b383fbf 100644 --- a/neon/backends/kernels/sass/hgemm_common_128x32.sass +++ b/neon/backends/kernels/sass/hgemm_common_128x32.sass @@ -1,18 +1,20 @@ # hgemm_common_128x32 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 -# -# http://www.apache.org/licenses/LICENSE-2.0 -# +# +# 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. +# ****************************************************************************** --:-:1:-:1 LDS.U.128 j0Ay0, [readAs + 4x<0*128 + 00 + 0*8>]; --:-:1:-:1 LDS.U.128 j0Bx0, [readBs + 4x<0*32 + 00 + 0*8>]; diff --git a/neon/backends/kernels/sass/hgemm_common_128x64.sass b/neon/backends/kernels/sass/hgemm_common_128x64.sass index a375c03a..86b5ad80 100644 --- a/neon/backends/kernels/sass/hgemm_common_128x64.sass +++ b/neon/backends/kernels/sass/hgemm_common_128x64.sass @@ -1,18 +1,20 @@ # hgemm_common_128x64 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** --:-:1:-:1 LDS.U.128 j0Ay0, [readAs + 4x<0*128 + 00>]; diff --git a/neon/backends/kernels/sass/hgemm_common_32x128.sass b/neon/backends/kernels/sass/hgemm_common_32x128.sass index 3661b087..bce6bda8 100644 --- a/neon/backends/kernels/sass/hgemm_common_32x128.sass +++ b/neon/backends/kernels/sass/hgemm_common_32x128.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_common_32x128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 -# -# http://www.apache.org/licenses/LICENSE-2.0 -# +# +# 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. +# ****************************************************************************** --:-:1:-:1 LDS.U.128 j0Ay0, [readAs + 4x<0*32 + 00 + 0*8>]; --:-:1:-:1 LDS.U.128 j0Bx0, [readBs + 4x<0*128 + 00 + 0*8>]; diff --git a/neon/backends/kernels/sass/hgemm_nn_128x128.sass b/neon/backends/kernels/sass/hgemm_nn_128x128.sass index 0b4f460e..11d8623c 100644 --- a/neon/backends/kernels/sass/hgemm_nn_128x128.sass +++ b/neon/backends/kernels/sass/hgemm_nn_128x128.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_nn_128x128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $int16; diff --git a/neon/backends/kernels/sass/hgemm_nn_128x32.sass b/neon/backends/kernels/sass/hgemm_nn_128x32.sass index 33a4a9af..4987eac0 100644 --- a/neon/backends/kernels/sass/hgemm_nn_128x32.sass +++ b/neon/backends/kernels/sass/hgemm_nn_128x32.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_nn_128x32 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/hgemm_nn_128x64.sass b/neon/backends/kernels/sass/hgemm_nn_128x64.sass index 8e6c4570..a0a18b6b 100644 --- a/neon/backends/kernels/sass/hgemm_nn_128x64.sass +++ b/neon/backends/kernels/sass/hgemm_nn_128x64.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_nn_128x64 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/hgemm_nn_16x64.sass b/neon/backends/kernels/sass/hgemm_nn_16x64.sass index 1dfb9493..be83f01e 100644 --- a/neon/backends/kernels/sass/hgemm_nn_16x64.sass +++ b/neon/backends/kernels/sass/hgemm_nn_16x64.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_nn_16x64 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/hgemm_nn_32x128.sass b/neon/backends/kernels/sass/hgemm_nn_32x128.sass index 8c4510d4..92a20ba9 100644 --- a/neon/backends/kernels/sass/hgemm_nn_32x128.sass +++ b/neon/backends/kernels/sass/hgemm_nn_32x128.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_nn_32x128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/hgemm_nn_32x64.sass b/neon/backends/kernels/sass/hgemm_nn_32x64.sass index 56b813fe..8f884c23 100644 --- a/neon/backends/kernels/sass/hgemm_nn_32x64.sass +++ b/neon/backends/kernels/sass/hgemm_nn_32x64.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_nn_32x64 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/hgemm_nt_128x128.sass b/neon/backends/kernels/sass/hgemm_nt_128x128.sass index 29a50f07..6895e482 100644 --- a/neon/backends/kernels/sass/hgemm_nt_128x128.sass +++ b/neon/backends/kernels/sass/hgemm_nt_128x128.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_nt_128x128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- diff --git a/neon/backends/kernels/sass/hgemm_nt_16x64.sass b/neon/backends/kernels/sass/hgemm_nt_16x64.sass index ce5e6efa..50543bc2 100644 --- a/neon/backends/kernels/sass/hgemm_nt_16x64.sass +++ b/neon/backends/kernels/sass/hgemm_nt_16x64.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_nt_16x64 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/hgemm_nt_32x128.sass b/neon/backends/kernels/sass/hgemm_nt_32x128.sass index eef6e5e5..ec816f1c 100644 --- a/neon/backends/kernels/sass/hgemm_nt_32x128.sass +++ b/neon/backends/kernels/sass/hgemm_nt_32x128.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_nt_32x128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/hgemm_nt_32x32.sass b/neon/backends/kernels/sass/hgemm_nt_32x32.sass index 1225d7dc..474aa936 100644 --- a/neon/backends/kernels/sass/hgemm_nt_32x32.sass +++ b/neon/backends/kernels/sass/hgemm_nt_32x32.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_nt_32x32 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/hgemm_tn_128x128.sass b/neon/backends/kernels/sass/hgemm_tn_128x128.sass index c2beee18..0ac80669 100644 --- a/neon/backends/kernels/sass/hgemm_tn_128x128.sass +++ b/neon/backends/kernels/sass/hgemm_tn_128x128.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_tn_128x128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- diff --git a/neon/backends/kernels/sass/hgemm_tn_128x16.sass b/neon/backends/kernels/sass/hgemm_tn_128x16.sass index 5cd8cceb..02092192 100644 --- a/neon/backends/kernels/sass/hgemm_tn_128x16.sass +++ b/neon/backends/kernels/sass/hgemm_tn_128x16.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_tn_128x16 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/hgemm_tn_128x32.sass b/neon/backends/kernels/sass/hgemm_tn_128x32.sass index 239d5d33..67df4579 100644 --- a/neon/backends/kernels/sass/hgemm_tn_128x32.sass +++ b/neon/backends/kernels/sass/hgemm_tn_128x32.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_tn_128x32 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/hgemm_tn_128x64.sass b/neon/backends/kernels/sass/hgemm_tn_128x64.sass index 0404ab58..baf0686f 100644 --- a/neon/backends/kernels/sass/hgemm_tn_128x64.sass +++ b/neon/backends/kernels/sass/hgemm_tn_128x64.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_tn_128x64 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/persistent_rnn_bprop.sass b/neon/backends/kernels/sass/persistent_rnn_bprop.sass index ddddb22b..e110d7fc 100644 --- a/neon/backends/kernels/sass/persistent_rnn_bprop.sass +++ b/neon/backends/kernels/sass/persistent_rnn_bprop.sass @@ -1,18 +1,20 @@ # Kernel: presistent_birnn -# Copyright 2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/persistent_rnn_fprop.sass b/neon/backends/kernels/sass/persistent_rnn_fprop.sass index 6a115390..fe083782 100644 --- a/neon/backends/kernels/sass/persistent_rnn_fprop.sass +++ b/neon/backends/kernels/sass/persistent_rnn_fprop.sass @@ -1,18 +1,20 @@ # Kernel: presistent_birnn -# Copyright 2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/sconv_bprop_C1_N64.sass b/neon/backends/kernels/sass/sconv_bprop_C1_N64.sass index 070db8cf..d877f050 100644 --- a/neon/backends/kernels/sass/sconv_bprop_C1_N64.sass +++ b/neon/backends/kernels/sass/sconv_bprop_C1_N64.sass @@ -1,18 +1,20 @@ # Kernel: sconv_bprop_C32_N64 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/sconv_updat_C128_K128.sass b/neon/backends/kernels/sass/sconv_updat_C128_K128.sass index dfb6bea8..26aa49cd 100644 --- a/neon/backends/kernels/sass/sconv_updat_C128_K128.sass +++ b/neon/backends/kernels/sass/sconv_updat_C128_K128.sass @@ -1,18 +1,20 @@ # Kernel: sconv_updat_C128_K128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/sconv_updat_C128_K64.sass b/neon/backends/kernels/sass/sconv_updat_C128_K64.sass index 26cc64ce..f5e9c24a 100644 --- a/neon/backends/kernels/sass/sconv_updat_C128_K64.sass +++ b/neon/backends/kernels/sass/sconv_updat_C128_K64.sass @@ -1,18 +1,20 @@ # Kernel: sconv_updat_C128_K64 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/sconv_xprop_X128_N128.sass b/neon/backends/kernels/sass/sconv_xprop_X128_N128.sass index 8f91abaf..6fb131a6 100644 --- a/neon/backends/kernels/sass/sconv_xprop_X128_N128.sass +++ b/neon/backends/kernels/sass/sconv_xprop_X128_N128.sass @@ -1,17 +1,19 @@ -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $prefix = 's'; diff --git a/neon/backends/kernels/sass/sconv_xprop_X128_N64.sass b/neon/backends/kernels/sass/sconv_xprop_X128_N64.sass index d7bd0a1f..ffacaad5 100644 --- a/neon/backends/kernels/sass/sconv_xprop_X128_N64.sass +++ b/neon/backends/kernels/sass/sconv_xprop_X128_N64.sass @@ -1,17 +1,19 @@ -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $prefix = 's'; diff --git a/neon/backends/kernels/sass/sconv_xprop_X32_N128.sass b/neon/backends/kernels/sass/sconv_xprop_X32_N128.sass index 568e714a..0d876ded 100644 --- a/neon/backends/kernels/sass/sconv_xprop_X32_N128.sass +++ b/neon/backends/kernels/sass/sconv_xprop_X32_N128.sass @@ -1,17 +1,19 @@ -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $prefix = 's'; diff --git a/neon/backends/kernels/sass/sconv_xprop_X64_N128.sass b/neon/backends/kernels/sass/sconv_xprop_X64_N128.sass index b782b8af..02361cd7 100644 --- a/neon/backends/kernels/sass/sconv_xprop_X64_N128.sass +++ b/neon/backends/kernels/sass/sconv_xprop_X64_N128.sass @@ -1,17 +1,19 @@ -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $prefix = 's'; diff --git a/neon/backends/kernels/sass/sconv_xprop_X64_N64.sass b/neon/backends/kernels/sass/sconv_xprop_X64_N64.sass index b42fbea0..52002891 100644 --- a/neon/backends/kernels/sass/sconv_xprop_X64_N64.sass +++ b/neon/backends/kernels/sass/sconv_xprop_X64_N64.sass @@ -1,17 +1,19 @@ -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $prefix = 's'; diff --git a/neon/backends/kernels/sass/sgemm_common_128x128.sass b/neon/backends/kernels/sass/sgemm_common_128x128.sass index 703af8f0..ed00077a 100644 --- a/neon/backends/kernels/sass/sgemm_common_128x128.sass +++ b/neon/backends/kernels/sass/sgemm_common_128x128.sass @@ -1,18 +1,20 @@ # sgemm_common_128x128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** --:-:1:-:1 LDS.U.128 j0Ay0, [readAs + 4x<0*128 + 00>]; diff --git a/neon/backends/kernels/sass/sgemm_common_128x32.sass b/neon/backends/kernels/sass/sgemm_common_128x32.sass index 928ad6b3..c5ed0d99 100644 --- a/neon/backends/kernels/sass/sgemm_common_128x32.sass +++ b/neon/backends/kernels/sass/sgemm_common_128x32.sass @@ -1,18 +1,20 @@ # sgemm_common_128x32 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 -# -# http://www.apache.org/licenses/LICENSE-2.0 -# +# +# 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. +# ****************************************************************************** --:-:1:-:1 LDS.U.128 j0Ay0, [readAs + 4x<0*128 + 00 + 0*8>]; diff --git a/neon/backends/kernels/sass/sgemm_common_128x64.sass b/neon/backends/kernels/sass/sgemm_common_128x64.sass index ee1705eb..60b896f4 100644 --- a/neon/backends/kernels/sass/sgemm_common_128x64.sass +++ b/neon/backends/kernels/sass/sgemm_common_128x64.sass @@ -1,18 +1,20 @@ # sgemm_common_128x64 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** --:-:1:-:1 LDS.U.128 j0Ay0, [readAs + 4x<0*128 + 00>]; diff --git a/neon/backends/kernels/sass/sgemm_common_32x128.sass b/neon/backends/kernels/sass/sgemm_common_32x128.sass index da4d83d2..a4a46beb 100644 --- a/neon/backends/kernels/sass/sgemm_common_32x128.sass +++ b/neon/backends/kernels/sass/sgemm_common_32x128.sass @@ -1,18 +1,20 @@ # Kernel: hgemm_common_32x128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 -# -# http://www.apache.org/licenses/LICENSE-2.0 -# +# +# 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. +# ****************************************************************************** --:-:1:-:1 LDS.U.128 j0Ay0, [readAs + 4x<0*32 + 00 + 0*8>]; --:-:1:-:1 LDS.U.128 j0Bx0, [readBs + 4x<0*128 + 00 + 0*8>]; diff --git a/neon/backends/kernels/sass/sgemm_nn_128x128.sass b/neon/backends/kernels/sass/sgemm_nn_128x128.sass index 22b8782b..26347863 100644 --- a/neon/backends/kernels/sass/sgemm_nn_128x128.sass +++ b/neon/backends/kernels/sass/sgemm_nn_128x128.sass @@ -1,18 +1,20 @@ # Kernel: sgemm_nn_128x128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/sgemm_nn_128x32.sass b/neon/backends/kernels/sass/sgemm_nn_128x32.sass index 81947778..cfd18e68 100644 --- a/neon/backends/kernels/sass/sgemm_nn_128x32.sass +++ b/neon/backends/kernels/sass/sgemm_nn_128x32.sass @@ -1,18 +1,20 @@ # Kernel: sgemm_nn_128x32 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/sgemm_nn_128x64.sass b/neon/backends/kernels/sass/sgemm_nn_128x64.sass index 2fca9398..44bd26a3 100644 --- a/neon/backends/kernels/sass/sgemm_nn_128x64.sass +++ b/neon/backends/kernels/sass/sgemm_nn_128x64.sass @@ -1,18 +1,20 @@ # Kernel: sgemm_nn_128x64 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/sgemm_nn_32x128.sass b/neon/backends/kernels/sass/sgemm_nn_32x128.sass index e25c3a96..9ccbed6c 100644 --- a/neon/backends/kernels/sass/sgemm_nn_32x128.sass +++ b/neon/backends/kernels/sass/sgemm_nn_32x128.sass @@ -1,18 +1,20 @@ # Kernel: sgemm_nn_32x128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/sgemm_nn_rnn_128x32.sass b/neon/backends/kernels/sass/sgemm_nn_rnn_128x32.sass index 21b493dd..fdc13585 100644 --- a/neon/backends/kernels/sass/sgemm_nn_rnn_128x32.sass +++ b/neon/backends/kernels/sass/sgemm_nn_rnn_128x32.sass @@ -1,18 +1,20 @@ # Kernel: sgemm_nn_128x32 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/sgemm_nt_128x128.sass b/neon/backends/kernels/sass/sgemm_nt_128x128.sass index e01b4b50..707dc516 100644 --- a/neon/backends/kernels/sass/sgemm_nt_128x128.sass +++ b/neon/backends/kernels/sass/sgemm_nt_128x128.sass @@ -1,18 +1,20 @@ # Kernel: sgemm_nt_128x128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/sgemm_nt_32x128.sass b/neon/backends/kernels/sass/sgemm_nt_32x128.sass index 339c8252..054bd8fb 100644 --- a/neon/backends/kernels/sass/sgemm_nt_32x128.sass +++ b/neon/backends/kernels/sass/sgemm_nt_32x128.sass @@ -1,18 +1,20 @@ # Kernel: sgemm_nt_32x128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/sgemm_rnn_bprop_common_128x32.sass b/neon/backends/kernels/sass/sgemm_rnn_bprop_common_128x32.sass index 9f5919a6..eece9ac2 100644 --- a/neon/backends/kernels/sass/sgemm_rnn_bprop_common_128x32.sass +++ b/neon/backends/kernels/sass/sgemm_rnn_bprop_common_128x32.sass @@ -1,18 +1,20 @@ # sgemm_common_128x32 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** --:-:1:-:1 LDS.U.128 j0Ay0, [readAs + 4x<0*128 + 00 + 0*8>]; diff --git a/neon/backends/kernels/sass/sgemm_rnn_common_128x32.sass b/neon/backends/kernels/sass/sgemm_rnn_common_128x32.sass index 67bda6f2..080bf176 100644 --- a/neon/backends/kernels/sass/sgemm_rnn_common_128x32.sass +++ b/neon/backends/kernels/sass/sgemm_rnn_common_128x32.sass @@ -1,18 +1,20 @@ # sgemm_common_128x32 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** --:-:1:-:1 LDS.U.128 j0Ay0, [readAs + 4x<0*128 + 00 + 0*8>]; diff --git a/neon/backends/kernels/sass/sgemm_tn_128x128.sass b/neon/backends/kernels/sass/sgemm_tn_128x128.sass index 50990019..f333e76c 100644 --- a/neon/backends/kernels/sass/sgemm_tn_128x128.sass +++ b/neon/backends/kernels/sass/sgemm_tn_128x128.sass @@ -1,18 +1,20 @@ # Kernel: sgemm_tn_128x128 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/sgemm_tn_128x32.sass b/neon/backends/kernels/sass/sgemm_tn_128x32.sass index 0b9ffc17..2932435b 100644 --- a/neon/backends/kernels/sass/sgemm_tn_128x32.sass +++ b/neon/backends/kernels/sass/sgemm_tn_128x32.sass @@ -1,18 +1,20 @@ # Kernel: sgemm_tn_128x32 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/sgemm_tn_128x64.sass b/neon/backends/kernels/sass/sgemm_tn_128x64.sass index 74f13cc1..274592ac 100644 --- a/neon/backends/kernels/sass/sgemm_tn_128x64.sass +++ b/neon/backends/kernels/sass/sgemm_tn_128x64.sass @@ -1,18 +1,20 @@ # Kernel: sgemm_tn_128x64 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/sgemm_tn_rnn_bprop_128x32.sass b/neon/backends/kernels/sass/sgemm_tn_rnn_bprop_128x32.sass index 3db46129..4ccc0db0 100644 --- a/neon/backends/kernels/sass/sgemm_tn_rnn_bprop_128x32.sass +++ b/neon/backends/kernels/sass/sgemm_tn_rnn_bprop_128x32.sass @@ -1,18 +1,20 @@ # Kernel: sgemm_tn_128x32 -# Copyright 2014 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** diff --git a/neon/backends/kernels/sass/xconv_direct_updat_64x32.sass b/neon/backends/kernels/sass/xconv_direct_updat_64x32.sass index 803487e3..6f5c6f8f 100644 --- a/neon/backends/kernels/sass/xconv_direct_updat_64x32.sass +++ b/neon/backends/kernels/sass/xconv_direct_updat_64x32.sass @@ -1,17 +1,19 @@ -# Copyright 2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our ($type, $SN, $D); diff --git a/neon/backends/kernels/sass/xconv_direct_xprop_64x32.sass b/neon/backends/kernels/sass/xconv_direct_xprop_64x32.sass index 4720ab8a..7106bca7 100644 --- a/neon/backends/kernels/sass/xconv_direct_xprop_64x32.sass +++ b/neon/backends/kernels/sass/xconv_direct_xprop_64x32.sass @@ -1,17 +1,19 @@ -# Copyright 2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our ($type, $SN, $N2, $N1); diff --git a/neon/backends/kernels/sass/xconv_winograd_2x2_3x3_32x32.sass b/neon/backends/kernels/sass/xconv_winograd_2x2_3x3_32x32.sass index a8a1ef47..5e7a831a 100644 --- a/neon/backends/kernels/sass/xconv_winograd_2x2_3x3_32x32.sass +++ b/neon/backends/kernels/sass/xconv_winograd_2x2_3x3_32x32.sass @@ -1,17 +1,19 @@ -# Copyright 2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $type; diff --git a/neon/backends/kernels/sass/xconv_winograd_2x2_5x5_32x32.sass b/neon/backends/kernels/sass/xconv_winograd_2x2_5x5_32x32.sass index 0fcb767c..31d72c4d 100644 --- a/neon/backends/kernels/sass/xconv_winograd_2x2_5x5_32x32.sass +++ b/neon/backends/kernels/sass/xconv_winograd_2x2_5x5_32x32.sass @@ -1,17 +1,19 @@ -# Copyright 2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $type; diff --git a/neon/backends/kernels/sass/xconv_winograd_3x3_2x2_32x32.sass b/neon/backends/kernels/sass/xconv_winograd_3x3_2x2_32x32.sass index fe1dc077..a10f2b73 100644 --- a/neon/backends/kernels/sass/xconv_winograd_3x3_2x2_32x32.sass +++ b/neon/backends/kernels/sass/xconv_winograd_3x3_2x2_32x32.sass @@ -1,17 +1,19 @@ -# Copyright 2015 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our ($type, $IX, $D); diff --git a/neon/backends/kernels/sass/xconv_winograd_3x3_4x4_32x32.sass b/neon/backends/kernels/sass/xconv_winograd_3x3_4x4_32x32.sass index 20e8a9d7..2fded2ab 100644 --- a/neon/backends/kernels/sass/xconv_winograd_3x3_4x4_32x32.sass +++ b/neon/backends/kernels/sass/xconv_winograd_3x3_4x4_32x32.sass @@ -1,17 +1,19 @@ -# Copyright 2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our ($type, $D); diff --git a/neon/backends/kernels/sass/xconv_winograd_4x4_3x3_32x32.sass b/neon/backends/kernels/sass/xconv_winograd_4x4_3x3_32x32.sass index d4b2941a..5bc26539 100644 --- a/neon/backends/kernels/sass/xconv_winograd_4x4_3x3_32x32.sass +++ b/neon/backends/kernels/sass/xconv_winograd_4x4_3x3_32x32.sass @@ -1,17 +1,19 @@ -# Copyright 2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $type; diff --git a/neon/backends/kernels/sass/xconv_winograd_4x4_3x3_32x32_X.sass b/neon/backends/kernels/sass/xconv_winograd_4x4_3x3_32x32_X.sass index 15a0f0bd..30a8232d 100644 --- a/neon/backends/kernels/sass/xconv_winograd_4x4_3x3_32x32_X.sass +++ b/neon/backends/kernels/sass/xconv_winograd_4x4_3x3_32x32_X.sass @@ -1,17 +1,19 @@ -# Copyright 2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** [- our $type; diff --git a/neon/backends/kernels/sass/xconv_winograd_4x4_3x3_32x32_common.sass b/neon/backends/kernels/sass/xconv_winograd_4x4_3x3_32x32_common.sass index f2a06e6c..0b3f7e99 100644 --- a/neon/backends/kernels/sass/xconv_winograd_4x4_3x3_32x32_common.sass +++ b/neon/backends/kernels/sass/xconv_winograd_4x4_3x3_32x32_common.sass @@ -1,17 +1,19 @@ -# Copyright 2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** --:-:1:-:2 S2R Tid, SR_TID.X; diff --git a/neon/backends/layer_cpu.py b/neon/backends/layer_cpu.py index 1410c0ec..7caa89dd 100644 --- a/neon/backends/layer_cpu.py +++ b/neon/backends/layer_cpu.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ CPU backend layers """ diff --git a/neon/backends/layer_gpu.py b/neon/backends/layer_gpu.py index 442277c4..f82a5b2b 100644 --- a/neon/backends/layer_gpu.py +++ b/neon/backends/layer_gpu.py @@ -1,16 +1,18 @@ -# Copyright 2014-2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** """ Definition of the GPU layers These layers are mainly used for old benchmarking code, diff --git a/neon/backends/layer_mkl.py b/neon/backends/layer_mkl.py index 087609b2..9220e262 100644 --- a/neon/backends/layer_mkl.py +++ b/neon/backends/layer_mkl.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ MKL backend layers """ diff --git a/neon/backends/math_cpu.py b/neon/backends/math_cpu.py index 6c5041b7..b3a246c6 100644 --- a/neon/backends/math_cpu.py +++ b/neon/backends/math_cpu.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import sys import numpy as np from cffi import FFI diff --git a/neon/backends/mklEngine/Makefile b/neon/backends/mklEngine/Makefile index 7eaac36d..1be83478 100644 --- a/neon/backends/mklEngine/Makefile +++ b/neon/backends/mklEngine/Makefile @@ -1,18 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** SRCS :=$(wildcard src/*.h) MKL_ENGINE_SO := mklEngine.so diff --git a/neon/backends/mklEngine/src/MKLDNN.h b/neon/backends/mklEngine/src/MKLDNN.h index 86094e5c..ee6ede80 100644 --- a/neon/backends/mklEngine/src/MKLDNN.h +++ b/neon/backends/mklEngine/src/MKLDNN.h @@ -1,17 +1,18 @@ -/* - Copyright 2017 Nervana Systems Inc. - 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 - - 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 2017-2018 Intel Corporation +* +* 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 +* +* 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 _NEON_MKLDNN_H #define _NEON_MKLDNN_H diff --git a/neon/backends/mklEngine/src/batchNorm.c b/neon/backends/mklEngine/src/batchNorm.c index 3d696ea9..2280e8c2 100644 --- a/neon/backends/mklEngine/src/batchNorm.c +++ b/neon/backends/mklEngine/src/batchNorm.c @@ -1,17 +1,18 @@ -/* - Copyright 2017 Nervana Systems Inc. - 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 - - 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 2017-2018 Intel Corporation +* +* 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 +* +* 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 "MKLDNN.h" static void BatchNormInit( diff --git a/neon/backends/mklEngine/src/concat.c b/neon/backends/mklEngine/src/concat.c index e326cf81..9b394150 100644 --- a/neon/backends/mklEngine/src/concat.c +++ b/neon/backends/mklEngine/src/concat.c @@ -1,17 +1,18 @@ -/* - Copyright 2017 Nervana Systems Inc. - 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 - - 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 2017-2018 Intel Corporation +* +* 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 +* +* 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 "MKLDNN.h" #include "omp.h" diff --git a/neon/backends/mklEngine/src/conv.c b/neon/backends/mklEngine/src/conv.c index 9c39e466..bb773c29 100644 --- a/neon/backends/mklEngine/src/conv.c +++ b/neon/backends/mklEngine/src/conv.c @@ -1,17 +1,18 @@ -/* - Copyright 2017 Nervana Systems Inc. - 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 - - 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 2017-2018 Intel Corporation +* +* 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 +* +* 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 "MKLDNN.h" //convert tensor in MKL layout back to Numpy NCHW layout diff --git a/neon/backends/mklEngine/src/conv_dilate.c b/neon/backends/mklEngine/src/conv_dilate.c index 9d8cc074..db2d216e 100644 --- a/neon/backends/mklEngine/src/conv_dilate.c +++ b/neon/backends/mklEngine/src/conv_dilate.c @@ -1,17 +1,18 @@ -/* - Copyright 2017 Nervana Systems Inc. - 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 - - 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 2017-2018 Intel Corporation +* +* 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 +* +* 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 "MKLDNN.h" void im2col_cpu( diff --git a/neon/backends/mklEngine/src/math_cpu.c b/neon/backends/mklEngine/src/math_cpu.c index b19fdc33..ca863be2 100644 --- a/neon/backends/mklEngine/src/math_cpu.c +++ b/neon/backends/mklEngine/src/math_cpu.c @@ -1,17 +1,18 @@ -/* - Copyright 2017 Nervana Systems Inc. - 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 - - 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 2017-2018 Intel Corporation +* +* 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 +* +* 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 #include #include diff --git a/neon/backends/mklEngine/src/math_cpu.header b/neon/backends/mklEngine/src/math_cpu.header index c3802922..654329c8 100644 --- a/neon/backends/mklEngine/src/math_cpu.header +++ b/neon/backends/mklEngine/src/math_cpu.header @@ -1,17 +1,18 @@ -/* - Copyright 2017 Nervana Systems Inc. - 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 - - 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 2017-2018 Intel Corporation +* +* 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 +* +* 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. +*******************************************************************************/ void cmath_copy(const float* in_tensor, size_t sz, float* out_tensor); void cmath_neg(const float* in_tensor, size_t sz, float* out_tensor); void cmath_sqrt(const float* in_tensor, size_t sz, float* out_tensor); diff --git a/neon/backends/mklEngine/src/pooling.c b/neon/backends/mklEngine/src/pooling.c index a5ae3d0c..bee9d3c3 100644 --- a/neon/backends/mklEngine/src/pooling.c +++ b/neon/backends/mklEngine/src/pooling.c @@ -1,17 +1,18 @@ -/* - Copyright 2017 Nervana Systems Inc. - 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 - - 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 2017-2018 Intel Corporation +* +* 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 +* +* 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 "MKLDNN.h" #include diff --git a/neon/backends/mklEngine/src/relu.c b/neon/backends/mklEngine/src/relu.c index 83a66265..b5bf6c16 100644 --- a/neon/backends/mklEngine/src/relu.c +++ b/neon/backends/mklEngine/src/relu.c @@ -1,17 +1,18 @@ -/* - Copyright 2017 Nervana Systems Inc. - 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 - - 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 2017-2018 Intel Corporation +* +* 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 +* +* 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 "MKLDNN.h" static void Init_f( diff --git a/neon/backends/mklEngine/src/softmax.c b/neon/backends/mklEngine/src/softmax.c index 6eaf54c4..cf166218 100644 --- a/neon/backends/mklEngine/src/softmax.c +++ b/neon/backends/mklEngine/src/softmax.c @@ -1,17 +1,18 @@ -/* - Copyright 2017 Nervana Systems Inc. - 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 - - 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 2017-2018 Intel Corporation +* +* 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 +* +* 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 #include "MKLDNN.h" #include "omp.h" diff --git a/neon/backends/nervanacpu.py b/neon/backends/nervanacpu.py index a8caf49d..292c9a77 100644 --- a/neon/backends/nervanacpu.py +++ b/neon/backends/nervanacpu.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Our CPU based backend interface and tensor data structure. Our implementation wraps :mod:`numpy` ndarray and related operations diff --git a/neon/backends/nervanagpu.py b/neon/backends/nervanagpu.py index 2a4cd59f..2db0b475 100644 --- a/neon/backends/nervanagpu.py +++ b/neon/backends/nervanagpu.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Our GPU based backend interface and tensor data structure. """ diff --git a/neon/backends/nervanamkl.py b/neon/backends/nervanamkl.py index 8f75e56f..505e90e9 100644 --- a/neon/backends/nervanamkl.py +++ b/neon/backends/nervanamkl.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ MKL based backend interface and tensor data structure. """ diff --git a/neon/backends/util/check_gpu.py b/neon/backends/util/check_gpu.py index de79cb6b..de59afe6 100755 --- a/neon/backends/util/check_gpu.py +++ b/neon/backends/util/check_gpu.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # pylint: skip-file from builtins import str from neon import logger as neon_logger diff --git a/neon/backends/util/check_mkl.py b/neon/backends/util/check_mkl.py index 4e855f90..e6e52b06 100644 --- a/neon/backends/util/check_mkl.py +++ b/neon/backends/util/check_mkl.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon import logger as neon_logger import os import sys diff --git a/neon/backends/util/cuda_capability.c b/neon/backends/util/cuda_capability.c index 7f5a2dd6..b2f5843a 100644 --- a/neon/backends/util/cuda_capability.c +++ b/neon/backends/util/cuda_capability.c @@ -1,17 +1,18 @@ -/* - * Copyright 2015 Nervana Systems Inc. - * 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 - * - * 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 2017-2018 Intel Corporation +* +* 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 +* +* 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 #include diff --git a/neon/backends/winograd.py b/neon/backends/winograd.py index 5c0fb9af..4781d6af 100755 --- a/neon/backends/winograd.py +++ b/neon/backends/winograd.py @@ -1,18 +1,20 @@ #!/usr/bin/python -# Copyright 2015-2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** from __future__ import division import numpy as np from struct import pack, unpack diff --git a/neon/backends/winograd4.py b/neon/backends/winograd4.py index b4406e84..c7d3ef8c 100755 --- a/neon/backends/winograd4.py +++ b/neon/backends/winograd4.py @@ -1,18 +1,20 @@ #!/usr/bin/python -# Copyright 2015-2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** from __future__ import division import numpy as np #from ipdb import set_trace diff --git a/neon/backends/winograd5.py b/neon/backends/winograd5.py index 7b5a4d07..aa745897 100755 --- a/neon/backends/winograd5.py +++ b/neon/backends/winograd5.py @@ -1,18 +1,20 @@ #!/usr/bin/python -# Copyright 2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** from __future__ import division import numpy as np #from ipdb import set_trace diff --git a/neon/backends/winograd_conv.py b/neon/backends/winograd_conv.py index 71bbd552..b769e40b 100644 --- a/neon/backends/winograd_conv.py +++ b/neon/backends/winograd_conv.py @@ -1,16 +1,18 @@ -# Copyright 2014-2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** """ Python code to wrap convolution kernels """ diff --git a/neon/benchmark/__init__.py b/neon/benchmark/__init__.py index 6a0800e8..fa312d34 100644 --- a/neon/benchmark/__init__.py +++ b/neon/benchmark/__init__.py @@ -1,16 +1,17 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.benchmark.benchmark import Benchmark diff --git a/neon/benchmark/benchmark.py b/neon/benchmark/benchmark.py index b11a3a1a..4cd49e4c 100644 --- a/neon/benchmark/benchmark.py +++ b/neon/benchmark/benchmark.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from functools import wraps diff --git a/neon/benchmark/examples/alexnet_random_data.py b/neon/benchmark/examples/alexnet_random_data.py index 36ee4bb8..6dfc1155 100644 --- a/neon/benchmark/examples/alexnet_random_data.py +++ b/neon/benchmark/examples/alexnet_random_data.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Alexnet Benchmark https://github.com/soumith/convnet-benchmarks diff --git a/neon/callbacks/__init__.py b/neon/callbacks/__init__.py index 63d2e8c0..afa95ac2 100644 --- a/neon/callbacks/__init__.py +++ b/neon/callbacks/__init__.py @@ -1,15 +1,16 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.callbacks.callbacks import Callbacks diff --git a/neon/callbacks/callbacks.py b/neon/callbacks/callbacks.py index 23a3b725..62e50fae 100644 --- a/neon/callbacks/callbacks.py +++ b/neon/callbacks/callbacks.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import division from builtins import map, str, zip from future.utils import native diff --git a/neon/callbacks/plotting_callbacks.py b/neon/callbacks/plotting_callbacks.py index 51260aa2..518348a1 100644 --- a/neon/callbacks/plotting_callbacks.py +++ b/neon/callbacks/plotting_callbacks.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import division import logging import numpy as np diff --git a/neon/data/__init__.py b/neon/data/__init__.py index bbba521e..94446952 100644 --- a/neon/data/__init__.py +++ b/neon/data/__init__.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.data.dataiterator import NervanaDataIterator, ArrayIterator from neon.data.hdf5iterator import HDF5Iterator, HDF5IteratorOneHot, HDF5IteratorAutoencoder diff --git a/neon/data/aeon_shim.py b/neon/data/aeon_shim.py index 6655594a..72515b7f 100644 --- a/neon/data/aeon_shim.py +++ b/neon/data/aeon_shim.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import sys from neon import logger as neon_logger diff --git a/neon/data/dataiterator.py b/neon/data/dataiterator.py index a2aadcdb..6eee5827 100644 --- a/neon/data/dataiterator.py +++ b/neon/data/dataiterator.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Defines basic input datatset types. """ diff --git a/neon/data/datasets.py b/neon/data/datasets.py index f063812c..05b7d144 100644 --- a/neon/data/datasets.py +++ b/neon/data/datasets.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Functions used to load commonly available datasets. """ diff --git a/neon/data/hdf5iterator.py b/neon/data/hdf5iterator.py index f884a067..fb9d84f8 100644 --- a/neon/data/hdf5iterator.py +++ b/neon/data/hdf5iterator.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Defines basic input datatset types. """ diff --git a/neon/data/image.py b/neon/data/image.py index 1619ea7e..e7a3f26a 100644 --- a/neon/data/image.py +++ b/neon/data/image.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Class definitions for image data sets. """ diff --git a/neon/data/imagecaption.py b/neon/data/imagecaption.py index 0571c497..4fffadc1 100644 --- a/neon/data/imagecaption.py +++ b/neon/data/imagecaption.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from collections import Counter import numpy as np diff --git a/neon/data/indexer.py b/neon/data/indexer.py index 43144047..ef71501f 100644 --- a/neon/data/indexer.py +++ b/neon/data/indexer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from builtins import str, zip import os import glob diff --git a/neon/data/questionanswer.py b/neon/data/questionanswer.py index 43bf6711..dd177a5e 100644 --- a/neon/data/questionanswer.py +++ b/neon/data/questionanswer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from builtins import map import numpy as np diff --git a/neon/data/text.py b/neon/data/text.py index 64cf1d71..fcba7946 100644 --- a/neon/data/text.py +++ b/neon/data/text.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Defines text datatset handling. """ diff --git a/neon/data/text_preprocessing.py b/neon/data/text_preprocessing.py index 9a75aa38..6ff1e1fb 100644 --- a/neon/data/text_preprocessing.py +++ b/neon/data/text_preprocessing.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Defines text datatset preprocessing routines """ diff --git a/neon/data/ticker.py b/neon/data/ticker.py index 69b487bf..5391efd1 100644 --- a/neon/data/ticker.py +++ b/neon/data/ticker.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ For machine generated datasets. """ diff --git a/neon/initializers/__init__.py b/neon/initializers/__init__.py index 5b15e59a..b900aee9 100644 --- a/neon/initializers/__init__.py +++ b/neon/initializers/__init__.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.initializers.initializer import (Array, Constant, Gaussian, diff --git a/neon/initializers/initializer.py b/neon/initializers/initializer.py index 6d9b6d20..96ac5c0f 100644 --- a/neon/initializers/initializer.py +++ b/neon/initializers/initializer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import numpy as np from neon import NervanaObject diff --git a/neon/layers/__init__.py b/neon/layers/__init__.py index 67879f33..24d76f01 100644 --- a/neon/layers/__init__.py +++ b/neon/layers/__init__.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.layers.layer import (Linear, Bias, Affine, Conv, Convolution, GeneralizedCost, Dropout, Pooling, Activation, DataTransform, BatchNorm, BatchNormAutodiff, ShiftBatchNorm, Deconv, Deconvolution, GeneralizedCostMask, LookupTable, diff --git a/neon/layers/container.py b/neon/layers/container.py index c9409579..f05b5280 100644 --- a/neon/layers/container.py +++ b/neon/layers/container.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import division from builtins import str, zip, range diff --git a/neon/layers/layer.py b/neon/layers/layer.py index 247b41ad..730679e6 100644 --- a/neon/layers/layer.py +++ b/neon/layers/layer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import division from builtins import str, zip from functools import wraps diff --git a/neon/layers/recurrent.py b/neon/layers/recurrent.py index eb794484..57513e96 100644 --- a/neon/layers/recurrent.py +++ b/neon/layers/recurrent.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import division from builtins import range, zip import numpy as np diff --git a/neon/models/__init__.py b/neon/models/__init__.py index 15ffdffd..e22a8a98 100644 --- a/neon/models/__init__.py +++ b/neon/models/__init__.py @@ -1,15 +1,16 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.models.model import Model diff --git a/neon/models/model.py b/neon/models/model.py index 04eb7e12..683d15da 100644 --- a/neon/models/model.py +++ b/neon/models/model.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import division, print_function from builtins import str, zip from collections import OrderedDict diff --git a/neon/optimizers/__init__.py b/neon/optimizers/__init__.py index e570301b..85b75719 100644 --- a/neon/optimizers/__init__.py +++ b/neon/optimizers/__init__.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.optimizers.optimizer import (GradientDescentMomentum, RMSProp, Adagrad, Adadelta, Adam, ShiftAdaMax, Schedule, StepSchedule, PowerSchedule, ExpSchedule, PolySchedule, ShiftSchedule, MultiOptimizer) diff --git a/neon/optimizers/optimizer.py b/neon/optimizers/optimizer.py index 17078a09..3dbb4169 100644 --- a/neon/optimizers/optimizer.py +++ b/neon/optimizers/optimizer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import division from neon import NervanaObject from neon.util.persist import load_class diff --git a/neon/transforms/__init__.py b/neon/transforms/__init__.py index 5b9be3ab..f22fbc93 100644 --- a/neon/transforms/__init__.py +++ b/neon/transforms/__init__.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.transforms.activation import (Identity, Explin, Rectlin, Rectlinclip, Sign, Softmax, Tanh, Logistic, Normalizer, PixelwiseSoftmax) diff --git a/neon/transforms/activation.py b/neon/transforms/activation.py index 388784bf..c92cb286 100644 --- a/neon/transforms/activation.py +++ b/neon/transforms/activation.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import division from neon.transforms.transform import Transform diff --git a/neon/transforms/cost.py b/neon/transforms/cost.py index 49d0b279..476c74d4 100644 --- a/neon/transforms/cost.py +++ b/neon/transforms/cost.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import division from builtins import str from neon import NervanaObject diff --git a/neon/transforms/transform.py b/neon/transforms/transform.py index 1d341946..38ae5339 100644 --- a/neon/transforms/transform.py +++ b/neon/transforms/transform.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon import NervanaObject diff --git a/neon/util/argparser.py b/neon/util/argparser.py index 8c1831e3..57c8a029 100644 --- a/neon/util/argparser.py +++ b/neon/util/argparser.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Command line argument parser for neon deep learning library diff --git a/neon/util/compat.py b/neon/util/compat.py index 18c33363..ea5c7a54 100644 --- a/neon/util/compat.py +++ b/neon/util/compat.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Contains various functions and wrappers to make code Python 2 and Python 3 compatible. diff --git a/neon/util/display_information.py b/neon/util/display_information.py index 6eb5a694..77d5700b 100644 --- a/neon/util/display_information.py +++ b/neon/util/display_information.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Library for getting information of model, hardware, enviroment diff --git a/neon/util/load_experiment.py b/neon/util/load_experiment.py index f9a1df0b..b88124e7 100644 --- a/neon/util/load_experiment.py +++ b/neon/util/load_experiment.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import logging from neon.models.model import Model diff --git a/neon/util/modeldesc.py b/neon/util/modeldesc.py index 61f8b5e8..074f7fe3 100644 --- a/neon/util/modeldesc.py +++ b/neon/util/modeldesc.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from builtins import zip import numpy as np import re diff --git a/neon/util/persist.py b/neon/util/persist.py index e7bccbc7..01fbe6cd 100644 --- a/neon/util/persist.py +++ b/neon/util/persist.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2014-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import importlib import logging import os diff --git a/neon/util/shelver.py b/neon/util/shelver.py index f6324cb9..269d3712 100644 --- a/neon/util/shelver.py +++ b/neon/util/shelver.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from contextlib import contextmanager import shelve diff --git a/neon/util/update_dataset_cache.py b/neon/util/update_dataset_cache.py index eda7cdfb..26455d82 100644 --- a/neon/util/update_dataset_cache.py +++ b/neon/util/update_dataset_cache.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Script to convert old batch_writer dataset cache global means to new format. Old format is a full image mean while the new format has a single mean value diff --git a/neon/util/yaml_parse.py b/neon/util/yaml_parse.py index f2a0d70e..13f327da 100644 --- a/neon/util/yaml_parse.py +++ b/neon/util/yaml_parse.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Tools for parsing neon model definition files (YAML formatted) and generating neon model objects from the definition. diff --git a/neon/visualizations/data.py b/neon/visualizations/data.py index f41ffec0..62c01346 100644 --- a/neon/visualizations/data.py +++ b/neon/visualizations/data.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from __future__ import division from builtins import str diff --git a/neon/visualizations/figure.py b/neon/visualizations/figure.py index e2fc279e..2f0180a4 100644 --- a/neon/visualizations/figure.py +++ b/neon/visualizations/figure.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # Imports should not be a requirement for building documentation try: diff --git a/prepare_mkl.sh b/prepare_mkl.sh index cf84929f..362e64e3 100755 --- a/prepare_mkl.sh +++ b/prepare_mkl.sh @@ -1,18 +1,19 @@ #!/bin/sh -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 -ex FindLibrary() { diff --git a/setup.cfg b/setup.cfg index ded9c0fa..469c2a08 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,18 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** [flake8] exclude = .git,__init__.py,neon/backends/test_pool.py,neon/backends/kernel_specs.py,neon/backends/convnet-benchmarks.py,neon/backends/layer_gpu.py,neon/backends/nervanagpu.py,neon/backends/float_ew.py,neon/backends/make_kernels.py,neon/backends/kernels/cuda/pooling.py,neon/backends/cuda_batchnorm.py,neon/backends/winograd4.py,neon/backends/winograd.py,neon/backends/winograd_conv.py,neon/backends/winograd4.py,neon/backends/winograd5.py,neon/backends/convolution.py,neon/backends/conv_kernel_test.py diff --git a/setup.py b/setup.py index f6b9f055..9bc16b02 100755 --- a/setup.py +++ b/setup.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016-2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os from setuptools import setup, find_packages import subprocess @@ -41,7 +42,8 @@ if write_version: txt = "# " + ("-" * 77) + "\n" - txt += "# Copyright 2017 Nervana Systems Inc.\n" + txt += "# Copyright 2017-2018 Intel Corporation\n" + txt += "#\n" txt += "# Licensed under the Apache License, Version 2.0 " txt += "(the \"License\");\n" txt += "# you may not use this file except in compliance with the " diff --git a/tests/conftest.py b/tests/conftest.py index e69bcea1..5910c72e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ General functions for running the unit tests via pytest. """ diff --git a/tests/grad_funcs.py b/tests/grad_funcs.py index 7464673e..e6c16aa7 100644 --- a/tests/grad_funcs.py +++ b/tests/grad_funcs.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Generalized gradient testing applied to different layers and activations diff --git a/tests/test_acc_on.py b/tests/test_acc_on.py index d722b097..88ac4e7c 100644 --- a/tests/test_acc_on.py +++ b/tests/test_acc_on.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** ''' Test of the acc_on functionality ''' diff --git a/tests/test_activations.py b/tests/test_activations.py index 7816284d..4331fa68 100644 --- a/tests/test_activations.py +++ b/tests/test_activations.py @@ -1,16 +1,18 @@ -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** ''' Test of the activation functions ''' diff --git a/tests/test_backend_autodiff.py b/tests/test_backend_autodiff.py index 6cc6d40c..3166c208 100644 --- a/tests/test_backend_autodiff.py +++ b/tests/test_backend_autodiff.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # pylint: skip-file from builtins import zip diff --git a/tests/test_backend_autodiff_extra.py b/tests/test_backend_autodiff_extra.py index 69a12c20..fbf03fd0 100644 --- a/tests/test_backend_autodiff_extra.py +++ b/tests/test_backend_autodiff_extra.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # pylint: skip-file from builtins import zip import numpy as np diff --git a/tests/test_backend_batched_dot.py b/tests/test_backend_batched_dot.py index 6c0aadf8..825718aa 100644 --- a/tests/test_backend_batched_dot.py +++ b/tests/test_backend_batched_dot.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # pylint: skip-file """ diff --git a/tests/test_backend_compound_optree.py b/tests/test_backend_compound_optree.py index c27a1da5..0c9af430 100644 --- a/tests/test_backend_compound_optree.py +++ b/tests/test_backend_compound_optree.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # pylint: skip-file import itertools import numpy as np diff --git a/tests/test_backend_conv_layer.py b/tests/test_backend_conv_layer.py index e3099726..ee723110 100644 --- a/tests/test_backend_conv_layer.py +++ b/tests/test_backend_conv_layer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # pylint: skip-file """ diff --git a/tests/test_backend_copy_transpose.py b/tests/test_backend_copy_transpose.py index 3a32cbd4..9780de54 100644 --- a/tests/test_backend_copy_transpose.py +++ b/tests/test_backend_copy_transpose.py @@ -1,16 +1,18 @@ -# Copyright 2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** import numpy as np import itertools as itt import pytest diff --git a/tests/test_backend_hist.py b/tests/test_backend_hist.py index de9b33f9..0dd99245 100644 --- a/tests/test_backend_hist.py +++ b/tests/test_backend_hist.py @@ -1,16 +1,18 @@ -# Copyright 2014-2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** from builtins import str import numpy as np import itertools as itt diff --git a/tests/test_backend_lrn.py b/tests/test_backend_lrn.py index 0e6ac5cf..2caafd63 100644 --- a/tests/test_backend_lrn.py +++ b/tests/test_backend_lrn.py @@ -1,16 +1,18 @@ -# Copyright 2014-2016 Nervana Systems Inc. All rights reserved. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation # # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. +# ****************************************************************************** import numpy as np import pytest from neon import logger as neon_logger diff --git a/tests/test_backend_pool_layer.py b/tests/test_backend_pool_layer.py index caccc475..4474c9f5 100644 --- a/tests/test_backend_pool_layer.py +++ b/tests/test_backend_pool_layer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ To test pool layer operations between NervanaGPU, NervanaCPU, NervanaMKL against numpy. """ diff --git a/tests/test_backend_randomstate.py b/tests/test_backend_randomstate.py index 7b582454..7f058867 100644 --- a/tests/test_backend_randomstate.py +++ b/tests/test_backend_randomstate.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # pylint: skip-file import numpy as np import pytest diff --git a/tests/test_backend_reduction.py b/tests/test_backend_reduction.py index 8f02bd57..dde22895 100644 --- a/tests/test_backend_reduction.py +++ b/tests/test_backend_reduction.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # pylint: skip-file import itertools import numpy as np diff --git a/tests/test_backend_tensor.py b/tests/test_backend_tensor.py index 15fd8fcd..66bfaec7 100644 --- a/tests/test_backend_tensor.py +++ b/tests/test_backend_tensor.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # pylint: skip-file """ diff --git a/tests/test_beamsearch.py b/tests/test_beamsearch.py index 95a4736a..bcb0bc37 100644 --- a/tests/test_beamsearch.py +++ b/tests/test_beamsearch.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.backends import gen_backend from neon.initializers.initializer import Array diff --git a/tests/test_bilstm.py b/tests/test_bilstm.py index a5efd2bd..a2b6fe4c 100644 --- a/tests/test_bilstm.py +++ b/tests/test_bilstm.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** ''' Test of the BiLSTM layer ''' diff --git a/tests/test_birnn.py b/tests/test_birnn.py index e045cd50..802cfc1a 100644 --- a/tests/test_birnn.py +++ b/tests/test_birnn.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** ''' Test of the BiRNN layer ''' diff --git a/tests/test_bleuscore.py b/tests/test_bleuscore.py index 36954822..dc7993c4 100644 --- a/tests/test_bleuscore.py +++ b/tests/test_bleuscore.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** ''' Test BLEUScore metric against reference ''' diff --git a/tests/test_branch_layer.py b/tests/test_branch_layer.py index c318023c..ec7ebb8d 100644 --- a/tests/test_branch_layer.py +++ b/tests/test_branch_layer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Convolution layer tests """ diff --git a/tests/test_conv_layer.py b/tests/test_conv_layer.py index 4ae30e98..a56bb84b 100644 --- a/tests/test_conv_layer.py +++ b/tests/test_conv_layer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Convolution layer tests """ diff --git a/tests/test_costs.py b/tests/test_costs.py index fab8a755..fb383f58 100644 --- a/tests/test_costs.py +++ b/tests/test_costs.py @@ -1,16 +1,18 @@ -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** ''' Test of the cost functions ''' diff --git a/tests/test_dataset.py b/tests/test_dataset.py index cad8651b..45e79e06 100644 --- a/tests/test_dataset.py +++ b/tests/test_dataset.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import numpy as np import os diff --git a/tests/test_deconv_layer.py b/tests/test_deconv_layer.py index e918777b..478ad616 100644 --- a/tests/test_deconv_layer.py +++ b/tests/test_deconv_layer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import itertools as itt import numpy as np import pytest diff --git a/tests/test_dilated_conv.py b/tests/test_dilated_conv.py index 3301b7d6..c7930e71 100644 --- a/tests/test_dilated_conv.py +++ b/tests/test_dilated_conv.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Dilated convolution layer tests """ diff --git a/tests/test_gan.py b/tests/test_gan.py index 6cd99cf0..ffc7715c 100644 --- a/tests/test_gan.py +++ b/tests/test_gan.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Unit tests for Generative Adversarial Networks. Tests the API of the GenerativeAdversarial container and the GANCost cost function diff --git a/tests/test_global_deltas.py b/tests/test_global_deltas.py index 9766d5e4..d7f06d2f 100644 --- a/tests/test_global_deltas.py +++ b/tests/test_global_deltas.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import numpy as np import pytest diff --git a/tests/test_gradient_batchnorm.py b/tests/test_gradient_batchnorm.py index 71aed188..28227272 100644 --- a/tests/test_gradient_batchnorm.py +++ b/tests/test_gradient_batchnorm.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Generalized gradient testing applied to batchnorm layer diff --git a/tests/test_gradient_bias.py b/tests/test_gradient_bias.py index a1dbd9bd..d477c7be 100644 --- a/tests/test_gradient_bias.py +++ b/tests/test_gradient_bias.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Generalized gradient testing applied to bias layer diff --git a/tests/test_gradient_conv.py b/tests/test_gradient_conv.py index 0abedd31..12b16f2c 100644 --- a/tests/test_gradient_conv.py +++ b/tests/test_gradient_conv.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Generalized gradient testing applied to dilated conv layer diff --git a/tests/test_gradient_lrn.py b/tests/test_gradient_lrn.py index 5bba476e..01109037 100644 --- a/tests/test_gradient_lrn.py +++ b/tests/test_gradient_lrn.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Generalized gradient testing applied to lrn layer diff --git a/tests/test_gradient_mlp.py b/tests/test_gradient_mlp.py index 206f244e..89921b26 100644 --- a/tests/test_gradient_mlp.py +++ b/tests/test_gradient_mlp.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Generalized gradient testing applied to mlp/linear layer diff --git a/tests/test_gradient_pool.py b/tests/test_gradient_pool.py index 5b0cec34..445ab2ea 100644 --- a/tests/test_gradient_pool.py +++ b/tests/test_gradient_pool.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Generalized gradient testing applied to pooling layer diff --git a/tests/test_gru.py b/tests/test_gru.py index 3ae9591a..6c994967 100644 --- a/tests/test_gru.py +++ b/tests/test_gru.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 test compares the NEON GRU layer against a numpy reference GRU implementation and compares the NEON GRU bprop deltas to the gradients diff --git a/tests/test_hdf5iterator.py b/tests/test_hdf5iterator.py index 5dfac79e..359262e2 100644 --- a/tests/test_hdf5iterator.py +++ b/tests/test_hdf5iterator.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import os import math diff --git a/tests/test_initializers.py b/tests/test_initializers.py index 18c8e46a..8b8cb260 100644 --- a/tests/test_initializers.py +++ b/tests/test_initializers.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** ''' Tests for the initializer classes. ''' diff --git a/tests/test_linear_layer.py b/tests/test_linear_layer.py index 4feb3309..66640ab5 100644 --- a/tests/test_linear_layer.py +++ b/tests/test_linear_layer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** ''' Test of the mlp/linear layer ''' diff --git a/tests/test_lookuptable.py b/tests/test_lookuptable.py index fd5964b4..55d4bb31 100644 --- a/tests/test_lookuptable.py +++ b/tests/test_lookuptable.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** ''' Test of a LookupTable layer, which is often being used for word embedding ''' diff --git a/tests/test_lstm.py b/tests/test_lstm.py index 55a1eee4..d4cdaa07 100644 --- a/tests/test_lstm.py +++ b/tests/test_lstm.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 test compares the NEON LSTM layer against a numpy reference LSTM implementation and compares the NEON LSTM bprop deltas to the gradients diff --git a/tests/test_merge_layer.py b/tests/test_merge_layer.py index abb7783c..60e66a03 100644 --- a/tests/test_merge_layer.py +++ b/tests/test_merge_layer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** ''' Test of the merge layer with linear layers ''' diff --git a/tests/test_mergebroadcast_layer.py b/tests/test_mergebroadcast_layer.py index 67526fa1..46267768 100644 --- a/tests/test_mergebroadcast_layer.py +++ b/tests/test_mergebroadcast_layer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Convolution layer tests """ diff --git a/tests/test_mergesum_layer.py b/tests/test_mergesum_layer.py index 4d215e66..dc1ce9a3 100644 --- a/tests/test_mergesum_layer.py +++ b/tests/test_mergesum_layer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Convolution layer tests """ diff --git a/tests/test_misc.py b/tests/test_misc.py index 48339e85..82335d19 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import logging import numpy as np diff --git a/tests/test_model.py b/tests/test_model.py index 238dccd0..970270fb 100644 --- a/tests/test_model.py +++ b/tests/test_model.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from builtins import zip import numpy as np import os diff --git a/tests/test_nms.py b/tests/test_nms.py index 7ca1bbdc..180b5b17 100644 --- a/tests/test_nms.py +++ b/tests/test_nms.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** # pylint: skip-file """ diff --git a/tests/test_optimizer.py b/tests/test_optimizer.py index ef1b4aed..a68ff891 100644 --- a/tests/test_optimizer.py +++ b/tests/test_optimizer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** ''' Test of the optimizers diff --git a/tests/test_pool_layer.py b/tests/test_pool_layer.py index 00a5329c..54e7ceb9 100644 --- a/tests/test_pool_layer.py +++ b/tests/test_pool_layer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Pooling layer tests """ diff --git a/tests/test_print_stats.py b/tests/test_print_stats.py index 93c5766d..ca6282eb 100644 --- a/tests/test_print_stats.py +++ b/tests/test_print_stats.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import numpy as np import pytest diff --git a/tests/test_recurrent.py b/tests/test_recurrent.py index 5310a625..6b9d0768 100644 --- a/tests/test_recurrent.py +++ b/tests/test_recurrent.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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 test compares the NEON recurrent layer against a numpy reference recurrent implementation and compares the NEON recurrent bprop deltas to the gradients diff --git a/tests/test_recurrent_output.py b/tests/test_recurrent_output.py index 5bba0251..f18cb6f9 100644 --- a/tests/test_recurrent_output.py +++ b/tests/test_recurrent_output.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** ''' Test of the recurrent outputs layers. ''' diff --git a/tests/test_reshape_layer.py b/tests/test_reshape_layer.py index 3a823423..5cd959aa 100644 --- a/tests/test_reshape_layer.py +++ b/tests/test_reshape_layer.py @@ -1,18 +1,19 @@ #!/usr/bin/env python -# ---------------------------------------------------------------------------- -# Copyright 2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2017-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import numpy as np import itertools as itt from neon.backends import gen_backend diff --git a/tests/test_roipooling_layer.py b/tests/test_roipooling_layer.py index 5b5ac7a7..001de30e 100644 --- a/tests/test_roipooling_layer.py +++ b/tests/test_roipooling_layer.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** ''' Test of the ROI pooling layer ''' diff --git a/tests/test_schedule.py b/tests/test_schedule.py index 0aa1a5de..81b9af22 100644 --- a/tests/test_schedule.py +++ b/tests/test_schedule.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import numpy as np diff --git a/tests/test_time.py b/tests/test_time.py index 86324230..5fa78d55 100644 --- a/tests/test_time.py +++ b/tests/test_time.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2017 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** import numpy as np import pytest diff --git a/tests/test_wrapper_layers.py b/tests/test_wrapper_layers.py index 4a53abc5..aea0edcc 100644 --- a/tests/test_wrapper_layers.py +++ b/tests/test_wrapper_layers.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** from neon.initializers.initializer import Uniform from neon.transforms.activation import Rectlin from neon.layers.layer import Linear, Convolution, Convolution_bias, Conv, Bias, Activation, Affine diff --git a/tests/utils.py b/tests/utils.py index 43126e4b..6cc87721 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,17 +1,18 @@ -# ---------------------------------------------------------------------------- -# Copyright 2015-2016 Nervana Systems Inc. +# ****************************************************************************** +# Copyright 2014-2018 Intel Corporation +# # 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. -# ---------------------------------------------------------------------------- +# ****************************************************************************** """ Utility functions for testing