diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..d645695673349e3947e8e5ae42332d0ac3164cd7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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. diff --git a/mace/benchmark/benchmark_model.cc b/mace/benchmark/benchmark_model.cc index 73ade394fe4c8b3cd99e1f14d647e3c6d3170ec8..0b6426d13e6117f8871c79b149ef7ef72361227b 100644 --- a/mace/benchmark/benchmark_model.cc +++ b/mace/benchmark/benchmark_model.cc @@ -1,7 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/benchmark/model_throughput_test.cc b/mace/benchmark/model_throughput_test.cc index 8c3a84b3f3693d3e44e1929bd9523b1435753d05..51b294aa49ea5db9db51e08e8a2a0f376c41fed0 100644 --- a/mace/benchmark/model_throughput_test.cc +++ b/mace/benchmark/model_throughput_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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. /** * Usage: diff --git a/mace/benchmark/stat_summarizer.cc b/mace/benchmark/stat_summarizer.cc index 876368396195fd57c35dfec1ef688ae645af0d08..291fd5ded7cf71097e23c7ea7a04a951a8c7dd95 100644 --- a/mace/benchmark/stat_summarizer.cc +++ b/mace/benchmark/stat_summarizer.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/benchmark/stat_summarizer.h" diff --git a/mace/benchmark/stat_summarizer.h b/mace/benchmark/stat_summarizer.h index 96d597dac917833267afb9bf7f7a26fd7d89f78c..e457dfc39ecb25a7bc038e3bc7d5ba0b2409866c 100644 --- a/mace/benchmark/stat_summarizer.h +++ b/mace/benchmark/stat_summarizer.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_BENCHMARK_STAT_SUMMARIZER_H_ #define MACE_BENCHMARK_STAT_SUMMARIZER_H_ diff --git a/mace/core/allocator.cc b/mace/core/allocator.cc index 8f65fbc56c7ddf235d5ac4006bfa0e904afbbce2..567887301a6bb7ea5b5c16738fad79c454b91a60 100644 --- a/mace/core/allocator.cc +++ b/mace/core/allocator.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/allocator.h" #include "mace/core/runtime/opencl/opencl_allocator.h" diff --git a/mace/core/allocator.h b/mace/core/allocator.h index a9f76fcab7d91d8c81a76d181f9515998fb2f72a..80466a9c1b79d936fe2c239e2872539fd828201c 100644 --- a/mace/core/allocator.h +++ b/mace/core/allocator.h @@ -1,7 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Created by liyin on 8/28/17. -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_ALLOCATOR_H_ #define MACE_CORE_ALLOCATOR_H_ diff --git a/mace/core/arg_helper.cc b/mace/core/arg_helper.cc index 6207234816f4a4dff6f6d3599050df7211427732..8db23cae206a46a949c63de4a794ab4eac784362 100644 --- a/mace/core/arg_helper.cc +++ b/mace/core/arg_helper.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/core/arg_helper.h b/mace/core/arg_helper.h index c370d5fc16a3383f7bb720587d5ca21ccf2108ae..6b3cb1cc2314ff798f4f484e0bbc878a30258692 100644 --- a/mace/core/arg_helper.h +++ b/mace/core/arg_helper.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_ARG_HELPER_H_ #define MACE_CORE_ARG_HELPER_H_ diff --git a/mace/core/buffer.h b/mace/core/buffer.h index 08cbf1a9562c69e2344d25bf8d977f1b2a94ffea..d209d52f4fea0b31370d9074705a8c865f000276 100644 --- a/mace/core/buffer.h +++ b/mace/core/buffer.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 MACE_CORE_BUFFER_H_ #define MACE_CORE_BUFFER_H_ diff --git a/mace/core/file_storage.cc b/mace/core/file_storage.cc index de9a67fa73a197d8bfe73ec27652fff2f0afd85f..9a3f812be64a6860e144e34aec00ef9ccaad2051 100644 --- a/mace/core/file_storage.cc +++ b/mace/core/file_storage.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/file_storage.h" diff --git a/mace/core/file_storage.h b/mace/core/file_storage.h index c29628cdd657d7a16d494128cfee908dfdc1f18f..3dee8b4e73a45429141e7c96a5ab85999b6eee30 100644 --- a/mace/core/file_storage.h +++ b/mace/core/file_storage.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_FILE_STORAGE_H_ #define MACE_CORE_FILE_STORAGE_H_ diff --git a/mace/core/future.h b/mace/core/future.h index 887812b2be86efbd4643aed0a8594d1ab99e00dc..47c461bf03b9ec4e27d4256b764455f26e4a17d5 100644 --- a/mace/core/future.h +++ b/mace/core/future.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_FUTURE_H_ #define MACE_CORE_FUTURE_H_ diff --git a/mace/core/mace.cc b/mace/core/mace.cc index 5f7647ed4a0df7377f143191bf2bf42c74429dc6..27d676d9b6f8cfeddb4e153f9fd82f46014f027b 100644 --- a/mace/core/mace.cc +++ b/mace/core/mace.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/core/mace_runtime.cc b/mace/core/mace_runtime.cc index 4e7c835cd5056ac837ea6834df884e0b360c3557..4ce55861c6acba40e0a6f441c37ff4ca239d9477 100644 --- a/mace/core/mace_runtime.cc +++ b/mace/core/mace_runtime.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/public/mace_runtime.h" #include "mace/core/runtime/cpu/cpu_runtime.h" diff --git a/mace/core/mace_types.cc b/mace/core/mace_types.cc index 04f968e6a8a9066c4d76fcf862eb05b40a7746cf..c356116197e20035871a3b4e7b8fac31605f6cae 100644 --- a/mace/core/mace_types.cc +++ b/mace/core/mace_types.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/core/macros.h b/mace/core/macros.h index 0c00af5df0381e3e51bc6c0663588273aa3b8d38..970d29ce1fd6b25273a03d63a4853319364ee089 100644 --- a/mace/core/macros.h +++ b/mace/core/macros.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_MACROS_H_ #define MACE_CORE_MACROS_H_ diff --git a/mace/core/net.cc b/mace/core/net.cc index 7563ed5c61cf10641baffabf7f19718a53a63f57..44c889b1e1480b1d4b50001bb3e4f1dc8b7c2835 100644 --- a/mace/core/net.cc +++ b/mace/core/net.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/core/net.h b/mace/core/net.h index 2a9af0ff344df64fa412ccbabdf82daf092442be..4697c45090a7dc314dcb3c7ee1dba62c767b216a 100644 --- a/mace/core/net.h +++ b/mace/core/net.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_NET_H_ #define MACE_CORE_NET_H_ diff --git a/mace/core/operator.cc b/mace/core/operator.cc index c56ad46a4246fdf1eeac31ae23d939963ea0d03e..db3dcd2271ddebc8d4cf863a2330988187326f33 100644 --- a/mace/core/operator.cc +++ b/mace/core/operator.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/core/operator.h b/mace/core/operator.h index a22f424f2de11232617271d213bacc3c9e3dd57a..387a41effe54afbd909154e076b6eab8618909f5 100644 --- a/mace/core/operator.h +++ b/mace/core/operator.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_OPERATOR_H_ #define MACE_CORE_OPERATOR_H_ diff --git a/mace/core/preallocated_pooled_allocator.h b/mace/core/preallocated_pooled_allocator.h index 80e7fa659bb3c566a47e4afea87dc40d114fba22..27dbeb61a76936afb22050a457dcb3dbefa8a3a5 100644 --- a/mace/core/preallocated_pooled_allocator.h +++ b/mace/core/preallocated_pooled_allocator.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 MACE_CORE_PREALLOCATED_POOLED_ALLOCATOR_H_ #define MACE_CORE_PREALLOCATED_POOLED_ALLOCATOR_H_ diff --git a/mace/core/registry.h b/mace/core/registry.h index 0e1e85d2e6c3d9bcfb6663ff82001206dc3de9e2..241f8515053d30d7d3fec9515e14720a5a08bdcd 100644 --- a/mace/core/registry.h +++ b/mace/core/registry.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_REGISTRY_H_ #define MACE_CORE_REGISTRY_H_ diff --git a/mace/core/runtime/cpu/cpu_runtime.cc b/mace/core/runtime/cpu/cpu_runtime.cc index 2a9984adce819923fbd9069bd69daaa9e3ef108c..4c4e58ff035c41d2921d6c9f58a29b5f90bf2f07 100644 --- a/mace/core/runtime/cpu/cpu_runtime.cc +++ b/mace/core/runtime/cpu/cpu_runtime.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/runtime/cpu/cpu_runtime.h" diff --git a/mace/core/runtime/cpu/cpu_runtime.h b/mace/core/runtime/cpu/cpu_runtime.h index a66f81165057dd68b95b50fc0aae822da150f283..6a305f5aaee9ea1d3f459ccf330d49bc0aa4ca78 100644 --- a/mace/core/runtime/cpu/cpu_runtime.h +++ b/mace/core/runtime/cpu/cpu_runtime.h @@ -1,7 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_RUNTIME_CPU_CPU_RUNTIME_H_ #define MACE_CORE_RUNTIME_CPU_CPU_RUNTIME_H_ diff --git a/mace/core/runtime/hexagon/hexagon_control_wrapper.cc b/mace/core/runtime/hexagon/hexagon_control_wrapper.cc index 138fd933a0848abb6b5300a5c97b0cc62e659f90..15af069ba2a397fe8e2f3525bf848686a48a74e4 100644 --- a/mace/core/runtime/hexagon/hexagon_control_wrapper.cc +++ b/mace/core/runtime/hexagon/hexagon_control_wrapper.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 // NOLINT(build/c++11) diff --git a/mace/core/runtime/hexagon/hexagon_control_wrapper.h b/mace/core/runtime/hexagon/hexagon_control_wrapper.h index 01f69749fcf050c83b953213f76122d676bde99c..8e8eb53234c916b9cb6dd2250e559625bb6d34ed 100644 --- a/mace/core/runtime/hexagon/hexagon_control_wrapper.h +++ b/mace/core/runtime/hexagon/hexagon_control_wrapper.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_RUNTIME_HEXAGON_HEXAGON_CONTROL_WRAPPER_H_ #define MACE_CORE_RUNTIME_HEXAGON_HEXAGON_CONTROL_WRAPPER_H_ diff --git a/mace/core/runtime/hexagon/hexagon_controller.h b/mace/core/runtime/hexagon/hexagon_controller.h index 11f77c1d834e7a6de42574e8853fb54e6c078381..1bf57f9d9fe9aaec213f6cc042b152e7e0cb8b14 100644 --- a/mace/core/runtime/hexagon/hexagon_controller.h +++ b/mace/core/runtime/hexagon/hexagon_controller.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_RUNTIME_HEXAGON_HEXAGON_CONTROLLER_H_ #define MACE_CORE_RUNTIME_HEXAGON_HEXAGON_CONTROLLER_H_ diff --git a/mace/core/runtime/hexagon/hexagon_controller_dummy.cc b/mace/core/runtime/hexagon/hexagon_controller_dummy.cc index c1fdcc428245eb50adfd2ae8be9f426242928ac8..4118e3bbb753a03319e25c5ef78e9d148d55912c 100644 --- a/mace/core/runtime/hexagon/hexagon_controller_dummy.cc +++ b/mace/core/runtime/hexagon/hexagon_controller_dummy.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 "mace/core/runtime/hexagon/hexagon_controller.h" #include "mace/core/runtime/hexagon/hexagon_nn.h" diff --git a/mace/core/runtime/hexagon/hexagon_nn_ops.h b/mace/core/runtime/hexagon/hexagon_nn_ops.h index faad9c4d0f256084ca3b651c96feab9b7767467e..dba6c56ee248df7c4a555830a6faff28913c3c13 100644 --- a/mace/core/runtime/hexagon/hexagon_nn_ops.h +++ b/mace/core/runtime/hexagon/hexagon_nn_ops.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 MACE_CORE_RUNTIME_HEXAGON_HEXAGON_NN_OPS_H_ #define MACE_CORE_RUNTIME_HEXAGON_HEXAGON_NN_OPS_H_ diff --git a/mace/core/runtime/hexagon/quantize.cc b/mace/core/runtime/hexagon/quantize.cc index 7330424aab6d893c84cee0915078995148c93ba9..61ec4d1829245d0c1b055225a9fb746740de2d46 100644 --- a/mace/core/runtime/hexagon/quantize.cc +++ b/mace/core/runtime/hexagon/quantize.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/core/runtime/hexagon/quantize.h b/mace/core/runtime/hexagon/quantize.h index 8e98f3beddf801dfa9ec0b38a547d93761f6ec7f..635106f3725d26a44d671284c9a7ce91363627ae 100644 --- a/mace/core/runtime/hexagon/quantize.h +++ b/mace/core/runtime/hexagon/quantize.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_RUNTIME_HEXAGON_QUANTIZE_H_ #define MACE_CORE_RUNTIME_HEXAGON_QUANTIZE_H_ diff --git a/mace/core/runtime/opencl/cl2_header.h b/mace/core/runtime/opencl/cl2_header.h index f22fcbbe624d172a34cefd6fc46e70fe1406ca34..2a8d0648273e81869ba30c9c29f41135db1dd7e9 100644 --- a/mace/core/runtime/opencl/cl2_header.h +++ b/mace/core/runtime/opencl/cl2_header.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_RUNTIME_OPENCL_CL2_HEADER_H_ #define MACE_CORE_RUNTIME_OPENCL_CL2_HEADER_H_ diff --git a/mace/core/runtime/opencl/opencl_allocator.cc b/mace/core/runtime/opencl/opencl_allocator.cc index e0f63b8689b6838d67c088e98f85247198fe361b..9b94eb92ec15eb187d76fdf429e14712995baf09 100644 --- a/mace/core/runtime/opencl/opencl_allocator.cc +++ b/mace/core/runtime/opencl/opencl_allocator.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/runtime/opencl/opencl_allocator.h" #include "mace/core/runtime/opencl/cl2_header.h" diff --git a/mace/core/runtime/opencl/opencl_allocator.h b/mace/core/runtime/opencl/opencl_allocator.h index b801476716771f81a6ee06a0b7e5ae4228394c65..0ec50f61062aad81e2e8b0fc010e2a57b457a833 100644 --- a/mace/core/runtime/opencl/opencl_allocator.h +++ b/mace/core/runtime/opencl/opencl_allocator.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_RUNTIME_OPENCL_OPENCL_ALLOCATOR_H_ #define MACE_CORE_RUNTIME_OPENCL_OPENCL_ALLOCATOR_H_ diff --git a/mace/core/runtime/opencl/opencl_extension.h b/mace/core/runtime/opencl/opencl_extension.h index 6192eff3a09954734bb2bb47a392859099f78711..a29f40b7767416b3f2a5bb0cb6f3f88b44f6a274 100644 --- a/mace/core/runtime/opencl/opencl_extension.h +++ b/mace/core/runtime/opencl/opencl_extension.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_RUNTIME_OPENCL_OPENCL_EXTENSION_H_ #define MACE_CORE_RUNTIME_OPENCL_OPENCL_EXTENSION_H_ diff --git a/mace/core/runtime/opencl/opencl_runtime.cc b/mace/core/runtime/opencl/opencl_runtime.cc index fda211d4860a32fc3bec56152b06eefb6b3a386f..4314edbf394b713b02d7bb70daf779c36c0b0245 100644 --- a/mace/core/runtime/opencl/opencl_runtime.cc +++ b/mace/core/runtime/opencl/opencl_runtime.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/core/runtime/opencl/opencl_runtime.h b/mace/core/runtime/opencl/opencl_runtime.h index 35a20bff198fc52f0859f935663118bbde3b45ec..2ca62e7a138db41b1a0991fb7c0c58d59dace7c8 100644 --- a/mace/core/runtime/opencl/opencl_runtime.h +++ b/mace/core/runtime/opencl/opencl_runtime.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_RUNTIME_OPENCL_OPENCL_RUNTIME_H_ #define MACE_CORE_RUNTIME_OPENCL_OPENCL_RUNTIME_H_ diff --git a/mace/core/runtime/opencl/opencl_wrapper.cc b/mace/core/runtime/opencl/opencl_wrapper.cc index c9b20577aecd2bf57b04be150b49ffc7d4a9cc05..fe1dc88c5b941787d6b4c19cc3c30bd702f8e12e 100644 --- a/mace/core/runtime/opencl/opencl_wrapper.cc +++ b/mace/core/runtime/opencl/opencl_wrapper.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/runtime/opencl/opencl_wrapper.h" diff --git a/mace/core/runtime/opencl/opencl_wrapper.h b/mace/core/runtime/opencl/opencl_wrapper.h index fdf90b02117ff7d92fa4a45d2f38d5dad286e3b3..529bcea3c49e926e42add0809e49fd5e00621125 100644 --- a/mace/core/runtime/opencl/opencl_wrapper.h +++ b/mace/core/runtime/opencl/opencl_wrapper.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_RUNTIME_OPENCL_OPENCL_WRAPPER_H_ #define MACE_CORE_RUNTIME_OPENCL_OPENCL_WRAPPER_H_ diff --git a/mace/core/tensor.h b/mace/core/tensor.h index 29571d96140c436eb71bfe64128842e297899ee8..fa383aa58e75fc0846d9e7eca5ad5a9feebaa6c7 100644 --- a/mace/core/tensor.h +++ b/mace/core/tensor.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_TENSOR_H_ #define MACE_CORE_TENSOR_H_ diff --git a/mace/core/testing/test_benchmark.cc b/mace/core/testing/test_benchmark.cc index 0d1b68fe664d7bab859c7f6474b49ea730a37b61..f4c4c4d9b2df267e952b22512a0f02b43d4ad3c2 100644 --- a/mace/core/testing/test_benchmark.cc +++ b/mace/core/testing/test_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/core/testing/test_benchmark.h b/mace/core/testing/test_benchmark.h index 2e3526cff4e826232cb5dea97f1285603a942532..54edb681bcd5a80ab8534afc653055f7e5419761 100644 --- a/mace/core/testing/test_benchmark.h +++ b/mace/core/testing/test_benchmark.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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. // Simple benchmarking facility. #ifndef MACE_CORE_TESTING_TEST_BENCHMARK_H_ diff --git a/mace/core/testing/test_benchmark_main.cc b/mace/core/testing/test_benchmark_main.cc index a246ffe8ab47127836046ecba73db28655937f30..a2dccb65437b7e3dfde03493e4033af50c8508d4 100644 --- a/mace/core/testing/test_benchmark_main.cc +++ b/mace/core/testing/test_benchmark_main.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/core/types.cc b/mace/core/types.cc index ef0a1755110bf47cc231b35c5c0a60e9563e9b66..9bab2dab2f8e5cbe8e5cf7f47bff699ff22a5587 100644 --- a/mace/core/types.cc +++ b/mace/core/types.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/core/types.h b/mace/core/types.h index f038d5be034a3e9140bea2cbcdcde174c9f9918b..7b63fa290c076fba23063ce13207f0b5429ceae6 100644 --- a/mace/core/types.h +++ b/mace/core/types.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_TYPES_H_ #define MACE_CORE_TYPES_H_ diff --git a/mace/core/workspace.cc b/mace/core/workspace.cc index d068cbd8920ab2b155f05f07ea776925c2d75813..107ac8fa5e74a5258d7b7a674a676e66ebe3d0fb 100644 --- a/mace/core/workspace.cc +++ b/mace/core/workspace.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/core/workspace.h b/mace/core/workspace.h index c918a694efa8fe3837dc977f792122436bf74119..b4b75995d25de4cabd90285d848baa4191c846ba 100644 --- a/mace/core/workspace.h +++ b/mace/core/workspace.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_CORE_WORKSPACE_H_ #define MACE_CORE_WORKSPACE_H_ diff --git a/mace/examples/example.cc b/mace/examples/example.cc index aa58cea7c0837bd2576a7b99a35a473f05fd1ce6..aa852fdab4ece6bb053e9efbe11030ba7164fec3 100644 --- a/mace/examples/example.cc +++ b/mace/examples/example.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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. /** * Usage: diff --git a/mace/kernels/activation.h b/mace/kernels/activation.h index e62181bc3ae743e2662b3a364537de6e1d8ed88d..8ed3ca755f1280ef37e2201e0b81f324c5be4a14 100644 --- a/mace/kernels/activation.h +++ b/mace/kernels/activation.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_ACTIVATION_H_ #define MACE_KERNELS_ACTIVATION_H_ diff --git a/mace/kernels/addn.h b/mace/kernels/addn.h index 7538b5b1681e05cdd507277915e9b746461b7d4a..86389d7f0ea4cef253fb41220d8b2abee7029b56 100644 --- a/mace/kernels/addn.h +++ b/mace/kernels/addn.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_ADDN_H_ #define MACE_KERNELS_ADDN_H_ diff --git a/mace/kernels/arm/activation.cc b/mace/kernels/arm/activation.cc index 59b94ffac8a6c1d84d580253d7694cd54fe6ffc3..ebd346bd02ed68e76094068fd73aa6fe699f730e 100644 --- a/mace/kernels/arm/activation.cc +++ b/mace/kernels/arm/activation.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 "mace/kernels/activation.h" diff --git a/mace/kernels/arm/batch_norm.cc b/mace/kernels/arm/batch_norm.cc index 76aa17d023c0f5cb7adf5c2bef402c097944ef24..86da9bec0298f67a2c7ea617f187b1b73809f85b 100644 --- a/mace/kernels/arm/batch_norm.cc +++ b/mace/kernels/arm/batch_norm.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 "mace/kernels/batch_norm.h" diff --git a/mace/kernels/arm/conv_2d.cc b/mace/kernels/arm/conv_2d.cc index 04b79abc46922ebd258fb091fab98b7db088c8c4..1805043328d238827450d0e34f1ee1d285ea87c5 100644 --- a/mace/kernels/arm/conv_2d.cc +++ b/mace/kernels/arm/conv_2d.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 "mace/kernels/conv_2d.h" #include "mace/kernels/arm/conv_winograd.h" diff --git a/mace/kernels/arm/conv_2d_neon_1x1.cc b/mace/kernels/arm/conv_2d_neon_1x1.cc index cb08b06189927160981ed21448f7d5672df24bab..c7bd4e570a2ac1e262c9f3285324ad029b045bb1 100644 --- a/mace/kernels/arm/conv_2d_neon_1x1.cc +++ b/mace/kernels/arm/conv_2d_neon_1x1.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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. #if defined(MACE_ENABLE_NEON) && defined(__aarch64__) #include diff --git a/mace/kernels/arm/conv_2d_neon_3x3.cc b/mace/kernels/arm/conv_2d_neon_3x3.cc index cedf44eca2907efebb137cf47d91cd8cd6689d86..19875a5caf2cc930368af6d9b133dfaa464541e6 100644 --- a/mace/kernels/arm/conv_2d_neon_3x3.cc +++ b/mace/kernels/arm/conv_2d_neon_3x3.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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. #if defined(MACE_ENABLE_NEON) && defined(__aarch64__) #include diff --git a/mace/kernels/arm/conv_winograd.cc b/mace/kernels/arm/conv_winograd.cc index 272e3c5227645ff228113c6d226765617aee724b..11ef694734e715e5c20b0f00bba7f476d6292fa2 100644 --- a/mace/kernels/arm/conv_winograd.cc +++ b/mace/kernels/arm/conv_winograd.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 diff --git a/mace/kernels/arm/conv_winograd.h b/mace/kernels/arm/conv_winograd.h index d058a29c159f07ddb92a984f6e93ba38926c3f62..de45aa08c811d7e5bb87b8e2bfe63ca352b27c3f 100644 --- a/mace/kernels/arm/conv_winograd.h +++ b/mace/kernels/arm/conv_winograd.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 MACE_KERNELS_ARM_CONV_WINOGRAD_H_ #define MACE_KERNELS_ARM_CONV_WINOGRAD_H_ diff --git a/mace/kernels/arm/conv_winograd_test.cc b/mace/kernels/arm/conv_winograd_test.cc index 9dcc10e20d988caa5b890d42dd448b785e4a6857..ee3223b5013e599b992bfa88d18a5d83dc80d678 100644 --- a/mace/kernels/arm/conv_winograd_test.cc +++ b/mace/kernels/arm/conv_winograd_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 diff --git a/mace/kernels/arm/depthwise_conv2d.cc b/mace/kernels/arm/depthwise_conv2d.cc index 3920ed08b3150f07b5189058dfe5ae751cbbd8b5..7a677d8e8d628eb4ff7c3a1560cdb934ed51bdcc 100644 --- a/mace/kernels/arm/depthwise_conv2d.cc +++ b/mace/kernels/arm/depthwise_conv2d.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 "mace/kernels/depthwise_conv2d.h" #include "mace/kernels/activation.h" diff --git a/mace/kernels/arm/depthwise_conv2d_neon_3x3.cc b/mace/kernels/arm/depthwise_conv2d_neon_3x3.cc index 9ce4c68c66c42aba7d7e4044eff0ef266345d24c..c12d684c86b43bbbbb59c0421d1aa00a7e50fa48 100644 --- a/mace/kernels/arm/depthwise_conv2d_neon_3x3.cc +++ b/mace/kernels/arm/depthwise_conv2d_neon_3x3.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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. #if defined(MACE_ENABLE_NEON) && defined(__aarch64__) #include diff --git a/mace/kernels/arm/fully_connected.cc b/mace/kernels/arm/fully_connected.cc index df9ba051e0f22c3938ed224fa4a93f0d70fabcb5..0944480e82403bccdd4c7a8bab16d71d864a2ddd 100644 --- a/mace/kernels/arm/fully_connected.cc +++ b/mace/kernels/arm/fully_connected.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 "mace/kernels/fully_connected.h" #include "mace/kernels/gemm.h" diff --git a/mace/kernels/arm/pooling.cc b/mace/kernels/arm/pooling.cc index 9250134315c3004c5581ec39cf6b8e611a451468..246d3fb5637e1e0b0c1f1ae2c69f4f7a785f7544 100644 --- a/mace/kernels/arm/pooling.cc +++ b/mace/kernels/arm/pooling.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 "mace/kernels/pooling.h" diff --git a/mace/kernels/arm/softmax.cc b/mace/kernels/arm/softmax.cc index d51ee6e8e2c4b25e89a47ff0d3f8af9c7a6e10c3..1219281aa74cca0191ee3c18562dac1e2fa4448f 100644 --- a/mace/kernels/arm/softmax.cc +++ b/mace/kernels/arm/softmax.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 "mace/kernels/softmax.h" diff --git a/mace/kernels/batch_norm.h b/mace/kernels/batch_norm.h index c0aab3d958170c9411bdad9d0077a4fc8e0cb8e9..b2617b94ed7cf463168fcdb9780d7257ddd6acad 100644 --- a/mace/kernels/batch_norm.h +++ b/mace/kernels/batch_norm.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_BATCH_NORM_H_ #define MACE_KERNELS_BATCH_NORM_H_ diff --git a/mace/kernels/bias_add.h b/mace/kernels/bias_add.h index ab2a35f1ec57f0712966d6367f6c24f24d3844c7..88131b18e61baa1f135caf5cccbdcf29eb23352c 100644 --- a/mace/kernels/bias_add.h +++ b/mace/kernels/bias_add.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_BIAS_ADD_H_ #define MACE_KERNELS_BIAS_ADD_H_ diff --git a/mace/kernels/buffer_to_image.h b/mace/kernels/buffer_to_image.h index ff6cebb206e7079cbd2f80da610bbf24908f1e30..b8568f5f110d37d8c83746d6c8779ce2a23d1baa 100644 --- a/mace/kernels/buffer_to_image.h +++ b/mace/kernels/buffer_to_image.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_BUFFER_TO_IMAGE_H_ #define MACE_KERNELS_BUFFER_TO_IMAGE_H_ diff --git a/mace/kernels/channel_shuffle.h b/mace/kernels/channel_shuffle.h index 258cd39af9a8c8165b3c99a4266c86d9957fd907..8ef030ef8554906373f882d99e798c574820bd8e 100644 --- a/mace/kernels/channel_shuffle.h +++ b/mace/kernels/channel_shuffle.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_CHANNEL_SHUFFLE_H_ #define MACE_KERNELS_CHANNEL_SHUFFLE_H_ diff --git a/mace/kernels/concat.h b/mace/kernels/concat.h index 88c6cdb862e69cca62ca53645c7193a747b47ec9..c55bf4c7328356dff50f9e4416def6edb7fbe4a3 100644 --- a/mace/kernels/concat.h +++ b/mace/kernels/concat.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_CONCAT_H_ #define MACE_KERNELS_CONCAT_H_ diff --git a/mace/kernels/conv_2d.h b/mace/kernels/conv_2d.h index 9a8f7c758679616218fcb5b006e4fa8226da0263..cefa520f20539b9712cd7793245c7cc8b890f5c0 100644 --- a/mace/kernels/conv_2d.h +++ b/mace/kernels/conv_2d.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_CONV_2D_H_ #define MACE_KERNELS_CONV_2D_H_ diff --git a/mace/kernels/conv_pool_2d_util.cc b/mace/kernels/conv_pool_2d_util.cc index 7615cfc6676254966cdb46090c37aabdaebc3bb4..753e9c51ae6c840e06f1085d9fae61d363a95b4d 100644 --- a/mace/kernels/conv_pool_2d_util.cc +++ b/mace/kernels/conv_pool_2d_util.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/conv_pool_2d_util.h" diff --git a/mace/kernels/conv_pool_2d_util.h b/mace/kernels/conv_pool_2d_util.h index 32dee0cc34d526e3408cce339cc8e4c37eba6dad..71aae7584b987136c73fc486a6ef3cfe0782be4b 100644 --- a/mace/kernels/conv_pool_2d_util.h +++ b/mace/kernels/conv_pool_2d_util.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_CONV_POOL_2D_UTIL_H_ #define MACE_KERNELS_CONV_POOL_2D_UTIL_H_ diff --git a/mace/kernels/cwise.h b/mace/kernels/cwise.h index 57beb64f9a9f13d099abc66ba137a5d0f0a29e1a..997410a36829b86a95b21451f1846892a28c27b8 100644 --- a/mace/kernels/cwise.h +++ b/mace/kernels/cwise.h @@ -1,6 +1,17 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_CWISE_H_ #define MACE_KERNELS_CWISE_H_ diff --git a/mace/kernels/depth_to_space.h b/mace/kernels/depth_to_space.h index 76f3c80e2d5ca7b09b4d89a1c4d72b5e17023910..3ea7f8abf7886a939e5b616152a1b0a5c8fd29ca 100644 --- a/mace/kernels/depth_to_space.h +++ b/mace/kernels/depth_to_space.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_DEPTH_TO_SPACE_H_ #define MACE_KERNELS_DEPTH_TO_SPACE_H_ diff --git a/mace/kernels/depthwise_conv2d.h b/mace/kernels/depthwise_conv2d.h index cc6ceee507be8d9da0f367a50c69f8ab86d9760e..e560be8c3e89978af510d2010e632ba8c3d58f84 100644 --- a/mace/kernels/depthwise_conv2d.h +++ b/mace/kernels/depthwise_conv2d.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_DEPTHWISE_CONV2D_H_ #define MACE_KERNELS_DEPTHWISE_CONV2D_H_ diff --git a/mace/kernels/eltwise.h b/mace/kernels/eltwise.h index faf52ff31edf589c8fb6d89bc914a171f775b8d9..94c37cdb4ae1cedde48a6504331ecead3c01caee 100644 --- a/mace/kernels/eltwise.h +++ b/mace/kernels/eltwise.h @@ -1,6 +1,17 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_ELTWISE_H_ #define MACE_KERNELS_ELTWISE_H_ diff --git a/mace/kernels/fully_connected.h b/mace/kernels/fully_connected.h index 7f37b1735c3f4b20afbff19f7a0c6c663c5eacd7..bf52bd33c16659a4dd4e88c3770b4eb3027d896f 100644 --- a/mace/kernels/fully_connected.h +++ b/mace/kernels/fully_connected.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_FULLY_CONNECTED_H_ #define MACE_KERNELS_FULLY_CONNECTED_H_ diff --git a/mace/kernels/gemm.cc b/mace/kernels/gemm.cc index aea63c87f743baf55fdbfba0674c6f751ff75954..cb11fa5c741e3dac8dab603ada9f973f89f623f3 100644 --- a/mace/kernels/gemm.cc +++ b/mace/kernels/gemm.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 diff --git a/mace/kernels/gemm.h b/mace/kernels/gemm.h index 7ba58fbdd9fe82f17d968d82a2a17894783ad3a7..ba4f812d74f11adbbbeba384b3b04c9746ed2309 100644 --- a/mace/kernels/gemm.h +++ b/mace/kernels/gemm.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 MACE_KERNELS_GEMM_H_ #define MACE_KERNELS_GEMM_H_ diff --git a/mace/kernels/gemm_test.cc b/mace/kernels/gemm_test.cc index 72d55e48680dce519126779e6ed700e125a0fa82..217543ed9fd38cca186808471a7a652343f1a956 100644 --- a/mace/kernels/gemm_test.cc +++ b/mace/kernels/gemm_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 diff --git a/mace/kernels/global_avg_pooling.h b/mace/kernels/global_avg_pooling.h index cd971558928c442c96d64bba06274c58608d1bdf..2ee0ed6e3c5579cb9564eb7cae0d580f6366b4aa 100644 --- a/mace/kernels/global_avg_pooling.h +++ b/mace/kernels/global_avg_pooling.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_GLOBAL_AVG_POOLING_H_ #define MACE_KERNELS_GLOBAL_AVG_POOLING_H_ diff --git a/mace/kernels/matmul.h b/mace/kernels/matmul.h index 3cba36947f2c8d0facdbb33b7927dd86713f21c3..c12aac56335862a7e88047b4857a45237687ae71 100644 --- a/mace/kernels/matmul.h +++ b/mace/kernels/matmul.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_MATMUL_H_ #define MACE_KERNELS_MATMUL_H_ diff --git a/mace/kernels/opencl/activation_opencl.cc b/mace/kernels/opencl/activation_opencl.cc index 020aab0d2280851fc934491c09b90de5d652a78e..5236f4c8baa8699edd9a27360f86ab4b8582e5e7 100644 --- a/mace/kernels/opencl/activation_opencl.cc +++ b/mace/kernels/opencl/activation_opencl.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/activation.h" #include "mace/core/runtime/opencl/cl2_header.h" diff --git a/mace/kernels/opencl/addn.cc b/mace/kernels/opencl/addn.cc index 5f042a4e14a40c1428555486e3fbeb252cb22040..ab4d97bca81d93f7d19c87fb72f10ea14b3e3c11 100644 --- a/mace/kernels/opencl/addn.cc +++ b/mace/kernels/opencl/addn.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/addn.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/kernels/opencl/batch_norm_opencl.cc b/mace/kernels/opencl/batch_norm_opencl.cc index 234e3d348efbda27e47f5093a553e8c97521fd7f..d29d8b42070577950a1a26304b751e5cd065f366 100644 --- a/mace/kernels/opencl/batch_norm_opencl.cc +++ b/mace/kernels/opencl/batch_norm_opencl.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/batch_norm.h" #include "mace/core/runtime/opencl/cl2_header.h" diff --git a/mace/kernels/opencl/bias_add_opencl.cc b/mace/kernels/opencl/bias_add_opencl.cc index a630b6a5c6c03a935c4317d0ea260c5d07d194a1..c9b1d6e8b3a8c93762e5ab43f6aa811f64942da8 100644 --- a/mace/kernels/opencl/bias_add_opencl.cc +++ b/mace/kernels/opencl/bias_add_opencl.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/bias_add.h" #include "mace/core/runtime/opencl/cl2_header.h" diff --git a/mace/kernels/opencl/buffer_to_image.cc b/mace/kernels/opencl/buffer_to_image.cc index eae15eadad9530290c59db243149297fa2f3c7b8..dcaa7b4c9ae1705b73526dcb369e97ec135fcd86 100644 --- a/mace/kernels/opencl/buffer_to_image.cc +++ b/mace/kernels/opencl/buffer_to_image.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/buffer_to_image.h" #include "mace/core/runtime/opencl/cl2_header.h" diff --git a/mace/kernels/opencl/channel_shuffle.cc b/mace/kernels/opencl/channel_shuffle.cc index 925ce595a3e4f50c7b046cef2edcd79505538e0d..a03652ff2f3a9f3100b94c67233ea3a34c3b4dbd 100644 --- a/mace/kernels/opencl/channel_shuffle.cc +++ b/mace/kernels/opencl/channel_shuffle.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 "mace/kernels/channel_shuffle.h" #include "mace/core/runtime/opencl/cl2_header.h" diff --git a/mace/kernels/opencl/cl/common.h b/mace/kernels/opencl/cl/common.h index 0011dc2c01297fe2f2ab2c539e837ac7ea133516..604100d5312f361df7fad2afedea2b3a321b818a 100644 --- a/mace/kernels/opencl/cl/common.h +++ b/mace/kernels/opencl/cl/common.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_OPENCL_CL_COMMON_H_ #define MACE_KERNELS_OPENCL_CL_COMMON_H_ diff --git a/mace/kernels/opencl/concat.cc b/mace/kernels/opencl/concat.cc index 697ae85448dce15cbb036ac13b177f2359274022..0b278bd3928cf6f1195a8b0fb6f18798958f8325 100644 --- a/mace/kernels/opencl/concat.cc +++ b/mace/kernels/opencl/concat.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/concat.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/kernels/opencl/conv_2d_opencl.cc b/mace/kernels/opencl/conv_2d_opencl.cc index 684de9eff434832dcc946d676667453c8cd8d0f9..f42f1428cc91015d49702bec9e69b438550834c6 100644 --- a/mace/kernels/opencl/conv_2d_opencl.cc +++ b/mace/kernels/opencl/conv_2d_opencl.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/conv_2d.h" #include "mace/kernels/opencl/helper.h" diff --git a/mace/kernels/opencl/conv_2d_opencl_1x1.cc b/mace/kernels/opencl/conv_2d_opencl_1x1.cc index 81391151e122cd8b991cf0fa4fa81dd1ff7a8315..51a860ad601f526eb4cc1ebb0fc2ad0e6e491d76 100644 --- a/mace/kernels/opencl/conv_2d_opencl_1x1.cc +++ b/mace/kernels/opencl/conv_2d_opencl_1x1.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/conv_2d.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/kernels/opencl/conv_2d_opencl_3x3.cc b/mace/kernels/opencl/conv_2d_opencl_3x3.cc index 3d02e5b004d91f799f5621d9f929706348f58a47..bea5601a9d86eb1e6a48519c1f6c95928f411848 100644 --- a/mace/kernels/opencl/conv_2d_opencl_3x3.cc +++ b/mace/kernels/opencl/conv_2d_opencl_3x3.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/conv_2d.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/kernels/opencl/conv_2d_opencl_general.cc b/mace/kernels/opencl/conv_2d_opencl_general.cc index 38d0e49fca89fb9417c90267e3bfb906e8cbcdbb..0e2f30cbe68b019e5995ca7d301501b3aec9a7de 100644 --- a/mace/kernels/opencl/conv_2d_opencl_general.cc +++ b/mace/kernels/opencl/conv_2d_opencl_general.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/conv_2d.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/kernels/opencl/cwise_opencl.cc b/mace/kernels/opencl/cwise_opencl.cc index 07b2cfb2495c81b33d32e5697507101c49c95b10..4256f5ba54b186a0646e92420a9621e73d2712bb 100644 --- a/mace/kernels/opencl/cwise_opencl.cc +++ b/mace/kernels/opencl/cwise_opencl.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/cwise.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/kernels/opencl/depth_to_space_opencl.cc b/mace/kernels/opencl/depth_to_space_opencl.cc index bd7e723d08fa41e7691a78e71f849c3267b9fd5f..4c84ab147eb33c51a7dc09f9cee464180d9444a1 100644 --- a/mace/kernels/opencl/depth_to_space_opencl.cc +++ b/mace/kernels/opencl/depth_to_space_opencl.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 "mace/kernels/depth_to_space.h" #include "mace/core/runtime/opencl/cl2_header.h" diff --git a/mace/kernels/opencl/depthwise_conv_opencl.cc b/mace/kernels/opencl/depthwise_conv_opencl.cc index e37cdb22697e3c4365cd0ab2a4aca485690c7772..1b2b372574bf62dc5f3b55cc9ca9757f4bf83b54 100644 --- a/mace/kernels/opencl/depthwise_conv_opencl.cc +++ b/mace/kernels/opencl/depthwise_conv_opencl.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/runtime/opencl/opencl_runtime.h" #include "mace/kernels/activation.h" diff --git a/mace/kernels/opencl/eltwise_opencl.cc b/mace/kernels/opencl/eltwise_opencl.cc index 04c418e40b4517a564c68464c00b6129deeca4bb..9a875a820cb675007e5f74d520c7589627474223 100644 --- a/mace/kernels/opencl/eltwise_opencl.cc +++ b/mace/kernels/opencl/eltwise_opencl.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/eltwise.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/kernels/opencl/fully_connected_opencl.cc b/mace/kernels/opencl/fully_connected_opencl.cc index 56312f61dff766f06d596b3e2ce1de9fa4e46391..bf0961b82ff99dad3c183ac2f0306fb93598dcc0 100644 --- a/mace/kernels/opencl/fully_connected_opencl.cc +++ b/mace/kernels/opencl/fully_connected_opencl.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/fully_connected.h" #include "mace/utils/tuner.h" diff --git a/mace/kernels/opencl/helper.cc b/mace/kernels/opencl/helper.cc index ebb28220b248f7ded8e7a52123d89d6115355c6b..d822a7c050f3b4a021e9e72255e1332050d42461 100644 --- a/mace/kernels/opencl/helper.cc +++ b/mace/kernels/opencl/helper.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/opencl/helper.h" diff --git a/mace/kernels/opencl/helper.h b/mace/kernels/opencl/helper.h index 89712c9b96aa043f5019cde6eae23aa07109f6f7..5257ed2cabfc72e59a80f2b1e6af8a00df03cb8c 100644 --- a/mace/kernels/opencl/helper.h +++ b/mace/kernels/opencl/helper.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_OPENCL_HELPER_H_ #define MACE_KERNELS_OPENCL_HELPER_H_ diff --git a/mace/kernels/opencl/matmul.cc b/mace/kernels/opencl/matmul.cc index ead70cc2288d06d8ad11470aa4640c12af2874b1..a462f948b21f06ce5322c7216a34aa86d8e0e991 100644 --- a/mace/kernels/opencl/matmul.cc +++ b/mace/kernels/opencl/matmul.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/matmul.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/kernels/opencl/out_of_range_check_test.cc b/mace/kernels/opencl/out_of_range_check_test.cc index ca0a0cebd83fc320defc03d8f74b0d18f76beae0..a9d06fd7d9d5dcaa40a1f006baaaa1d5d133aa83 100644 --- a/mace/kernels/opencl/out_of_range_check_test.cc +++ b/mace/kernels/opencl/out_of_range_check_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/kernels/opencl/pad.cc b/mace/kernels/opencl/pad.cc index 09d40c8441fa6803c5e1323c2d68ab6664f95d58..df408555e097075927fd8f24fe6a76841f2c63b8 100644 --- a/mace/kernels/opencl/pad.cc +++ b/mace/kernels/opencl/pad.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/pad.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/kernels/opencl/pooling_opencl.cc b/mace/kernels/opencl/pooling_opencl.cc index 0afef212e5c2845d1434b8fe8ae3db76158eebf7..ea1e3f2cdaac470cb41aa80ecd4f4237fea903a5 100644 --- a/mace/kernels/opencl/pooling_opencl.cc +++ b/mace/kernels/opencl/pooling_opencl.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/pooling.h" #include "mace/core/runtime/opencl/cl2_header.h" diff --git a/mace/kernels/opencl/resize_bilinear_opencl.cc b/mace/kernels/opencl/resize_bilinear_opencl.cc index 779849b6b53279330f15644db33a94fe8f418e68..15cbaf575fc4cbcf24c08f6b42be94495f4fd825 100644 --- a/mace/kernels/opencl/resize_bilinear_opencl.cc +++ b/mace/kernels/opencl/resize_bilinear_opencl.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/resize_bilinear.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/kernels/opencl/slice.cc b/mace/kernels/opencl/slice.cc index 07f9086b74d2a819a79d7b906fe57576aff82d09..ba93231ddd965bb90beb5ded97d675987e7b4630 100644 --- a/mace/kernels/opencl/slice.cc +++ b/mace/kernels/opencl/slice.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/slice.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/kernels/opencl/softmax_opencl.cc b/mace/kernels/opencl/softmax_opencl.cc index b74fe15000b24bd696861778e3f0ffb60427bb15..54cf842c912fd3987cbc270ec5f75569d3011b93 100644 --- a/mace/kernels/opencl/softmax_opencl.cc +++ b/mace/kernels/opencl/softmax_opencl.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/softmax.h" #include "mace/core/runtime/opencl/cl2_header.h" diff --git a/mace/kernels/opencl/space_to_batch_opencl.cc b/mace/kernels/opencl/space_to_batch_opencl.cc index 972fc1fa131ad7982924ef53c67fa1591451c660..e4702c9c42f19d1552ba348b56df1e51c463bd4d 100644 --- a/mace/kernels/opencl/space_to_batch_opencl.cc +++ b/mace/kernels/opencl/space_to_batch_opencl.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_OPENCL_SPACE_TO_BATCH_H_ #define MACE_KERNELS_OPENCL_SPACE_TO_BATCH_H_ diff --git a/mace/kernels/opencl/winograd_transform.cc b/mace/kernels/opencl/winograd_transform.cc index aadbc7fd418d165def6c40dad6d6a9ab422f921c..480825f6003fe8562977109bccb20ac82d4dc113 100644 --- a/mace/kernels/opencl/winograd_transform.cc +++ b/mace/kernels/opencl/winograd_transform.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/winograd_transform.h" #include "mace/core/runtime/opencl/cl2_header.h" diff --git a/mace/kernels/pad.h b/mace/kernels/pad.h index 6fbb1c7663388dcb7dcd9845c07274747f5f0165..b1977202a13fd9395c21a202fa541154c0f23ca1 100644 --- a/mace/kernels/pad.h +++ b/mace/kernels/pad.h @@ -1,6 +1,17 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_PAD_H_ #define MACE_KERNELS_PAD_H_ diff --git a/mace/kernels/pooling.h b/mace/kernels/pooling.h index f20c059d116330d38bb419c6e5e4910a47a7ce9b..ff39e0ff70dbd3e79c28822f562e15e711ba9d6a 100644 --- a/mace/kernels/pooling.h +++ b/mace/kernels/pooling.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_POOLING_H_ #define MACE_KERNELS_POOLING_H_ diff --git a/mace/kernels/proposal.h b/mace/kernels/proposal.h index 0f259cdc3db0e0addcc9ab67540f4d8781eacc97..22d930d80b3f0a4d21bfe2c9cd14ea422e7190fb 100644 --- a/mace/kernels/proposal.h +++ b/mace/kernels/proposal.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_PROPOSAL_H_ #define MACE_KERNELS_PROPOSAL_H_ diff --git a/mace/kernels/psroi_align.h b/mace/kernels/psroi_align.h index 57e19c3c0a8fd297a46f9b47d2a2ff83e7dd0afe..f5e8b28b2f13c554ee20d2075219b5a65dd62a7c 100644 --- a/mace/kernels/psroi_align.h +++ b/mace/kernels/psroi_align.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_PSROI_ALIGN_H_ #define MACE_KERNELS_PSROI_ALIGN_H_ diff --git a/mace/kernels/reorganize.h b/mace/kernels/reorganize.h index a64d55b97400188dd99ff4cccbec2b8e92287dc7..06cef0e3a0adf1f80b2b4eb872ded4657e3bbbc1 100644 --- a/mace/kernels/reorganize.h +++ b/mace/kernels/reorganize.h @@ -1,6 +1,17 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_REORGANIZE_H_ #define MACE_KERNELS_REORGANIZE_H_ diff --git a/mace/kernels/reshape.h b/mace/kernels/reshape.h index ddcd0dba58c5241554623c67a884aca7cbe0c060..fc25f96e08abd0984c18da74d331df22ce1a0dc2 100644 --- a/mace/kernels/reshape.h +++ b/mace/kernels/reshape.h @@ -1,6 +1,17 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_RESHAPE_H_ #define MACE_KERNELS_RESHAPE_H_ diff --git a/mace/kernels/resize_bilinear.h b/mace/kernels/resize_bilinear.h index 5a513753771b9a3153d539a2f49ed819540c7bdc..9b22b7b7a71e3367c70a5ee2414708cc540f1ab8 100644 --- a/mace/kernels/resize_bilinear.h +++ b/mace/kernels/resize_bilinear.h @@ -1,6 +1,17 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_RESIZE_BILINEAR_H_ #define MACE_KERNELS_RESIZE_BILINEAR_H_ diff --git a/mace/kernels/slice.h b/mace/kernels/slice.h index 36cda42f345ff9bb1a4d118cb6627608ef698309..ea08e7f43a40df710eb614438be17331942ae7c5 100644 --- a/mace/kernels/slice.h +++ b/mace/kernels/slice.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_SLICE_H_ #define MACE_KERNELS_SLICE_H_ diff --git a/mace/kernels/softmax.h b/mace/kernels/softmax.h index 48fe37f20b59961be88de7b26d878023329f606b..33e11c6591c915c3a9c70eee18c4ae76479be343 100644 --- a/mace/kernels/softmax.h +++ b/mace/kernels/softmax.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_SOFTMAX_H_ #define MACE_KERNELS_SOFTMAX_H_ diff --git a/mace/kernels/space_to_batch.h b/mace/kernels/space_to_batch.h index 672ccfca558c439e9b8fa16461638c7bf937afee..46c472c8a4f2ed91e7a866d47294177c97e1a31a 100644 --- a/mace/kernels/space_to_batch.h +++ b/mace/kernels/space_to_batch.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_SPACE_TO_BATCH_H_ #define MACE_KERNELS_SPACE_TO_BATCH_H_ diff --git a/mace/kernels/transpose.h b/mace/kernels/transpose.h index ad04d7284d9b2e9b6ecc47dc2aa6cb14d4ea0dca..6854c5f91e69bd06e342eefe70b7f47d09ad4ffe 100644 --- a/mace/kernels/transpose.h +++ b/mace/kernels/transpose.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_TRANSPOSE_H_ #define MACE_KERNELS_TRANSPOSE_H_ diff --git a/mace/kernels/winograd_transform.h b/mace/kernels/winograd_transform.h index b6b45ea162c2abb45fcb98353821b9070542ca62..538c62bc51e6eabcd3a3d055ff9a7bdece0c36ed 100644 --- a/mace/kernels/winograd_transform.h +++ b/mace/kernels/winograd_transform.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_KERNELS_WINOGRAD_TRANSFORM_H_ #define MACE_KERNELS_WINOGRAD_TRANSFORM_H_ diff --git a/mace/ops/activation.cc b/mace/ops/activation.cc index 4e49eb244cd4a63c8f9c1d0d83bf36c5b5de01fa..9beb3f8092c66da948de53980a893d1b4a75e747 100644 --- a/mace/ops/activation.cc +++ b/mace/ops/activation.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/activation.h" diff --git a/mace/ops/activation.h b/mace/ops/activation.h index bfe91591ed0fab88011de3187cf523c00d3f0fd1..5f07425a649992907f6c9d5103fbf156119cdf7f 100644 --- a/mace/ops/activation.h +++ b/mace/ops/activation.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_ACTIVATION_H_ #define MACE_OPS_ACTIVATION_H_ diff --git a/mace/ops/activation_benchmark.cc b/mace/ops/activation_benchmark.cc index df04ff8190926288aa195203c6a74cd45dd3550e..bf67a6daf7d2c4d22877d59421b0ea7389d89443 100644 --- a/mace/ops/activation_benchmark.cc +++ b/mace/ops/activation_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/activation_test.cc b/mace/ops/activation_test.cc index 23110fe4ed88e43a5d5a9f37d83df62cf97a4be1..58fd7050db286b0da9c74c6e3e208640222d0aac 100644 --- a/mace/ops/activation_test.cc +++ b/mace/ops/activation_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/ops/ops_test_util.h" diff --git a/mace/ops/addn.cc b/mace/ops/addn.cc index e30275bb5ac95a7ad15a227190490c5ccd4e495a..db6cb26a8dc10d624e8432355a2970be57bda43b 100644 --- a/mace/ops/addn.cc +++ b/mace/ops/addn.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/addn.h" diff --git a/mace/ops/addn.h b/mace/ops/addn.h index 24a91660e7d49af683fada81e90e8215ec2e699c..55d1c0c71f4e10e3259c4caa3bfb43da3f202267 100644 --- a/mace/ops/addn.h +++ b/mace/ops/addn.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_ADDN_H_ #define MACE_OPS_ADDN_H_ diff --git a/mace/ops/addn_benchmark.cc b/mace/ops/addn_benchmark.cc index a9538c9f218dac42d7676829c89e6f7daa64a71d..bc18acf4264b12b0f79fe5f14bfd121f97f16ab9 100644 --- a/mace/ops/addn_benchmark.cc +++ b/mace/ops/addn_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/addn_test.cc b/mace/ops/addn_test.cc index 471d96ec3a4743821a8ad635205e5bb7b0ed8449..4331a567e9fbaf56605163a7e394d04714dff3f9 100644 --- a/mace/ops/addn_test.cc +++ b/mace/ops/addn_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/ops/ops_test_util.h" diff --git a/mace/ops/batch_norm.cc b/mace/ops/batch_norm.cc index 8b42007641f01cf5b81a1047d6304593f09aa603..255b31e96468d2ea4a7e927e35d1a5e58b873cbf 100644 --- a/mace/ops/batch_norm.cc +++ b/mace/ops/batch_norm.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/batch_norm.h" diff --git a/mace/ops/batch_norm.h b/mace/ops/batch_norm.h index f22c52b573ffd1d9ef0c1f0f5de3d603c84e7277..11a89fb469f99d25858aa1f556b6ccdd6debdfdd 100644 --- a/mace/ops/batch_norm.h +++ b/mace/ops/batch_norm.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_BATCH_NORM_H_ #define MACE_OPS_BATCH_NORM_H_ diff --git a/mace/ops/batch_norm_benchmark.cc b/mace/ops/batch_norm_benchmark.cc index e7a68bd6bbf49bc0a879411826c45c5a3077d838..036e4cde63f381362bb41372f7eea7b3874cf0b3 100644 --- a/mace/ops/batch_norm_benchmark.cc +++ b/mace/ops/batch_norm_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/ops/batch_norm_test.cc b/mace/ops/batch_norm_test.cc index cc122f7aa453c8b6b17c26a064feae1ce9e24227..c1f0ca02dbe59510682f215ee194b3901db6243a 100644 --- a/mace/ops/batch_norm_test.cc +++ b/mace/ops/batch_norm_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/ops/ops_test_util.h" diff --git a/mace/ops/batch_to_space.cc b/mace/ops/batch_to_space.cc index 878e79f4f7c359b792560d2889b8552ba7086f4f..574eca53e0a7573c4fd61a5966a402a28710ea90 100644 --- a/mace/ops/batch_to_space.cc +++ b/mace/ops/batch_to_space.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/batch_to_space.h" diff --git a/mace/ops/batch_to_space.h b/mace/ops/batch_to_space.h index 51157aa72d2e6f77dc30e70e76f274f68d8d96d2..2a6e931c395cde54ef618e56a0bbbf55c3c7f243 100644 --- a/mace/ops/batch_to_space.h +++ b/mace/ops/batch_to_space.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_BATCH_TO_SPACE_H_ #define MACE_OPS_BATCH_TO_SPACE_H_ diff --git a/mace/ops/batch_to_space_benchmark.cc b/mace/ops/batch_to_space_benchmark.cc index 5eaa2aee3791565f0fbb3e15404152c5de605967..447b84c405c468ab5f23309f8e989d6a67383277 100644 --- a/mace/ops/batch_to_space_benchmark.cc +++ b/mace/ops/batch_to_space_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/core/testing/test_benchmark.h" diff --git a/mace/ops/bias_add.cc b/mace/ops/bias_add.cc index aeeabc49e0ef1a52c10efcdfa131d70e95a0affa..dbbcc9b329fcb20c9d4bb7a4ff103cad9952ba00 100644 --- a/mace/ops/bias_add.cc +++ b/mace/ops/bias_add.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/bias_add.h" diff --git a/mace/ops/bias_add.h b/mace/ops/bias_add.h index 686dd673eb5acc669b490a46e1da1612b2275e71..54dfee0d0633b4031e16b3510b81ef306a275720 100644 --- a/mace/ops/bias_add.h +++ b/mace/ops/bias_add.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_BIAS_ADD_H_ #define MACE_OPS_BIAS_ADD_H_ diff --git a/mace/ops/bias_add_benchmark.cc b/mace/ops/bias_add_benchmark.cc index 4926f5a0b23a803c5f8bdbfaedacb37a6425c4e9..6e5ff0b79ed0cdbf088144955e10911c2a6a9039 100644 --- a/mace/ops/bias_add_benchmark.cc +++ b/mace/ops/bias_add_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/ops/bias_add_test.cc b/mace/ops/bias_add_test.cc index dc3bca0617e4b4ccf45a2f7c9508a10ce63d0db3..79e406a82096aa2b4528e9e1fdfa0337ecb289de 100644 --- a/mace/ops/bias_add_test.cc +++ b/mace/ops/bias_add_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/ops/ops_test_util.h" diff --git a/mace/ops/buffer_to_image.cc b/mace/ops/buffer_to_image.cc index abeccde0c49f229071e6c00e33f3fce72ca9abcf..9270b2bf2a7065469861ac5841df1616380df66e 100644 --- a/mace/ops/buffer_to_image.cc +++ b/mace/ops/buffer_to_image.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/buffer_to_image.h" diff --git a/mace/ops/buffer_to_image.h b/mace/ops/buffer_to_image.h index a50bebd37f2395b729486bed50cc00f971422a84..84593989f5c12c67976cbe2c9fce699b9fc31239 100644 --- a/mace/ops/buffer_to_image.h +++ b/mace/ops/buffer_to_image.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_BUFFER_TO_IMAGE_H_ #define MACE_OPS_BUFFER_TO_IMAGE_H_ diff --git a/mace/ops/buffer_to_image_test.cc b/mace/ops/buffer_to_image_test.cc index 679c326e8b5ea7669f1b97c20a50064c785866e3..e75a6ae1b6e12d9af807fead81aa0134cc076992 100644 --- a/mace/ops/buffer_to_image_test.cc +++ b/mace/ops/buffer_to_image_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "gtest/gtest.h" #include "mace/ops/ops_test_util.h" diff --git a/mace/ops/channel_shuffle.cc b/mace/ops/channel_shuffle.cc index c1c5df9cd2da4046c33585d15d708f97625b9139..83ef3fe67298ae1573dc1b7f61a13af1cda994f6 100644 --- a/mace/ops/channel_shuffle.cc +++ b/mace/ops/channel_shuffle.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/channel_shuffle.h" diff --git a/mace/ops/channel_shuffle.h b/mace/ops/channel_shuffle.h index 93cbfd40230034ac586561387d4bf7bb490f3794..6e74f850a653c3c2bd423879ca0822d3dd809e41 100644 --- a/mace/ops/channel_shuffle.h +++ b/mace/ops/channel_shuffle.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_CHANNEL_SHUFFLE_H_ #define MACE_OPS_CHANNEL_SHUFFLE_H_ diff --git a/mace/ops/channel_shuffle_benchmark.cc b/mace/ops/channel_shuffle_benchmark.cc index 9c41970459d115ebe2901a704dd1ee0f58977b1e..7f7626adab4504ae4d045ce4e80153579befae02 100644 --- a/mace/ops/channel_shuffle_benchmark.cc +++ b/mace/ops/channel_shuffle_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/core/testing/test_benchmark.h" diff --git a/mace/ops/channel_shuffle_test.cc b/mace/ops/channel_shuffle_test.cc index 02bbaf2af807b00531e73ce1bf31f9af21df78a0..39a2b53d237471abb63d7a27dd7e46a1eb7909d3 100644 --- a/mace/ops/channel_shuffle_test.cc +++ b/mace/ops/channel_shuffle_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/ops/ops_test_util.h" diff --git a/mace/ops/concat.cc b/mace/ops/concat.cc index 30d3cec089469d4bfd60fb1681f2ad7086acda1b..5e8a3bcffcee02688f57e1bcb90e5555a9b5a21b 100644 --- a/mace/ops/concat.cc +++ b/mace/ops/concat.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/concat.h" diff --git a/mace/ops/concat.h b/mace/ops/concat.h index b791619d31d440393dd9fdb0dfb688199d6789ec..8902548d944194cd484d2a95fd32fd98f9bd2017 100644 --- a/mace/ops/concat.h +++ b/mace/ops/concat.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_CONCAT_H_ #define MACE_OPS_CONCAT_H_ diff --git a/mace/ops/concat_benchmark.cc b/mace/ops/concat_benchmark.cc index 4b6b332c9a80fbd147aae60ed9208a385dec08ea..803b61c50211c3de08b431dd8b1918fa3e84cfcc 100644 --- a/mace/ops/concat_benchmark.cc +++ b/mace/ops/concat_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/core/testing/test_benchmark.h" diff --git a/mace/ops/concat_test.cc b/mace/ops/concat_test.cc index 8a6e00d42de8fe105efed3c067420a7c9d222e4a..a7243a3a667efc0d768dfbec0acfe8d9187ee865 100644 --- a/mace/ops/concat_test.cc +++ b/mace/ops/concat_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/conv_2d.cc b/mace/ops/conv_2d.cc index 1c612a426b5dccbfad830fa5387010b6f4ef8d23..081019b52e8794328d33c7a6823c4fc5ffeb7429 100644 --- a/mace/ops/conv_2d.cc +++ b/mace/ops/conv_2d.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/conv_2d.h" diff --git a/mace/ops/conv_2d.h b/mace/ops/conv_2d.h index 33758808dde5a145c7e575c29268716f766ac5ed..5f69214369e7f91bfe2b196eb192ed4a4660821b 100644 --- a/mace/ops/conv_2d.h +++ b/mace/ops/conv_2d.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_CONV_2D_H_ #define MACE_OPS_CONV_2D_H_ diff --git a/mace/ops/conv_2d_benchmark.cc b/mace/ops/conv_2d_benchmark.cc index 74e0bb42610c5372e58392b86a745db0125be7e9..7b96860603e36e17e3b86325238cee413f5a3257 100644 --- a/mace/ops/conv_2d_benchmark.cc +++ b/mace/ops/conv_2d_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/conv_2d_test.cc b/mace/ops/conv_2d_test.cc index e0edd2a979d465ccfed898c50d375db509b89b67..219e4af343a34951f80c2838f8ba6d7ee6b17355 100644 --- a/mace/ops/conv_2d_test.cc +++ b/mace/ops/conv_2d_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/conv_pool_2d_base.h b/mace/ops/conv_pool_2d_base.h index a6f1299da25174e15a267373ca70a1090878c53b..4ac5da52abd1668b2cdabe6b23b8a9e56fa8f0bc 100644 --- a/mace/ops/conv_pool_2d_base.h +++ b/mace/ops/conv_pool_2d_base.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_CONV_POOL_2D_BASE_H_ #define MACE_OPS_CONV_POOL_2D_BASE_H_ diff --git a/mace/ops/core_test.cc b/mace/ops/core_test.cc index 3d533e5d5eddc56c74db483f173cac93bdb0ccd4..81ef5f53f36753d71b1a54cc29af530611edd13e 100644 --- a/mace/ops/core_test.cc +++ b/mace/ops/core_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/ops_test_util.h" diff --git a/mace/ops/cwise.cc b/mace/ops/cwise.cc index 42439c3e254837638cd3a919a64e782f5a227a17..4f98b63dc4c161f4f807c7d1149c3f7bd7410722 100644 --- a/mace/ops/cwise.cc +++ b/mace/ops/cwise.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/cwise.h" diff --git a/mace/ops/cwise.h b/mace/ops/cwise.h index 75430183c43f371467e947968f65f958954ce1c2..8cef0e10814cc35cbe09677c606c406aceeefc21 100644 --- a/mace/ops/cwise.h +++ b/mace/ops/cwise.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_CWISE_H_ #define MACE_OPS_CWISE_H_ diff --git a/mace/ops/cwise_benchmark.cc b/mace/ops/cwise_benchmark.cc index 632accc1f66841d1543d5fee4cc92d34a9f44bfb..8d41d85dd5a9704490a17bf0e446a9691bf62b5c 100644 --- a/mace/ops/cwise_benchmark.cc +++ b/mace/ops/cwise_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/ops/cwise_test.cc b/mace/ops/cwise_test.cc index 56b4359a14c605635d0fd090fb640c228ffa96ab..e5510106ee71b02ef58edfc4894ef4e7b4a9973d 100644 --- a/mace/ops/cwise_test.cc +++ b/mace/ops/cwise_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/ops/ops_test_util.h" diff --git a/mace/ops/depth_to_space.cc b/mace/ops/depth_to_space.cc index a8c4ef55bdef9dfe2c4290f7cf4e3215a852e6fb..e5299efb5765430cf6e15aeb9533926d2ed3c9c1 100644 --- a/mace/ops/depth_to_space.cc +++ b/mace/ops/depth_to_space.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/depth_to_space.h" diff --git a/mace/ops/depth_to_space.h b/mace/ops/depth_to_space.h index ad71396fa390df91d3f27898763d228a8a82f7eb..1b2198cfa46ddb7695c24012d2c843269cf60e44 100644 --- a/mace/ops/depth_to_space.h +++ b/mace/ops/depth_to_space.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_DEPTH_TO_SPACE_H_ #define MACE_OPS_DEPTH_TO_SPACE_H_ diff --git a/mace/ops/depth_to_space_benchmark.cc b/mace/ops/depth_to_space_benchmark.cc index 39f251ef5d7255a2edc6b0b5f0ac77683d685269..c76d1b69b3bc83935980993cf790b6e1dce31340 100644 --- a/mace/ops/depth_to_space_benchmark.cc +++ b/mace/ops/depth_to_space_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/core/testing/test_benchmark.h" diff --git a/mace/ops/depth_to_space_test.cc b/mace/ops/depth_to_space_test.cc index f96dfb4d3f1713d6ce21838a211a6db900f65700..0b602c4820a50f217827030a4522993eb81b6db7 100644 --- a/mace/ops/depth_to_space_test.cc +++ b/mace/ops/depth_to_space_test.cc @@ -1,6 +1,17 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/depthwise_conv2d.cc b/mace/ops/depthwise_conv2d.cc index fe5a6b2aa80f35d5882e90418e5f460c1a8476fe..71ee85b445d52cc93b69b487a496fd208e3f50f8 100644 --- a/mace/ops/depthwise_conv2d.cc +++ b/mace/ops/depthwise_conv2d.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/depthwise_conv2d.h" diff --git a/mace/ops/depthwise_conv2d.h b/mace/ops/depthwise_conv2d.h index f7abd6891f2d5dfbc0aefdd4b653b80330853ad5..7e0deebd30af3512fae38a59475c84db0376bf24 100644 --- a/mace/ops/depthwise_conv2d.h +++ b/mace/ops/depthwise_conv2d.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_DEPTHWISE_CONV2D_H_ #define MACE_OPS_DEPTHWISE_CONV2D_H_ diff --git a/mace/ops/depthwise_conv2d_benchmark.cc b/mace/ops/depthwise_conv2d_benchmark.cc index 66e4dc5d672f2811af09ae708a8de15f7f219fbf..2eea3b7831823f832e53ab08ed18f4c116add612 100644 --- a/mace/ops/depthwise_conv2d_benchmark.cc +++ b/mace/ops/depthwise_conv2d_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/depthwise_conv2d_test.cc b/mace/ops/depthwise_conv2d_test.cc index 50d9a1f7de9ed8c70e44db904e7c331b496d3b82..3448111673484b27569d7eacf7bb56bd8d5c6229 100644 --- a/mace/ops/depthwise_conv2d_test.cc +++ b/mace/ops/depthwise_conv2d_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/conv_2d.h" #include "mace/ops/ops_test_util.h" diff --git a/mace/ops/eltwise.cc b/mace/ops/eltwise.cc index 07c775ad68c00bbc37e9ab2ee7ee7cec5082744a..b3ad92feb494361be870dd0bbd435e047fa736bb 100644 --- a/mace/ops/eltwise.cc +++ b/mace/ops/eltwise.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/eltwise.h" diff --git a/mace/ops/eltwise.h b/mace/ops/eltwise.h index f68622e5cd781f8078d0ada568b2e82fb634edfc..818fa5e533d219256f3528f01c5434e99d390a40 100644 --- a/mace/ops/eltwise.h +++ b/mace/ops/eltwise.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_ELTWISE_H_ #define MACE_OPS_ELTWISE_H_ diff --git a/mace/ops/eltwise_benchmark.cc b/mace/ops/eltwise_benchmark.cc index 7f2b046c45ef7cca0f0b32de42cf5fb06031c8c9..b9577919a0a01f8143ec327538f308ac8b9fa1d6 100644 --- a/mace/ops/eltwise_benchmark.cc +++ b/mace/ops/eltwise_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/eltwise_test.cc b/mace/ops/eltwise_test.cc index a489607730dfe955f73fec36788039ab75ba9efa..ca24242b04bef9e55031a57e54cf76e79f06b7ff 100644 --- a/mace/ops/eltwise_test.cc +++ b/mace/ops/eltwise_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/eltwise.h" #include "mace/core/operator.h" diff --git a/mace/ops/folded_batch_norm.cc b/mace/ops/folded_batch_norm.cc index 9bc436524f08db5b0d7e906a491120d64560652d..f75554489aa194629b7c6a6cedf52961641408f9 100644 --- a/mace/ops/folded_batch_norm.cc +++ b/mace/ops/folded_batch_norm.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/folded_batch_norm.h" diff --git a/mace/ops/folded_batch_norm.h b/mace/ops/folded_batch_norm.h index dd2f7b17c87ea58c5956b9ea014dd7f1a09ce964..75f61c3a31dd8bfc7c20ea759a42c98903d4bdf5 100644 --- a/mace/ops/folded_batch_norm.h +++ b/mace/ops/folded_batch_norm.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_FOLDED_BATCH_NORM_H_ #define MACE_OPS_FOLDED_BATCH_NORM_H_ diff --git a/mace/ops/folded_batch_norm_test.cc b/mace/ops/folded_batch_norm_test.cc index d422bb041c007e05d229c192dbcdd68ad1a82c0d..9a9de423e2c2e85761f9e0a52b6ffa8b679b615f 100644 --- a/mace/ops/folded_batch_norm_test.cc +++ b/mace/ops/folded_batch_norm_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/ops/ops_test_util.h" diff --git a/mace/ops/fully_connected.cc b/mace/ops/fully_connected.cc index 2558e4575cd762fc63f8b600e808920806a293f9..8f8df09b22725847bd72b6bf9df64b67f7336451 100644 --- a/mace/ops/fully_connected.cc +++ b/mace/ops/fully_connected.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/fully_connected.h" diff --git a/mace/ops/fully_connected.h b/mace/ops/fully_connected.h index 5ac305ff9abb5ecc570f50375d8c4335f72e2fdd..a14a5ecc54a36c52377d8c46151f441a06f2535f 100644 --- a/mace/ops/fully_connected.h +++ b/mace/ops/fully_connected.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_FULLY_CONNECTED_H_ #define MACE_OPS_FULLY_CONNECTED_H_ diff --git a/mace/ops/fully_connected_benchmark.cc b/mace/ops/fully_connected_benchmark.cc index a9a89860065567640d91b9433c04fed0be13d832..7d671626d8bd4e5d248f936fe625aaf8fc3b05af 100644 --- a/mace/ops/fully_connected_benchmark.cc +++ b/mace/ops/fully_connected_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/fully_connected_test.cc b/mace/ops/fully_connected_test.cc index 33c839270aadca4b518663de0bc1c700039eb149..e994213a5754ba3cf350106bd9a3cca4fa6f64ab 100644 --- a/mace/ops/fully_connected_test.cc +++ b/mace/ops/fully_connected_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/fused_conv_2d.cc b/mace/ops/fused_conv_2d.cc index ebc360e255864c0ecb5f44a3794f067bd54861c2..a1d4f32cebbae18f48be077c2973231a7e55a440 100644 --- a/mace/ops/fused_conv_2d.cc +++ b/mace/ops/fused_conv_2d.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/fused_conv_2d.h" diff --git a/mace/ops/fused_conv_2d.h b/mace/ops/fused_conv_2d.h index 29df5913f680ed712596b99b58d6455339144df8..c58854cf75a33c61abf9e9fc64abddee761251fa 100644 --- a/mace/ops/fused_conv_2d.h +++ b/mace/ops/fused_conv_2d.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_FUSED_CONV_2D_H_ #define MACE_OPS_FUSED_CONV_2D_H_ diff --git a/mace/ops/fused_conv_2d_test.cc b/mace/ops/fused_conv_2d_test.cc index 6ef1298386a8114505bd82aeb30114b1792cb71b..d02953b2b608cf882b8f9e925ea0c722bc28f1e4 100644 --- a/mace/ops/fused_conv_2d_test.cc +++ b/mace/ops/fused_conv_2d_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/global_avg_pooling.cc b/mace/ops/global_avg_pooling.cc index 5421f1ce0756f13e470645ed9a12242a6fe7612e..2d1dadc1a353be646ea2959f9351a83d026d5d04 100644 --- a/mace/ops/global_avg_pooling.cc +++ b/mace/ops/global_avg_pooling.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/global_avg_pooling.h" diff --git a/mace/ops/global_avg_pooling.h b/mace/ops/global_avg_pooling.h index 59ab7452dc91e7c80ffeced960fbace9ffd5daef..1e211f123d55f51bcf8258c3c0e842d8438ce5b3 100644 --- a/mace/ops/global_avg_pooling.h +++ b/mace/ops/global_avg_pooling.h @@ -1,6 +1,16 @@ -// DMACE_ENABLE_NEON -// Copyright (c) 2017 XiaoMi All rights reserved. +// Copyright 2018 Xiaomi, Inc. 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 MACE_OPS_GLOBAL_AVG_POOLING_H_ #define MACE_OPS_GLOBAL_AVG_POOLING_H_ diff --git a/mace/ops/global_avg_pooling_benchmark.cc b/mace/ops/global_avg_pooling_benchmark.cc index b5a8e9c624da82b6dc541d23b4f41ce89260ad8a..f71fd95308b734c13afa9e86b07153d01eb1ae16 100644 --- a/mace/ops/global_avg_pooling_benchmark.cc +++ b/mace/ops/global_avg_pooling_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/global_avg_pooling.h" #include "mace/core/operator.h" diff --git a/mace/ops/global_avg_pooling_test.cc b/mace/ops/global_avg_pooling_test.cc index e211268801fded1e632e13aa4ad1dc61e05723ae..53986ba3ba4bc280139520a3e941b0ff91539b4b 100644 --- a/mace/ops/global_avg_pooling_test.cc +++ b/mace/ops/global_avg_pooling_test.cc @@ -1,6 +1,17 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/ops/ops_test_util.h" diff --git a/mace/ops/image_to_buffer.cc b/mace/ops/image_to_buffer.cc index 6ea1d8db5fc61452cdea89d776c423d99a222223..1dfd9321b9c500b2b0aadcd12a07f8c9cab066a7 100644 --- a/mace/ops/image_to_buffer.cc +++ b/mace/ops/image_to_buffer.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/image_to_buffer.h" diff --git a/mace/ops/image_to_buffer.h b/mace/ops/image_to_buffer.h index b786d3092faeb3c989bc9ad9870c063d57faaa37..6a4fc6dff3a627887d8248af6b7b0dd79f29fabd 100644 --- a/mace/ops/image_to_buffer.h +++ b/mace/ops/image_to_buffer.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_IMAGE_TO_BUFFER_H_ #define MACE_OPS_IMAGE_TO_BUFFER_H_ diff --git a/mace/ops/matmul.cc b/mace/ops/matmul.cc index 3ebe99a93acd1dafe8b90cdf468affdc60f4d880..5c22263e30e6e4433d9ee37a1f6ef20367108990 100644 --- a/mace/ops/matmul.cc +++ b/mace/ops/matmul.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/matmul.h" diff --git a/mace/ops/matmul.h b/mace/ops/matmul.h index b8bca6a247e04885e2dc73015c27262cb8285542..0a5cd27d2e9b4547cee578da0397f962ee5f245b 100644 --- a/mace/ops/matmul.h +++ b/mace/ops/matmul.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_MATMUL_H_ #define MACE_OPS_MATMUL_H_ diff --git a/mace/ops/matmul_benchmark.cc b/mace/ops/matmul_benchmark.cc index a547a25bc6fb7701877868b7767e2b00f21032d5..ada15ae5e55c8092debcdbdaedd188c0336d0172 100644 --- a/mace/ops/matmul_benchmark.cc +++ b/mace/ops/matmul_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/matmul_test.cc b/mace/ops/matmul_test.cc index d5fea8569279a3e7bebe9f4a332325498ecaabdb..fd86b7d8f1c61dc970a26aa54422a5487866c06c 100644 --- a/mace/ops/matmul_test.cc +++ b/mace/ops/matmul_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/ops_test_util.h b/mace/ops/ops_test_util.h index aca7853da53c7cff137921f6d6606b9169165dd4..de3015cdf02467be13d8b99afe5d362fac42dd52 100644 --- a/mace/ops/ops_test_util.h +++ b/mace/ops/ops_test_util.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_OPS_TEST_UTIL_H_ #define MACE_OPS_OPS_TEST_UTIL_H_ diff --git a/mace/ops/pad.cc b/mace/ops/pad.cc index 67f6608a9b57afaf000c7231a2a2f73e7b6297c6..0d61b6c2009303a045ab26b1c23a2fecdc122580 100644 --- a/mace/ops/pad.cc +++ b/mace/ops/pad.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/pad.h" diff --git a/mace/ops/pad.h b/mace/ops/pad.h index 1ee3319043578382d49b9d8f7642cf2d2afca9b5..35e68482dca6faa924adb4ec8a3299435b3d4c48 100644 --- a/mace/ops/pad.h +++ b/mace/ops/pad.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_PAD_H_ #define MACE_OPS_PAD_H_ diff --git a/mace/ops/pad_benchmark.cc b/mace/ops/pad_benchmark.cc index 52b87d77f9e9e8696d1fdfbfdf0660e5042796da..e99a543acf6cdcfe3a8cbf57a7f6478977e61a4e 100644 --- a/mace/ops/pad_benchmark.cc +++ b/mace/ops/pad_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/core/runtime/opencl/opencl_runtime.h" diff --git a/mace/ops/pad_test.cc b/mace/ops/pad_test.cc index 5a87f32a2219f47815c68fe32f835c89adc278be..f5069a806d99297c635c76f12b4cffbea5faf844 100644 --- a/mace/ops/pad_test.cc +++ b/mace/ops/pad_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/ops/ops_test_util.h" diff --git a/mace/ops/pooling.cc b/mace/ops/pooling.cc index e74dd8442c9c55837770dc0ce1a39dd860ef5a01..086baba6df368258616e287adacbdbc07a58d368 100644 --- a/mace/ops/pooling.cc +++ b/mace/ops/pooling.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/pooling.h" diff --git a/mace/ops/pooling.h b/mace/ops/pooling.h index 1033ad6ec32eac56def19a7286dcf29f8979a7bb..6e2c505615c45b2d3d53e30cdcec196751ba6a2d 100644 --- a/mace/ops/pooling.h +++ b/mace/ops/pooling.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_POOLING_H_ #define MACE_OPS_POOLING_H_ diff --git a/mace/ops/pooling_benchmark.cc b/mace/ops/pooling_benchmark.cc index 546c02efa8f51315e2ff2de20b69b9b6bb63b850..a0d809944d2c8d6db5d34fc36b0b21ac80e1ffd7 100644 --- a/mace/ops/pooling_benchmark.cc +++ b/mace/ops/pooling_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/kernels/pooling.h" #include "mace/core/operator.h" diff --git a/mace/ops/pooling_test.cc b/mace/ops/pooling_test.cc index 27d4cf891fa8abd44754a6b8f70c5425e5b9103c..729eb1526bcec1959e0fe065d18d8acc5e39d3ba 100644 --- a/mace/ops/pooling_test.cc +++ b/mace/ops/pooling_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "gtest/gtest.h" diff --git a/mace/ops/proposal.cc b/mace/ops/proposal.cc index 853a4e5b36aae7bb426ac387d90d60a27f663c3a..98afe966fc46579bf367be8287294e8f5a0b7402 100644 --- a/mace/ops/proposal.cc +++ b/mace/ops/proposal.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/proposal.h" diff --git a/mace/ops/proposal.h b/mace/ops/proposal.h index 6bd1c15917b57e7334a604986ec40cb03471871c..07b60162e54f3a9a15b92bc1610a464130abef8b 100644 --- a/mace/ops/proposal.h +++ b/mace/ops/proposal.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_PROPOSAL_H_ #define MACE_OPS_PROPOSAL_H_ diff --git a/mace/ops/proposal_test.cc b/mace/ops/proposal_test.cc index 94203deb4b82bc1a1d2d96e3a122e6856f0ce109..cc4cdbe6c541c4ddad2bea75d449fe7d2908f32a 100644 --- a/mace/ops/proposal_test.cc +++ b/mace/ops/proposal_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/ops/ops_test_util.h" diff --git a/mace/ops/psroi_align.cc b/mace/ops/psroi_align.cc index d2ba2b45327558beedf511ab8c170d4b9ea42188..d21db0cc7349e70cf5badfa144c4804c61bdf3b8 100644 --- a/mace/ops/psroi_align.cc +++ b/mace/ops/psroi_align.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/psroi_align.h" diff --git a/mace/ops/psroi_align.h b/mace/ops/psroi_align.h index e134b4a43cb78022895ee62a7b3ccfde3c5e110d..a8fa024b34e76b04721ca02269d341aaf4b31173 100644 --- a/mace/ops/psroi_align.h +++ b/mace/ops/psroi_align.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_PSROI_ALIGN_H_ #define MACE_OPS_PSROI_ALIGN_H_ diff --git a/mace/ops/reorganize.cc b/mace/ops/reorganize.cc index 794464cfb473005cb4dc76271bc470227191d104..d4e3cddecf7122515581bda9bf5e1314224ce194 100644 --- a/mace/ops/reorganize.cc +++ b/mace/ops/reorganize.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/reorganize.h" diff --git a/mace/ops/reorganize.h b/mace/ops/reorganize.h index 63b6110701a9c477982ef38f54489479ead89a1b..6f5270446219337e45835862d042d0e122814013 100644 --- a/mace/ops/reorganize.h +++ b/mace/ops/reorganize.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_REORGANIZE_H_ #define MACE_OPS_REORGANIZE_H_ diff --git a/mace/ops/reorganize_test.cc b/mace/ops/reorganize_test.cc index 2c89369b51f6b764eabf6772a4135629f4c22f30..aa25f9986bad8105a3e8f5ca2ad788726160298c 100644 --- a/mace/ops/reorganize_test.cc +++ b/mace/ops/reorganize_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "gmock/gmock.h" #include "mace/core/operator.h" diff --git a/mace/ops/reshape.cc b/mace/ops/reshape.cc index 26dff665eeb040893ced6832bfa4b4312b6a4482..708e7e09421554cb70336f33c7b01aa53e3c2a25 100644 --- a/mace/ops/reshape.cc +++ b/mace/ops/reshape.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/reshape.h" diff --git a/mace/ops/reshape.h b/mace/ops/reshape.h index e7f1a80ad5f315d3e873e13ba1c0d9e075fc9234..e8aded2392ddc15f2df2eb60adaf91feda49508a 100644 --- a/mace/ops/reshape.h +++ b/mace/ops/reshape.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_RESHAPE_H_ #define MACE_OPS_RESHAPE_H_ diff --git a/mace/ops/reshape_test.cc b/mace/ops/reshape_test.cc index 56e6feb50c2e36a17b5eab47038de7f4bce4a787..2b24277718a2c1c8d11fb77dd05fbf0886956c46 100644 --- a/mace/ops/reshape_test.cc +++ b/mace/ops/reshape_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "gmock/gmock.h" #include "mace/core/operator.h" diff --git a/mace/ops/resize_bilinear.cc b/mace/ops/resize_bilinear.cc index a7449a3c6a97ce8dc5fcff666507a33d16e92a4b..4d6296087b044443235c5e9fee358ec624dfe602 100644 --- a/mace/ops/resize_bilinear.cc +++ b/mace/ops/resize_bilinear.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/resize_bilinear.h" diff --git a/mace/ops/resize_bilinear.h b/mace/ops/resize_bilinear.h index 1fc727484920c4092b7e12ca8a8031c562a366a4..c2e1f0aeabe6863e276e916b309e3f4f57112e89 100644 --- a/mace/ops/resize_bilinear.h +++ b/mace/ops/resize_bilinear.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_RESIZE_BILINEAR_H_ #define MACE_OPS_RESIZE_BILINEAR_H_ diff --git a/mace/ops/resize_bilinear_benchmark.cc b/mace/ops/resize_bilinear_benchmark.cc index 8aada066957d7ac6c7a69788b00e046ffeef8cb0..2210c443b85fb7d78a75fe2a243aea123f5ee099 100644 --- a/mace/ops/resize_bilinear_benchmark.cc +++ b/mace/ops/resize_bilinear_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" diff --git a/mace/ops/resize_bilinear_test.cc b/mace/ops/resize_bilinear_test.cc index 3629ed01dcfcf350f84f16c7872c2cc6283ac842..ac7e862a5a49ca72bbc08799cf63332d9b1c7a56 100644 --- a/mace/ops/resize_bilinear_test.cc +++ b/mace/ops/resize_bilinear_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/slice.cc b/mace/ops/slice.cc index e8fe0acc2ae5b78bdf68ba0dc8f25a7225a911f7..15b703826e7251907fb4af8d541034894059897b 100644 --- a/mace/ops/slice.cc +++ b/mace/ops/slice.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/slice.h" diff --git a/mace/ops/slice.h b/mace/ops/slice.h index 228693450de1e8a460ef921766e87b08f2141176..a06406213955287ad65ce74e711dac6abb754d8e 100644 --- a/mace/ops/slice.h +++ b/mace/ops/slice.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_SLICE_H_ #define MACE_OPS_SLICE_H_ diff --git a/mace/ops/slice_benchmark.cc b/mace/ops/slice_benchmark.cc index 2c56362197bb2b9114a7c3726f86728f2b4094f3..ff85e4ef9fb48aa3d6ae685b39a82e1c8da91c32 100644 --- a/mace/ops/slice_benchmark.cc +++ b/mace/ops/slice_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/core/testing/test_benchmark.h" diff --git a/mace/ops/slice_test.cc b/mace/ops/slice_test.cc index 4264315f42df0c878433915d3496c81bbf73b48c..27efc56470e32a880875c3b8eefa4104eabeb326 100644 --- a/mace/ops/slice_test.cc +++ b/mace/ops/slice_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/softmax.cc b/mace/ops/softmax.cc index d8c9cd49dcbf8867f3eeabbcfff00dc271930f2c..aab15bb01dbf2ebf70ae39d017029569671687c7 100644 --- a/mace/ops/softmax.cc +++ b/mace/ops/softmax.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/softmax.h" diff --git a/mace/ops/softmax.h b/mace/ops/softmax.h index 0aedaa3cadf155b3dffe99576007d56f5c2cd6c7..260e10e55bc8b4e5b2722db053e441bb0fb97c38 100644 --- a/mace/ops/softmax.h +++ b/mace/ops/softmax.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_SOFTMAX_H_ #define MACE_OPS_SOFTMAX_H_ diff --git a/mace/ops/softmax_benchmark.cc b/mace/ops/softmax_benchmark.cc index 1d010c2f318e788b5b8389a9f36ef0ec8c4af74a..4f52432287ca5281df470cfe4f150df2e468ff2d 100644 --- a/mace/ops/softmax_benchmark.cc +++ b/mace/ops/softmax_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/softmax_test.cc b/mace/ops/softmax_test.cc index e8a7c48ea42758eb1fd6ffdc1064ea44c453a795..80c306701aa41bca41ee87a4cd64040f2ce60951 100644 --- a/mace/ops/softmax_test.cc +++ b/mace/ops/softmax_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/ops/ops_test_util.h" diff --git a/mace/ops/space_to_batch.cc b/mace/ops/space_to_batch.cc index 009f4abe37589af4d3ac5f9889c5652086d3b02f..44d747ec73538fcf6c0c2559f5927ec6c59a9a30 100644 --- a/mace/ops/space_to_batch.cc +++ b/mace/ops/space_to_batch.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/space_to_batch.h" diff --git a/mace/ops/space_to_batch.h b/mace/ops/space_to_batch.h index dd051fa92ffc56602fb9e27c9f175065cff1a2fe..9bec8f8527d53d11de55561a3aada60a1d81abc4 100644 --- a/mace/ops/space_to_batch.h +++ b/mace/ops/space_to_batch.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_SPACE_TO_BATCH_H_ #define MACE_OPS_SPACE_TO_BATCH_H_ diff --git a/mace/ops/space_to_batch_benchmark.cc b/mace/ops/space_to_batch_benchmark.cc index efdfa29ab42a1815137cc23f5e1ccf65c0e12daa..fda5bd709b45a9a859bfef73b89f88b1f1717a6c 100644 --- a/mace/ops/space_to_batch_benchmark.cc +++ b/mace/ops/space_to_batch_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/core/testing/test_benchmark.h" diff --git a/mace/ops/space_to_batch_test.cc b/mace/ops/space_to_batch_test.cc index a9ae67aca875efc7f98df8c0a744407c77d8ecf1..8579cd69be140c2d257dc9cbf3b170d64f9d6b3e 100644 --- a/mace/ops/space_to_batch_test.cc +++ b/mace/ops/space_to_batch_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/space_to_depth.cc b/mace/ops/space_to_depth.cc index 55f1a13a4f80b5a88c1f318733f11db1abf2a872..17fbc29d5f4ec021b07b8e8882f68a0208b9f02f 100644 --- a/mace/ops/space_to_depth.cc +++ b/mace/ops/space_to_depth.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/space_to_depth.h" diff --git a/mace/ops/space_to_depth.h b/mace/ops/space_to_depth.h index 517d8ccc8f8938214aefc50cfea091133d455466..48e6a151b355c41294a2dd7d0bccf7d822708681 100644 --- a/mace/ops/space_to_depth.h +++ b/mace/ops/space_to_depth.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_SPACE_TO_DEPTH_H_ #define MACE_OPS_SPACE_TO_DEPTH_H_ diff --git a/mace/ops/space_to_depth_benchmark.cc b/mace/ops/space_to_depth_benchmark.cc index e5f9942168d96b0658a6491a6117750c8258bf08..71eb549d5817400099dbb901df5d41d5a01c326a 100644 --- a/mace/ops/space_to_depth_benchmark.cc +++ b/mace/ops/space_to_depth_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/core/testing/test_benchmark.h" diff --git a/mace/ops/transpose.cc b/mace/ops/transpose.cc index 7634a62b46838185ec2bbad3d6edc0a5b4063d60..72550ac9fd84457913fa5d7f4580006d67c29699 100644 --- a/mace/ops/transpose.cc +++ b/mace/ops/transpose.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/transpose.h" diff --git a/mace/ops/transpose.h b/mace/ops/transpose.h index 8d04bae5c75fab9072eab600ccb465317df1bf3b..45e36fa353a5acdcc66418bf06ffe385f1a9e741 100644 --- a/mace/ops/transpose.h +++ b/mace/ops/transpose.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2018 XiaoMi 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 MACE_OPS_TRANSPOSE_H_ #define MACE_OPS_TRANSPOSE_H_ diff --git a/mace/ops/transpose_test.cc b/mace/ops/transpose_test.cc index 929ac2c0b6d317a9ab40f1a8831ea07d8dbbaf92..b1e8cd4e040f63aedd63087bad1c184a7a8fb160 100644 --- a/mace/ops/transpose_test.cc +++ b/mace/ops/transpose_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/ops/ops_test_util.h" diff --git a/mace/ops/winograd_convolution_test.cc b/mace/ops/winograd_convolution_test.cc index 409f9cb3e20e3eb3e16cd269dd53e06b6e0e22f5..14fa421d7743809ed723e33bb2a78d6de201df9d 100644 --- a/mace/ops/winograd_convolution_test.cc +++ b/mace/ops/winograd_convolution_test.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 diff --git a/mace/ops/winograd_inverse_transform.cc b/mace/ops/winograd_inverse_transform.cc index 47d1148b78d14ec3bb3cda183d645bae1ac59599..946896b0b4ee091490fdef16fa1194d3bac493d7 100644 --- a/mace/ops/winograd_inverse_transform.cc +++ b/mace/ops/winograd_inverse_transform.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/winograd_inverse_transform.h" diff --git a/mace/ops/winograd_inverse_transform.h b/mace/ops/winograd_inverse_transform.h index 55be83b70e983abc1fed4623dfd21ed3018233f1..cb9fcf59b63a991d20d9296eabf3a1ee2d11eb39 100644 --- a/mace/ops/winograd_inverse_transform.h +++ b/mace/ops/winograd_inverse_transform.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_WINOGRAD_INVERSE_TRANSFORM_H_ #define MACE_OPS_WINOGRAD_INVERSE_TRANSFORM_H_ diff --git a/mace/ops/winograd_transform.cc b/mace/ops/winograd_transform.cc index f8aa4f621a137d6b87337951fd7896c20ec0a3dc..2dbd734e372213b34b67a47fa13a24a17f9c403b 100644 --- a/mace/ops/winograd_transform.cc +++ b/mace/ops/winograd_transform.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/ops/winograd_transform.h" diff --git a/mace/ops/winograd_transform.h b/mace/ops/winograd_transform.h index c9476fc80e642451394270ac6350cdab8f1c4602..b32398ecc45be510cad2a219c594aab29aa3941d 100644 --- a/mace/ops/winograd_transform.h +++ b/mace/ops/winograd_transform.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_OPS_WINOGRAD_TRANSFORM_H_ #define MACE_OPS_WINOGRAD_TRANSFORM_H_ diff --git a/mace/ops/winograd_transform_benchmark.cc b/mace/ops/winograd_transform_benchmark.cc index c74b548d1abf859df6b71c2dcc33fdd65daab4bc..3efa7328d4935b8eed0e43d842f988396ea72f44 100644 --- a/mace/ops/winograd_transform_benchmark.cc +++ b/mace/ops/winograd_transform_benchmark.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/core/operator.h" #include "mace/core/testing/test_benchmark.h" diff --git a/mace/public/mace.h b/mace/public/mace.h index db57fbcb9eaf27c3f8ea2f16ba062c6ca73a09fd..9bae74cf34fbaba6e2d4626065415044cb8aadf9 100644 --- a/mace/public/mace.h +++ b/mace/public/mace.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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. // This file defines core MACE APIs. // There APIs will be stable and backward compatible. diff --git a/mace/public/mace_runtime.h b/mace/public/mace_runtime.h index 1d68a15f23f5c437480a36c9a80025a351c40cb8..16bd817ee6e762a4fe703dc2f1f0eaeac0550ee8 100644 --- a/mace/public/mace_runtime.h +++ b/mace/public/mace_runtime.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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. // This file defines runtime tuning APIs. // These APIs are not stable. diff --git a/mace/public/mace_types.h b/mace/public/mace_types.h index daa3441de765f23821a31674f786c4ab7823c94c..4a7fcc30bb58fb7e06aa2c3275142f2caebd15cb 100644 --- a/mace/public/mace_types.h +++ b/mace/public/mace_types.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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. // This file defines data types used by net creation and benchmark tools. // These APIs are not stable and should only be used by advanced users. diff --git a/mace/python/tools/model.jinja2 b/mace/python/tools/model.jinja2 index 4baf86fed42a56b5352c806488c9b70c1072b509..b72f84e0cfb1770c969c7a78664517521e8fad14 100644 --- a/mace/python/tools/model.jinja2 +++ b/mace/python/tools/model.jinja2 @@ -1,7 +1,18 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi All rights reserved. -// Generated by the mace converter. DO NOT EDIT! +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This is a generated file. DO NOT EDIT! #include #include diff --git a/mace/python/tools/model_header.jinja2 b/mace/python/tools/model_header.jinja2 index efd477ee253ccead1ebf2f58c54f624629118280..8ef977dbe14172ce9373ca9a9024811f67a14c34 100644 --- a/mace/python/tools/model_header.jinja2 +++ b/mace/python/tools/model_header.jinja2 @@ -1,7 +1,18 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 // -// Generated by the mace converter. DO NOT EDIT! +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This is a generated file. DO NOT EDIT! #ifndef MACE_CODEGEN_MODELS_{{tag|upper}}_{{tag|upper}}_H_ #define MACE_CODEGEN_MODELS_{{tag|upper}}_{{tag|upper}}_H_ diff --git a/mace/python/tools/opencl_compiled_kernel.cc.jinja2 b/mace/python/tools/opencl_compiled_kernel.cc.jinja2 index 391b03f0cd64b9c07ad4fe3b5345a3aaa7c1cd69..db2684132072b55dec1d86b2112e39afc76da0ec 100644 --- a/mace/python/tools/opencl_compiled_kernel.cc.jinja2 +++ b/mace/python/tools/opencl_compiled_kernel.cc.jinja2 @@ -1,8 +1,18 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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. -// This is a generated file, DO NOT EDIT +// This is a generated file. DO NOT EDIT! #include #include diff --git a/mace/python/tools/operator.jinja2 b/mace/python/tools/operator.jinja2 index 7c142ca9c2b814f88598d9cff085cb00866c4fe1..fa9610411c6c861a95abded984c3257a495b7393 100644 --- a/mace/python/tools/operator.jinja2 +++ b/mace/python/tools/operator.jinja2 @@ -1,7 +1,18 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi All rights reserved. -// Generated by the mace converter. DO NOT EDIT! +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This is a generated file. DO NOT EDIT! #include #include diff --git a/mace/python/tools/str2vec_maps.cc.jinja2 b/mace/python/tools/str2vec_maps.cc.jinja2 index 460e1e80138af23055e1ce281ed3c9c09efc9cc4..332fe0269742ff667de95a5e5f4a81b634072f70 100644 --- a/mace/python/tools/str2vec_maps.cc.jinja2 +++ b/mace/python/tools/str2vec_maps.cc.jinja2 @@ -1,8 +1,18 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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. -// This is a generated file, DO NOT EDIT +// This is a generated file. DO NOT EDIT! #include #include diff --git a/mace/python/tools/tensor_data.jinja2 b/mace/python/tools/tensor_data.jinja2 index d009b101164e32cff237058239db7d902aca12e5..fbb8986c77f294707e4a77248a46efc163ccd8ad 100644 --- a/mace/python/tools/tensor_data.jinja2 +++ b/mace/python/tools/tensor_data.jinja2 @@ -1,7 +1,18 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi All rights reserved. -// Generated by the mace converter. DO NOT EDIT! +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This is a generated file. DO NOT EDIT! #include #include diff --git a/mace/python/tools/tensor_source.jinja2 b/mace/python/tools/tensor_source.jinja2 index f98482a389e2c48181eb2fd36ca8bdceab9af356..42a8f16ef877e9c2208dc298ed33cc40fc546bb8 100644 --- a/mace/python/tools/tensor_source.jinja2 +++ b/mace/python/tools/tensor_source.jinja2 @@ -1,7 +1,18 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi All rights reserved. -// Generated by the mace converter. DO NOT EDIT! +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This is a generated file. DO NOT EDIT! #include #include diff --git a/mace/tools/git/gen_version_source.sh b/mace/tools/git/gen_version_source.sh index 36b0233f1e0edffcefe3079437df45e1cd45bd32..896a9a4f0b6fc4ee873caa2728a2ba34a5b3cc36 100644 --- a/mace/tools/git/gen_version_source.sh +++ b/mace/tools/git/gen_version_source.sh @@ -18,11 +18,21 @@ else fi cat < ${OUTPUT_FILENAME} +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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. -// This is a generated file, DO NOT EDIT +// This is a generated file. DO NOT EDIT! namespace mace { const char *MaceVersion() { return "${GIT_VERSION}"; } diff --git a/mace/tools/validation/mace_run.cc b/mace/tools/validation/mace_run.cc index bd554f747e015f2a9603a253aeecbf14ae237cac..838320f331663bd65618f43beae4a18ab0ae418a 100644 --- a/mace/tools/validation/mace_run.cc +++ b/mace/tools/validation/mace_run.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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. /** * Usage: diff --git a/mace/utils/command_line_flags.cc b/mace/utils/command_line_flags.cc index e6b8041248a02ca07e20c62074233b2f23b2d663..50a67056f2e4c1569ba8c136f32886d150d05366 100644 --- a/mace/utils/command_line_flags.cc +++ b/mace/utils/command_line_flags.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/utils/command_line_flags.h" diff --git a/mace/utils/command_line_flags.h b/mace/utils/command_line_flags.h index 3fa5a9e83cad1814c4dcb7eca4099e7f98a86a1d..d16eb49ed90067efa6654f7aa4f2c69567e80976 100644 --- a/mace/utils/command_line_flags.h +++ b/mace/utils/command_line_flags.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_UTILS_COMMAND_LINE_FLAGS_H_ #define MACE_UTILS_COMMAND_LINE_FLAGS_H_ diff --git a/mace/utils/env_time.h b/mace/utils/env_time.h index 0fecab568e4a48ca138802e65d59142538946167..c670e83fe500267e18730418fdf2660f8f26d80e 100644 --- a/mace/utils/env_time.h +++ b/mace/utils/env_time.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_UTILS_ENV_TIME_H_ #define MACE_UTILS_ENV_TIME_H_ diff --git a/mace/utils/logging.cc b/mace/utils/logging.cc index 5b756d005ba655800e9c2cbb6b90bdb89fc13d37..52ddca5f2021381dc79d4ce81ff2dbfa3040d470 100644 --- a/mace/utils/logging.cc +++ b/mace/utils/logging.cc @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 "mace/utils/logging.h" diff --git a/mace/utils/logging.h b/mace/utils/logging.h index 594381437ea5a9a8261fa540d27c770119921c8f..0cb8f51f964f6739447b4139d23c02efb0cf5ddd 100644 --- a/mace/utils/logging.h +++ b/mace/utils/logging.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_UTILS_LOGGING_H_ #define MACE_UTILS_LOGGING_H_ diff --git a/mace/utils/memory_logging.h b/mace/utils/memory_logging.h index bd46f58049d13ed6b7cbda455ad7c883a7e33f88..a2f861fad4562832c3117374294ac4a99ecbec92 100644 --- a/mace/utils/memory_logging.h +++ b/mace/utils/memory_logging.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_UTILS_MEMORY_LOGGING_H_ #define MACE_UTILS_MEMORY_LOGGING_H_ diff --git a/mace/utils/string_util.h b/mace/utils/string_util.h index ee1b5918383e7c494c14299c95ea5cf8e6af132f..7727d24c92f1cff495f17b79a4e68969870b42ae 100644 --- a/mace/utils/string_util.h +++ b/mace/utils/string_util.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_UTILS_STRING_UTIL_H_ #define MACE_UTILS_STRING_UTIL_H_ diff --git a/mace/utils/timer.h b/mace/utils/timer.h index d6e2860845c30756f27eabdced4b39a5393a98c3..46b9cd14395a7de930ff6321326a7dbb9dc2cc34 100644 --- a/mace/utils/timer.h +++ b/mace/utils/timer.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_UTILS_TIMER_H_ #define MACE_UTILS_TIMER_H_ diff --git a/mace/utils/tuner.h b/mace/utils/tuner.h index 1b05f3a3199b04def2a8d17f255d0bb82a7acbae..fa25f6daaa5fad5ea786e83fec88d53e5e92d82e 100644 --- a/mace/utils/tuner.h +++ b/mace/utils/tuner.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_UTILS_TUNER_H_ #define MACE_UTILS_TUNER_H_ diff --git a/mace/utils/tuner_development.cc b/mace/utils/tuner_development.cc index 570b94cd465af7980a62d0e9eb92e10172c427fa..e61faa35c56ad6231077d2fe3c702177c0de46c1 100644 --- a/mace/utils/tuner_development.cc +++ b/mace/utils/tuner_development.cc @@ -1,6 +1,17 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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/mace/utils/tuner_production.cc b/mace/utils/tuner_production.cc index c45c6d7e1edd0d7a959bf63e61897b4e04aeb167..e5a5a81e8d376ff32285b9c482e177db33a713f7 100644 --- a/mace/utils/tuner_production.cc +++ b/mace/utils/tuner_production.cc @@ -1,6 +1,17 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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/mace/utils/tuner_test.cc b/mace/utils/tuner_test.cc index 869318f46474cba9f873aefb31356ef071f9397f..4fd0b7afb558a3b068d09fa2a161685a46a8693d 100644 --- a/mace/utils/tuner_test.cc +++ b/mace/utils/tuner_test.cc @@ -1,6 +1,17 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 // NOLINT(build/c++11) #include "gtest/gtest.h" diff --git a/mace/utils/utils.h b/mace/utils/utils.h index a9ca2a40aae252c10ce96d5968987b68af9894ea..fecf03ec64ce92d6f2aad208dd1f1fa4c678d7f1 100644 --- a/mace/utils/utils.h +++ b/mace/utils/utils.h @@ -1,6 +1,16 @@ +// Copyright 2018 Xiaomi, Inc. All rights reserved. // -// Copyright (c) 2017 XiaoMi 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 MACE_UTILS_UTILS_H_ #define MACE_UTILS_UTILS_H_