From 6f3f24be19c6feca083f4e10e32977e5ae96492a Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=EC=83=81=EA=B7=9C/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Principal=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Wed, 2 May 2018 13:19:14 +0900 Subject: [PATCH] Prepend license to tools/* (#965) Related issue: #840 Signed-off-by: Sanggyu Lee --- tools/extract_weights_from_tflite/extract.py | 15 +++++++++++++++ tools/extract_weights_from_tflite/extract_from_tflite.sh | 15 +++++++++++++++ tools/extract_weights_from_tflite/print_op.py | 15 +++++++++++++++ tools/image_importer/image_importer.py | 15 +++++++++++++++ tools/image_importer/imagegen.py | 15 +++++++++++++++ tools/modelgen/modelgen.py | 15 +++++++++++++++ tools/modelgen/modelgen.sh | 15 +++++++++++++++ tools/nnapi_test/src/nnapi_test.cc | 16 ++++++++++++++++ tools/nnapi_unittests/inc/env.h | 16 ++++++++++++++++ tools/nnapi_unittests/inc/memory.h | 16 ++++++++++++++++ tools/nnapi_unittests/lib/env.cpp | 16 ++++++++++++++++ tools/nnapi_unittests/lib/env.test.cpp | 16 ++++++++++++++++ tools/nnapi_unittests/tests/avg_pool_1.cpp | 16 ++++++++++++++++ tools/nnapi_unittests/tests/concat_1.cpp | 16 ++++++++++++++++ tools/nnapi_unittests/tests/conv_1.cpp | 16 ++++++++++++++++ tools/nnapi_unittests/tests/fully_connected_1.cpp | 16 ++++++++++++++++ tools/nnapi_unittests/tests/max_pool_1.cpp | 16 ++++++++++++++++ tools/nnapi_unittests/tests/reshape_1.cpp | 16 ++++++++++++++++ tools/nnapi_unittests/tests/softmax_1.cpp | 16 ++++++++++++++++ tools/tensorflow_model_freezer/__init__.py | 14 ++++++++++++++ tools/tensorflow_model_freezer/base_freezer.py | 14 ++++++++++++++ tools/tensorflow_model_freezer/model_freezer_util.py | 14 ++++++++++++++ tools/tensorflow_model_freezer/sample/__init__.py | 14 ++++++++++++++ tools/tensorflow_model_freezer/sample/add1x1_freezer.py | 14 ++++++++++++++ tools/tensorflow_model_freezer/sample/add5x5_freezer.py | 14 ++++++++++++++ tools/tensorflow_model_freezer/sample/relu_freezer.py | 14 ++++++++++++++ tools/tensorflow_model_freezer/sample/run_converter.py | 14 ++++++++++++++ tools/tensorflow_model_freezer/sample/softmax_freezer.py | 14 ++++++++++++++ tools/tflite_examples/src/conv.cpp | 16 ++++++++++++++++ 29 files changed, 439 insertions(+) diff --git a/tools/extract_weights_from_tflite/extract.py b/tools/extract_weights_from_tflite/extract.py index 13942eb..afde08c 100755 --- a/tools/extract_weights_from_tflite/extract.py +++ b/tools/extract_weights_from_tflite/extract.py @@ -1,4 +1,19 @@ #!/usr/bin/python + +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + import numpy as np import sys import json diff --git a/tools/extract_weights_from_tflite/extract_from_tflite.sh b/tools/extract_weights_from_tflite/extract_from_tflite.sh index 25b67ff..be84f25 100755 --- a/tools/extract_weights_from_tflite/extract_from_tflite.sh +++ b/tools/extract_weights_from_tflite/extract_from_tflite.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ROOT_PATH=$SCRIPT_PATH/../.. FLATC=$ROOT_PATH/Product/out/bin/flatc diff --git a/tools/extract_weights_from_tflite/print_op.py b/tools/extract_weights_from_tflite/print_op.py index dd239c6..69962bf 100755 --- a/tools/extract_weights_from_tflite/print_op.py +++ b/tools/extract_weights_from_tflite/print_op.py @@ -1,4 +1,19 @@ #!/usr/bin/python + +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + import numpy as np import sys import json diff --git a/tools/image_importer/image_importer.py b/tools/image_importer/image_importer.py index 92c35a0..77508e1 100755 --- a/tools/image_importer/image_importer.py +++ b/tools/image_importer/image_importer.py @@ -1,4 +1,19 @@ #!/usr/bin/python + +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + from PIL import Image import sys import struct diff --git a/tools/image_importer/imagegen.py b/tools/image_importer/imagegen.py index 3867cf2..3c7af0d 100755 --- a/tools/image_importer/imagegen.py +++ b/tools/image_importer/imagegen.py @@ -1,4 +1,19 @@ #!/usr/bin/python + +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + from PIL import Image import numpy as np diff --git a/tools/modelgen/modelgen.py b/tools/modelgen/modelgen.py index c34f94f..112a1e8 100755 --- a/tools/modelgen/modelgen.py +++ b/tools/modelgen/modelgen.py @@ -1,4 +1,19 @@ #!/usr/bin/python + +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + import json import numpy as np import os diff --git a/tools/modelgen/modelgen.sh b/tools/modelgen/modelgen.sh index 696117c..563240d 100755 --- a/tools/modelgen/modelgen.sh +++ b/tools/modelgen/modelgen.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ROOT_PATH=$SCRIPT_PATH/../.. FLATC=$ROOT_PATH/Product/out/bin/flatc diff --git a/tools/nnapi_test/src/nnapi_test.cc b/tools/nnapi_test/src/nnapi_test.cc index 137b552..515311a 100644 --- a/tools/nnapi_test/src/nnapi_test.cc +++ b/tools/nnapi_test/src/nnapi_test.cc @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this 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 "tensorflow/contrib/lite/kernels/register.h" #include "tensorflow/contrib/lite/model.h" diff --git a/tools/nnapi_unittests/inc/env.h b/tools/nnapi_unittests/inc/env.h index 05c59e4..8926dab 100644 --- a/tools/nnapi_unittests/inc/env.h +++ b/tools/nnapi_unittests/inc/env.h @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this 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 __ENV_UTILS_H__ #define __ENV_UTILS_H__ diff --git a/tools/nnapi_unittests/inc/memory.h b/tools/nnapi_unittests/inc/memory.h index d51343d..3f1bca8 100644 --- a/tools/nnapi_unittests/inc/memory.h +++ b/tools/nnapi_unittests/inc/memory.h @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this 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 __MEMORY_H__ #define __MEMORY_H__ diff --git a/tools/nnapi_unittests/lib/env.cpp b/tools/nnapi_unittests/lib/env.cpp index 9d589cf..efad443 100644 --- a/tools/nnapi_unittests/lib/env.cpp +++ b/tools/nnapi_unittests/lib/env.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this 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 "env.h" #include "util/environment.h" diff --git a/tools/nnapi_unittests/lib/env.test.cpp b/tools/nnapi_unittests/lib/env.test.cpp index ced8e61..dd9ac8b 100644 --- a/tools/nnapi_unittests/lib/env.test.cpp +++ b/tools/nnapi_unittests/lib/env.test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this 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 "env.h" #include diff --git a/tools/nnapi_unittests/tests/avg_pool_1.cpp b/tools/nnapi_unittests/tests/avg_pool_1.cpp index bd42995..4239b2b 100644 --- a/tools/nnapi_unittests/tests/avg_pool_1.cpp +++ b/tools/nnapi_unittests/tests/avg_pool_1.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this 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 "tensorflow/contrib/lite/kernels/register.h" #include "tensorflow/contrib/lite/model.h" #include "tensorflow/contrib/lite/builtin_op_data.h" diff --git a/tools/nnapi_unittests/tests/concat_1.cpp b/tools/nnapi_unittests/tests/concat_1.cpp index 54d950f..34a12e3 100644 --- a/tools/nnapi_unittests/tests/concat_1.cpp +++ b/tools/nnapi_unittests/tests/concat_1.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this 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 "tensorflow/contrib/lite/kernels/register.h" #include "tensorflow/contrib/lite/model.h" #include "tensorflow/contrib/lite/builtin_op_data.h" diff --git a/tools/nnapi_unittests/tests/conv_1.cpp b/tools/nnapi_unittests/tests/conv_1.cpp index 54f2788..5596894 100644 --- a/tools/nnapi_unittests/tests/conv_1.cpp +++ b/tools/nnapi_unittests/tests/conv_1.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this 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 "tensorflow/contrib/lite/kernels/register.h" #include "tensorflow/contrib/lite/model.h" #include "tensorflow/contrib/lite/builtin_op_data.h" diff --git a/tools/nnapi_unittests/tests/fully_connected_1.cpp b/tools/nnapi_unittests/tests/fully_connected_1.cpp index c8030dd..b4e928f 100644 --- a/tools/nnapi_unittests/tests/fully_connected_1.cpp +++ b/tools/nnapi_unittests/tests/fully_connected_1.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this 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 "tensorflow/contrib/lite/kernels/register.h" #include "tensorflow/contrib/lite/model.h" #include "tensorflow/contrib/lite/builtin_op_data.h" diff --git a/tools/nnapi_unittests/tests/max_pool_1.cpp b/tools/nnapi_unittests/tests/max_pool_1.cpp index 40559fb..275c046 100644 --- a/tools/nnapi_unittests/tests/max_pool_1.cpp +++ b/tools/nnapi_unittests/tests/max_pool_1.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this 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 "tensorflow/contrib/lite/kernels/register.h" #include "tensorflow/contrib/lite/model.h" #include "tensorflow/contrib/lite/builtin_op_data.h" diff --git a/tools/nnapi_unittests/tests/reshape_1.cpp b/tools/nnapi_unittests/tests/reshape_1.cpp index a05183f..d0810e8 100644 --- a/tools/nnapi_unittests/tests/reshape_1.cpp +++ b/tools/nnapi_unittests/tests/reshape_1.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this 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 "tensorflow/contrib/lite/kernels/register.h" #include "tensorflow/contrib/lite/model.h" #include "tensorflow/contrib/lite/builtin_op_data.h" diff --git a/tools/nnapi_unittests/tests/softmax_1.cpp b/tools/nnapi_unittests/tests/softmax_1.cpp index a3bffc2..eefb29d 100644 --- a/tools/nnapi_unittests/tests/softmax_1.cpp +++ b/tools/nnapi_unittests/tests/softmax_1.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this 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 "tensorflow/contrib/lite/kernels/register.h" #include "tensorflow/contrib/lite/model.h" #include "tensorflow/contrib/lite/builtin_op_data.h" diff --git a/tools/tensorflow_model_freezer/__init__.py b/tools/tensorflow_model_freezer/__init__.py index d8b457e..89d760b 100644 --- a/tools/tensorflow_model_freezer/__init__.py +++ b/tools/tensorflow_model_freezer/__init__.py @@ -1 +1,15 @@ +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + # indicating that this folder is python package diff --git a/tools/tensorflow_model_freezer/base_freezer.py b/tools/tensorflow_model_freezer/base_freezer.py index bfa218d..98b1629 100644 --- a/tools/tensorflow_model_freezer/base_freezer.py +++ b/tools/tensorflow_model_freezer/base_freezer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + import os import tensorflow as tf import model_freezer_util as util diff --git a/tools/tensorflow_model_freezer/model_freezer_util.py b/tools/tensorflow_model_freezer/model_freezer_util.py index a3a18b0..ce903c5 100644 --- a/tools/tensorflow_model_freezer/model_freezer_util.py +++ b/tools/tensorflow_model_freezer/model_freezer_util.py @@ -1,3 +1,17 @@ +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + # utility for nncc import os diff --git a/tools/tensorflow_model_freezer/sample/__init__.py b/tools/tensorflow_model_freezer/sample/__init__.py index d8b457e..89d760b 100644 --- a/tools/tensorflow_model_freezer/sample/__init__.py +++ b/tools/tensorflow_model_freezer/sample/__init__.py @@ -1 +1,15 @@ +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + # indicating that this folder is python package diff --git a/tools/tensorflow_model_freezer/sample/add1x1_freezer.py b/tools/tensorflow_model_freezer/sample/add1x1_freezer.py index 70f5073..441d8ef 100644 --- a/tools/tensorflow_model_freezer/sample/add1x1_freezer.py +++ b/tools/tensorflow_model_freezer/sample/add1x1_freezer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + import os import sys import platform diff --git a/tools/tensorflow_model_freezer/sample/add5x5_freezer.py b/tools/tensorflow_model_freezer/sample/add5x5_freezer.py index 4933538..235f7d1 100644 --- a/tools/tensorflow_model_freezer/sample/add5x5_freezer.py +++ b/tools/tensorflow_model_freezer/sample/add5x5_freezer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + import os import sys import platform diff --git a/tools/tensorflow_model_freezer/sample/relu_freezer.py b/tools/tensorflow_model_freezer/sample/relu_freezer.py index 47ea1b3..4664307 100644 --- a/tools/tensorflow_model_freezer/sample/relu_freezer.py +++ b/tools/tensorflow_model_freezer/sample/relu_freezer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + import os import sys import platform diff --git a/tools/tensorflow_model_freezer/sample/run_converter.py b/tools/tensorflow_model_freezer/sample/run_converter.py index a960c8a..f497361 100644 --- a/tools/tensorflow_model_freezer/sample/run_converter.py +++ b/tools/tensorflow_model_freezer/sample/run_converter.py @@ -1,3 +1,17 @@ +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + import os import sys import platform diff --git a/tools/tensorflow_model_freezer/sample/softmax_freezer.py b/tools/tensorflow_model_freezer/sample/softmax_freezer.py index 834d928..c104acc 100644 --- a/tools/tensorflow_model_freezer/sample/softmax_freezer.py +++ b/tools/tensorflow_model_freezer/sample/softmax_freezer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this 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. + import os import sys import platform diff --git a/tools/tflite_examples/src/conv.cpp b/tools/tflite_examples/src/conv.cpp index 0cf3154..2c10f43 100644 --- a/tools/tflite_examples/src/conv.cpp +++ b/tools/tflite_examples/src/conv.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this 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 "tensorflow/contrib/lite/kernels/register.h" #include "tensorflow/contrib/lite/model.h" #include "tensorflow/contrib/lite/builtin_op_data.h" -- 2.7.4