From 08be0e835c3a0fb097a4becbaaff89a49e19195a Mon Sep 17 00:00:00 2001 From: "Efimov Alexander/AI Tools Lab/./Samsung Electronics" Date: Fri, 28 Sep 2018 16:46:53 +0300 Subject: [PATCH] Add licenses to code snippets (#1680) Add proper licenses in soft backend snippet files Signed-off-by: Efimov Alexander --- contrib/nnc/passes/soft_backend/CommonData.def | 16 ++++++++++++++++ .../passes/soft_backend/code_snippets/cpp_batchnorm.def | 16 ++++++++++++++++ .../passes/soft_backend/code_snippets/cpp_dropout.def | 16 ++++++++++++++++ .../soft_backend/code_snippets/cpp_header_types.def | 16 ++++++++++++++++ .../passes/soft_backend/code_snippets/cpp_operations.def | 16 ++++++++++++++++ .../nnc/passes/soft_backend/code_snippets/cpp_scale.def | 16 ++++++++++++++++ 6 files changed, 96 insertions(+) diff --git a/contrib/nnc/passes/soft_backend/CommonData.def b/contrib/nnc/passes/soft_backend/CommonData.def index 43e2c46..d25386a 100644 --- a/contrib/nnc/passes/soft_backend/CommonData.def +++ b/contrib/nnc/passes/soft_backend/CommonData.def @@ -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 _NNC_SOFT_BACKEND_PARAM_CONSTANTS_H_ #define _NNC_SOFT_BACKEND_PARAM_CONSTANTS_H_ diff --git a/contrib/nnc/passes/soft_backend/code_snippets/cpp_batchnorm.def b/contrib/nnc/passes/soft_backend/code_snippets/cpp_batchnorm.def index 66c60f3..95bb817 100644 --- a/contrib/nnc/passes/soft_backend/code_snippets/cpp_batchnorm.def +++ b/contrib/nnc/passes/soft_backend/code_snippets/cpp_batchnorm.def @@ -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. + */ + void batchNorm(Tensor &out, const char *params, const Tensor &in) { out.reShape(in.getShape()); diff --git a/contrib/nnc/passes/soft_backend/code_snippets/cpp_dropout.def b/contrib/nnc/passes/soft_backend/code_snippets/cpp_dropout.def index 9fcb51a..3415c43 100644 --- a/contrib/nnc/passes/soft_backend/code_snippets/cpp_dropout.def +++ b/contrib/nnc/passes/soft_backend/code_snippets/cpp_dropout.def @@ -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. + */ + void dropout(Tensor &out, const char *params, const Tensor &in) { out.reShape(in.getShape()); diff --git a/contrib/nnc/passes/soft_backend/code_snippets/cpp_header_types.def b/contrib/nnc/passes/soft_backend/code_snippets/cpp_header_types.def index ec2238f..239e6eb 100644 --- a/contrib/nnc/passes/soft_backend/code_snippets/cpp_header_types.def +++ b/contrib/nnc/passes/soft_backend/code_snippets/cpp_header_types.def @@ -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 #include #include diff --git a/contrib/nnc/passes/soft_backend/code_snippets/cpp_operations.def b/contrib/nnc/passes/soft_backend/code_snippets/cpp_operations.def index 000879e..a1bc110 100644 --- a/contrib/nnc/passes/soft_backend/code_snippets/cpp_operations.def +++ b/contrib/nnc/passes/soft_backend/code_snippets/cpp_operations.def @@ -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 #include #include diff --git a/contrib/nnc/passes/soft_backend/code_snippets/cpp_scale.def b/contrib/nnc/passes/soft_backend/code_snippets/cpp_scale.def index 828c6d4..7a060af 100644 --- a/contrib/nnc/passes/soft_backend/code_snippets/cpp_scale.def +++ b/contrib/nnc/passes/soft_backend/code_snippets/cpp_scale.def @@ -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. + */ + void scale(Tensor &out, const char *params, const Tensor &in) { out.reShape(in.getShape()); -- 2.7.4