From b52c7cb3975503c2984d18188ca9c2475cda443f Mon Sep 17 00:00:00 2001 From: Liangliang He Date: Tue, 17 Apr 2018 14:30:42 +0800 Subject: [PATCH] Update licences --- LICENSE | 202 ++++++++++++++++++ mace/benchmark/benchmark_model.cc | 13 +- mace/benchmark/model_throughput_test.cc | 12 +- mace/benchmark/stat_summarizer.cc | 12 +- mace/benchmark/stat_summarizer.h | 12 +- mace/core/allocator.cc | 12 +- mace/core/allocator.h | 13 +- mace/core/arg_helper.cc | 12 +- mace/core/arg_helper.h | 12 +- mace/core/buffer.h | 12 +- mace/core/file_storage.cc | 12 +- mace/core/file_storage.h | 12 +- mace/core/future.h | 12 +- mace/core/mace.cc | 12 +- mace/core/mace_runtime.cc | 12 +- mace/core/mace_types.cc | 12 +- mace/core/macros.h | 12 +- mace/core/net.cc | 12 +- mace/core/net.h | 12 +- mace/core/operator.cc | 12 +- mace/core/operator.h | 12 +- mace/core/preallocated_pooled_allocator.h | 12 +- mace/core/registry.h | 12 +- mace/core/runtime/cpu/cpu_runtime.cc | 12 +- mace/core/runtime/cpu/cpu_runtime.h | 13 +- .../hexagon/hexagon_control_wrapper.cc | 12 +- .../runtime/hexagon/hexagon_control_wrapper.h | 12 +- .../core/runtime/hexagon/hexagon_controller.h | 12 +- .../hexagon/hexagon_controller_dummy.cc | 12 +- mace/core/runtime/hexagon/hexagon_nn_ops.h | 12 +- mace/core/runtime/hexagon/quantize.cc | 12 +- mace/core/runtime/hexagon/quantize.h | 12 +- mace/core/runtime/opencl/cl2_header.h | 12 +- mace/core/runtime/opencl/opencl_allocator.cc | 12 +- mace/core/runtime/opencl/opencl_allocator.h | 12 +- mace/core/runtime/opencl/opencl_extension.h | 12 +- mace/core/runtime/opencl/opencl_runtime.cc | 12 +- mace/core/runtime/opencl/opencl_runtime.h | 12 +- mace/core/runtime/opencl/opencl_wrapper.cc | 12 +- mace/core/runtime/opencl/opencl_wrapper.h | 12 +- mace/core/tensor.h | 12 +- mace/core/testing/test_benchmark.cc | 12 +- mace/core/testing/test_benchmark.h | 12 +- mace/core/testing/test_benchmark_main.cc | 12 +- mace/core/types.cc | 12 +- mace/core/types.h | 12 +- mace/core/workspace.cc | 12 +- mace/core/workspace.h | 12 +- mace/examples/example.cc | 12 +- mace/kernels/activation.h | 12 +- mace/kernels/addn.h | 12 +- mace/kernels/arm/activation.cc | 12 +- mace/kernels/arm/batch_norm.cc | 12 +- mace/kernels/arm/conv_2d.cc | 12 +- mace/kernels/arm/conv_2d_neon_1x1.cc | 12 +- mace/kernels/arm/conv_2d_neon_3x3.cc | 12 +- mace/kernels/arm/conv_winograd.cc | 12 +- mace/kernels/arm/conv_winograd.h | 12 +- mace/kernels/arm/conv_winograd_test.cc | 12 +- mace/kernels/arm/depthwise_conv2d.cc | 12 +- mace/kernels/arm/depthwise_conv2d_neon_3x3.cc | 12 +- mace/kernels/arm/fully_connected.cc | 12 +- mace/kernels/arm/pooling.cc | 12 +- mace/kernels/arm/softmax.cc | 12 +- mace/kernels/batch_norm.h | 12 +- mace/kernels/bias_add.h | 12 +- mace/kernels/buffer_to_image.h | 12 +- mace/kernels/channel_shuffle.h | 12 +- mace/kernels/concat.h | 12 +- mace/kernels/conv_2d.h | 12 +- mace/kernels/conv_pool_2d_util.cc | 12 +- mace/kernels/conv_pool_2d_util.h | 12 +- mace/kernels/cwise.h | 13 +- mace/kernels/depth_to_space.h | 12 +- mace/kernels/depthwise_conv2d.h | 12 +- mace/kernels/eltwise.h | 13 +- mace/kernels/fully_connected.h | 12 +- mace/kernels/gemm.cc | 12 +- mace/kernels/gemm.h | 12 +- mace/kernels/gemm_test.cc | 12 +- mace/kernels/global_avg_pooling.h | 12 +- mace/kernels/matmul.h | 12 +- mace/kernels/opencl/activation_opencl.cc | 12 +- mace/kernels/opencl/addn.cc | 12 +- mace/kernels/opencl/batch_norm_opencl.cc | 12 +- mace/kernels/opencl/bias_add_opencl.cc | 12 +- mace/kernels/opencl/buffer_to_image.cc | 12 +- mace/kernels/opencl/channel_shuffle.cc | 12 +- mace/kernels/opencl/cl/common.h | 12 +- mace/kernels/opencl/concat.cc | 12 +- mace/kernels/opencl/conv_2d_opencl.cc | 12 +- mace/kernels/opencl/conv_2d_opencl_1x1.cc | 12 +- mace/kernels/opencl/conv_2d_opencl_3x3.cc | 12 +- mace/kernels/opencl/conv_2d_opencl_general.cc | 12 +- mace/kernels/opencl/cwise_opencl.cc | 12 +- mace/kernels/opencl/depth_to_space_opencl.cc | 12 +- mace/kernels/opencl/depthwise_conv_opencl.cc | 12 +- mace/kernels/opencl/eltwise_opencl.cc | 12 +- mace/kernels/opencl/fully_connected_opencl.cc | 12 +- mace/kernels/opencl/helper.cc | 12 +- mace/kernels/opencl/helper.h | 12 +- mace/kernels/opencl/matmul.cc | 12 +- .../kernels/opencl/out_of_range_check_test.cc | 12 +- mace/kernels/opencl/pad.cc | 12 +- mace/kernels/opencl/pooling_opencl.cc | 12 +- mace/kernels/opencl/resize_bilinear_opencl.cc | 12 +- mace/kernels/opencl/slice.cc | 12 +- mace/kernels/opencl/softmax_opencl.cc | 12 +- mace/kernels/opencl/space_to_batch_opencl.cc | 12 +- mace/kernels/opencl/winograd_transform.cc | 12 +- mace/kernels/pad.h | 13 +- mace/kernels/pooling.h | 12 +- mace/kernels/proposal.h | 12 +- mace/kernels/psroi_align.h | 12 +- mace/kernels/reorganize.h | 13 +- mace/kernels/reshape.h | 13 +- mace/kernels/resize_bilinear.h | 13 +- mace/kernels/slice.h | 12 +- mace/kernels/softmax.h | 12 +- mace/kernels/space_to_batch.h | 12 +- mace/kernels/transpose.h | 12 +- mace/kernels/winograd_transform.h | 12 +- mace/ops/activation.cc | 12 +- mace/ops/activation.h | 12 +- mace/ops/activation_benchmark.cc | 12 +- mace/ops/activation_test.cc | 12 +- mace/ops/addn.cc | 12 +- mace/ops/addn.h | 12 +- mace/ops/addn_benchmark.cc | 12 +- mace/ops/addn_test.cc | 12 +- mace/ops/batch_norm.cc | 12 +- mace/ops/batch_norm.h | 12 +- mace/ops/batch_norm_benchmark.cc | 12 +- mace/ops/batch_norm_test.cc | 12 +- mace/ops/batch_to_space.cc | 12 +- mace/ops/batch_to_space.h | 12 +- mace/ops/batch_to_space_benchmark.cc | 12 +- mace/ops/bias_add.cc | 12 +- mace/ops/bias_add.h | 12 +- mace/ops/bias_add_benchmark.cc | 12 +- mace/ops/bias_add_test.cc | 12 +- mace/ops/buffer_to_image.cc | 12 +- mace/ops/buffer_to_image.h | 12 +- mace/ops/buffer_to_image_test.cc | 12 +- mace/ops/channel_shuffle.cc | 12 +- mace/ops/channel_shuffle.h | 12 +- mace/ops/channel_shuffle_benchmark.cc | 12 +- mace/ops/channel_shuffle_test.cc | 12 +- mace/ops/concat.cc | 12 +- mace/ops/concat.h | 12 +- mace/ops/concat_benchmark.cc | 12 +- mace/ops/concat_test.cc | 12 +- mace/ops/conv_2d.cc | 12 +- mace/ops/conv_2d.h | 12 +- mace/ops/conv_2d_benchmark.cc | 12 +- mace/ops/conv_2d_test.cc | 12 +- mace/ops/conv_pool_2d_base.h | 12 +- mace/ops/core_test.cc | 12 +- mace/ops/cwise.cc | 12 +- mace/ops/cwise.h | 12 +- mace/ops/cwise_benchmark.cc | 12 +- mace/ops/cwise_test.cc | 12 +- mace/ops/depth_to_space.cc | 12 +- mace/ops/depth_to_space.h | 12 +- mace/ops/depth_to_space_benchmark.cc | 12 +- mace/ops/depth_to_space_test.cc | 13 +- mace/ops/depthwise_conv2d.cc | 12 +- mace/ops/depthwise_conv2d.h | 12 +- mace/ops/depthwise_conv2d_benchmark.cc | 12 +- mace/ops/depthwise_conv2d_test.cc | 12 +- mace/ops/eltwise.cc | 12 +- mace/ops/eltwise.h | 12 +- mace/ops/eltwise_benchmark.cc | 12 +- mace/ops/eltwise_test.cc | 12 +- mace/ops/folded_batch_norm.cc | 12 +- mace/ops/folded_batch_norm.h | 12 +- mace/ops/folded_batch_norm_test.cc | 12 +- mace/ops/fully_connected.cc | 12 +- mace/ops/fully_connected.h | 12 +- mace/ops/fully_connected_benchmark.cc | 12 +- mace/ops/fully_connected_test.cc | 12 +- mace/ops/fused_conv_2d.cc | 12 +- mace/ops/fused_conv_2d.h | 12 +- mace/ops/fused_conv_2d_test.cc | 12 +- mace/ops/global_avg_pooling.cc | 12 +- mace/ops/global_avg_pooling.h | 14 +- mace/ops/global_avg_pooling_benchmark.cc | 12 +- mace/ops/global_avg_pooling_test.cc | 13 +- mace/ops/image_to_buffer.cc | 12 +- mace/ops/image_to_buffer.h | 12 +- mace/ops/matmul.cc | 12 +- mace/ops/matmul.h | 12 +- mace/ops/matmul_benchmark.cc | 12 +- mace/ops/matmul_test.cc | 12 +- mace/ops/ops_test_util.h | 12 +- mace/ops/pad.cc | 12 +- mace/ops/pad.h | 12 +- mace/ops/pad_benchmark.cc | 12 +- mace/ops/pad_test.cc | 12 +- mace/ops/pooling.cc | 12 +- mace/ops/pooling.h | 12 +- mace/ops/pooling_benchmark.cc | 12 +- mace/ops/pooling_test.cc | 12 +- mace/ops/proposal.cc | 12 +- mace/ops/proposal.h | 12 +- mace/ops/proposal_test.cc | 12 +- mace/ops/psroi_align.cc | 12 +- mace/ops/psroi_align.h | 12 +- mace/ops/reorganize.cc | 12 +- mace/ops/reorganize.h | 12 +- mace/ops/reorganize_test.cc | 12 +- mace/ops/reshape.cc | 12 +- mace/ops/reshape.h | 12 +- mace/ops/reshape_test.cc | 12 +- mace/ops/resize_bilinear.cc | 12 +- mace/ops/resize_bilinear.h | 12 +- mace/ops/resize_bilinear_benchmark.cc | 12 +- mace/ops/resize_bilinear_test.cc | 12 +- mace/ops/slice.cc | 12 +- mace/ops/slice.h | 12 +- mace/ops/slice_benchmark.cc | 12 +- mace/ops/slice_test.cc | 12 +- mace/ops/softmax.cc | 12 +- mace/ops/softmax.h | 12 +- mace/ops/softmax_benchmark.cc | 12 +- mace/ops/softmax_test.cc | 12 +- mace/ops/space_to_batch.cc | 12 +- mace/ops/space_to_batch.h | 12 +- mace/ops/space_to_batch_benchmark.cc | 12 +- mace/ops/space_to_batch_test.cc | 12 +- mace/ops/space_to_depth.cc | 12 +- mace/ops/space_to_depth.h | 12 +- mace/ops/space_to_depth_benchmark.cc | 12 +- mace/ops/transpose.cc | 12 +- mace/ops/transpose.h | 12 +- mace/ops/transpose_test.cc | 12 +- mace/ops/winograd_convolution_test.cc | 12 +- mace/ops/winograd_inverse_transform.cc | 12 +- mace/ops/winograd_inverse_transform.h | 12 +- mace/ops/winograd_transform.cc | 12 +- mace/ops/winograd_transform.h | 12 +- mace/ops/winograd_transform_benchmark.cc | 12 +- mace/public/mace.h | 12 +- mace/public/mace_runtime.h | 12 +- mace/public/mace_types.h | 12 +- mace/python/tools/model.jinja2 | 15 +- mace/python/tools/model_header.jinja2 | 15 +- .../tools/opencl_compiled_kernel.cc.jinja2 | 14 +- mace/python/tools/operator.jinja2 | 15 +- mace/python/tools/str2vec_maps.cc.jinja2 | 14 +- mace/python/tools/tensor_data.jinja2 | 15 +- mace/python/tools/tensor_source.jinja2 | 15 +- mace/tools/git/gen_version_source.sh | 14 +- mace/tools/validation/mace_run.cc | 12 +- mace/utils/command_line_flags.cc | 12 +- mace/utils/command_line_flags.h | 12 +- mace/utils/env_time.h | 12 +- mace/utils/logging.cc | 12 +- mace/utils/logging.h | 12 +- mace/utils/memory_logging.h | 12 +- mace/utils/string_util.h | 12 +- mace/utils/timer.h | 12 +- mace/utils/tuner.h | 12 +- mace/utils/tuner_development.cc | 13 +- mace/utils/tuner_production.cc | 13 +- mace/utils/tuner_test.cc | 13 +- mace/utils/utils.h | 12 +- 267 files changed, 3153 insertions(+), 278 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..d6456956 --- /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 73ade394..0b6426d1 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 8c3a84b3..51b294aa 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 87636839..291fd5de 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 96d597da..e457dfc3 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 8f65fbc5..56788730 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 a9f76fca..80466a9c 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 62072348..8db23cae 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 c370d5fc..6b3cb1cc 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 08cbf1a9..d209d52f 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 de9a67fa..9a3f812b 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 c29628cd..3dee8b4e 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 887812b2..47c461bf 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 5f7647ed..27d676d9 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 4e7c835c..4ce55861 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 04f968e6..c3561161 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 0c00af5d..970d29ce 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 7563ed5c..44c889b1 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 2a9af0ff..4697c450 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 c56ad46a..db3dcd22 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 a22f424f..387a41ef 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 80e7fa65..27dbeb61 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 0e1e85d2..241f8515 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 2a9984ad..4c4e58ff 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 a66f8116..6a305f5a 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 138fd933..15af069b 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 01f69749..8e8eb532 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 11f77c1d..1bf57f9d 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 c1fdcc42..4118e3bb 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 faad9c4d..dba6c56e 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 7330424a..61ec4d18 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 8e98f3be..635106f3 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 f22fcbbe..2a8d0648 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 e0f63b86..9b94eb92 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 b8014767..0ec50f61 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 6192eff3..a29f40b7 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 fda211d4..4314edbf 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 35a20bff..2ca62e7a 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 c9b20577..fe1dc88c 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 fdf90b02..529bcea3 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 29571d96..fa383aa5 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 0d1b68fe..f4c4c4d9 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 2e3526cf..54edb681 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 a246ffe8..a2dccb65 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 ef0a1755..9bab2dab 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 f038d5be..7b63fa29 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 d068cbd8..107ac8fa 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 c918a694..b4b75995 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 aa58cea7..aa852fda 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 e62181bc..8ed3ca75 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 7538b5b1..86389d7f 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 59b94ffa..ebd346bd 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 76aa17d0..86da9bec 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 04b79abc..18050433 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 cb08b061..c7bd4e57 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 cedf44ec..19875a5c 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 272e3c52..11ef6947 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 d058a29c..de45aa08 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 9dcc10e2..ee3223b5 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 3920ed08..7a677d8e 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 9ce4c68c..c12d684c 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 df9ba051..0944480e 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 92501343..246d3fb5 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 d51ee6e8..1219281a 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 c0aab3d9..b2617b94 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 ab2a35f1..88131b18 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 ff6cebb2..b8568f5f 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 258cd39a..8ef030ef 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 88c6cdb8..c55bf4c7 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 9a8f7c75..cefa520f 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 7615cfc6..753e9c51 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 32dee0cc..71aae758 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 57beb64f..997410a3 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 76f3c80e..3ea7f8ab 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 cc6ceee5..e560be8c 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 faf52ff3..94c37cdb 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 7f37b173..bf52bd33 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 aea63c87..cb11fa5c 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 7ba58fbd..ba4f812d 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 72d55e48..217543ed 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 cd971558..2ee0ed6e 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 3cba3694..c12aac56 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 020aab0d..5236f4c8 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 5f042a4e..ab4d97bc 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 234e3d34..d29d8b42 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 a630b6a5..c9b1d6e8 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 eae15ead..dcaa7b4c 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 925ce595..a03652ff 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 0011dc2c..604100d5 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 697ae854..0b278bd3 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 684de9ef..f42f1428 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 81391151..51a860ad 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 3d02e5b0..bea5601a 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 38d0e49f..0e2f30cb 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 07b2cfb2..4256f5ba 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 bd7e723d..4c84ab14 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 e37cdb22..1b2b3725 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 04c418e4..9a875a82 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 56312f61..bf0961b8 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 ebb28220..d822a7c0 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 89712c9b..5257ed2c 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 ead70cc2..a462f948 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 ca0a0ceb..a9d06fd7 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 09d40c84..df408555 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 0afef212..ea1e3f2c 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 779849b6..15cbaf57 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 07f9086b..ba93231d 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 b74fe150..54cf842c 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 972fc1fa..e4702c9c 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 aadbc7fd..480825f6 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 6fbb1c76..b1977202 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 f20c059d..ff39e0ff 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 0f259cdc..22d930d8 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 57e19c3c..f5e8b28b 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 a64d55b9..06cef0e3 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 ddcd0dba..fc25f96e 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 5a513753..9b22b7b7 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 36cda42f..ea08e7f4 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 48fe37f2..33e11c65 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 672ccfca..46c472c8 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 ad04d728..6854c5f9 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 b6b45ea1..538c62bc 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 4e49eb24..9beb3f80 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 bfe91591..5f07425a 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 df04ff81..bf67a6da 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 23110fe4..58fd7050 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 e30275bb..db6cb26a 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 24a91660..55d1c0c7 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 a9538c9f..bc18acf4 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 471d96ec..4331a567 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 8b420076..255b31e9 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 f22c52b5..11a89fb4 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 e7a68bd6..036e4cde 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 cc122f7a..c1f0ca02 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 878e79f4..574eca53 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 51157aa7..2a6e931c 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 5eaa2aee..447b84c4 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 aeeabc49..dbbcc9b3 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 686dd673..54dfee0d 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 4926f5a0..6e5ff0b7 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 dc3bca06..79e406a8 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 abeccde0..9270b2bf 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 a50bebd3..84593989 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 679c326e..e75a6ae1 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 c1c5df9c..83ef3fe6 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 93cbfd40..6e74f850 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 9c419704..7f7626ad 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 02bbaf2a..39a2b53d 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 30d3cec0..5e8a3bcf 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 b791619d..8902548d 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 4b6b332c..803b61c5 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 8a6e00d4..a7243a3a 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 1c612a42..081019b5 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 33758808..5f692143 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 74e0bb42..7b968606 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 e0edd2a9..219e4af3 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 a6f1299d..4ac5da52 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 3d533e5d..81ef5f53 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 42439c3e..4f98b63d 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 75430183..8cef0e10 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 632accc1..8d41d85d 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 56b4359a..e5510106 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 a8c4ef55..e5299efb 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 ad71396f..1b2198cf 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 39f251ef..c76d1b69 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 f96dfb4d..0b602c48 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 fe5a6b2a..71ee85b4 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 f7abd689..7e0deebd 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 66e4dc5d..2eea3b78 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 50d9a1f7..34481116 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 07c775ad..b3ad92fe 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 f68622e5..818fa5e5 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 7f2b046c..b9577919 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 a4896077..ca24242b 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 9bc43652..f7555448 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 dd2f7b17..75f61c3a 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 d422bb04..9a9de423 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 2558e457..8f8df09b 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 5ac305ff..a14a5ecc 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 a9a89860..7d671626 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 33c83927..e994213a 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 ebc360e2..a1d4f32c 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 29df5913..c58854cf 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 6ef12983..d02953b2 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 5421f1ce..2d1dadc1 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 59ab7452..1e211f12 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 b5a8e9c6..f71fd953 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 e2112688..53986ba3 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 6ea1d8db..1dfd9321 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 b786d309..6a4fc6df 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 3ebe99a9..5c22263e 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 b8bca6a2..0a5cd27d 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 a547a25b..ada15ae5 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 d5fea856..fd86b7d8 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 aca7853d..de3015cd 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 67f6608a..0d61b6c2 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 1ee33190..35e68482 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 52b87d77..e99a543a 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 5a87f32a..f5069a80 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 e74dd844..086baba6 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 1033ad6e..6e2c5056 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 546c02ef..a0d80994 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 27d4cf89..729eb152 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 853a4e5b..98afe966 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 6bd1c159..07b60162 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 94203deb..cc4cdbe6 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 d2ba2b45..d21db0cc 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 e134b4a4..a8fa024b 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 794464cf..d4e3cdde 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 63b61107..6f527044 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 2c89369b..aa25f998 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 26dff665..708e7e09 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 e7f1a80a..e8aded23 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 56e6feb5..2b242777 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 a7449a3c..4d629608 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 1fc72748..c2e1f0ae 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 8aada066..2210c443 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 3629ed01..ac7e862a 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 e8fe0acc..15b70382 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 22869345..a0640621 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 2c563621..ff85e4ef 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 4264315f..27efc564 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 d8c9cd49..aab15bb0 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 0aedaa3c..260e10e5 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 1d010c2f..4f524322 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 e8a7c48e..80c30670 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 009f4abe..44d747ec 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 dd051fa9..9bec8f85 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 efdfa29a..fda5bd70 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 a9ae67ac..8579cd69 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 55f1a13a..17fbc29d 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 517d8ccc..48e6a151 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 e5f99421..71eb549d 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 7634a62b..72550ac9 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 8d04bae5..45e36fa3 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 929ac2c0..b1e8cd4e 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 409f9cb3..14fa421d 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 47d1148b..946896b0 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 55be83b7..cb9fcf59 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 f8aa4f62..2dbd734e 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 c9476fc8..b32398ec 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 c74b548d..3efa7328 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 db57fbcb..9bae74cf 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 1d68a15f..16bd817e 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 daa3441d..4a7fcc30 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 4baf86fe..b72f84e0 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 efd477ee..8ef977db 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 391b03f0..db268413 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 7c142ca9..fa961041 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 460e1e80..332fe026 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 d009b101..fbb8986c 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 f98482a3..42a8f16e 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 36b0233f..896a9a4f 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 bd554f74..838320f3 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 e6b80412..50a67056 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 3fa5a9e8..d16eb49e 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 0fecab56..c670e83f 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 5b756d00..52ddca5f 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 59438143..0cb8f51f 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 bd46f580..a2f861fa 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 ee1b5918..7727d24c 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 d6e28608..46b9cd14 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 1b05f3a3..fa25f6da 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 570b94cd..e61faa35 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 c45c6d7e..e5a5a81e 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 869318f4..4fd0b7af 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 a9ca2a40..fecf03ec 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_ -- GitLab