diff --git a/lite/arm/math/interpolate.cc b/lite/arm/math/interpolate.cc index 8a4a07d60083b1143de19266d97878eb153854f5..0e4dbdca694cfe1bfb6176b9aaa9b29a1719e311 100644 --- a/lite/arm/math/interpolate.cc +++ b/lite/arm/math/interpolate.cc @@ -22,6 +22,24 @@ namespace lite { namespace arm { namespace math { +// The following function bilinear_interp is partially base on +// https://github.com/Tencent/ncnn/blob/master/src/layer/arm/interp_arm.cpp +// Tencent is pleased to support the open source community by making ncnn +// available. +// +// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. +// +// Licensed under the BSD 3-Clause License (the "License"); you may not use this +// file except +// in compliance with the License. You may obtain a copy of the License at +// +// https://opensource.org/licenses/BSD-3-Clause +// +// Unless required by applicable law or agreed to in writing, software +// distributed +// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +// CONDITIONS OF ANY KIND, either express or implied. See the License for the +// specific language governing permissions and limitations under the License. void bilinear_interp(const float* src, int w_in, int h_in, diff --git a/lite/arm/math/packed_sgemm.cc b/lite/arm/math/packed_sgemm.cc index bcfb0e2a9f7b21e4c8eb312c7ea5e4dc6040559e..c0c5c76c0f28670acd9cea0dbbc85d0ff0f92487 100644 --- a/lite/arm/math/packed_sgemm.cc +++ b/lite/arm/math/packed_sgemm.cc @@ -262,6 +262,33 @@ void sgemm_prepack(bool is_transB, } #ifdef __aarch64__ +/* + * The following function prepackA_8x12 is base on + * https://github.com/ARM-software/ComputeLibrary/ + * + * Copyright (c) 2017-2019 ARM Limited. + * + * SPDX-License-Identifier: MIT + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ void prepackA_8x12(float *dout, const float *inptr, float alpha, diff --git a/lite/core/cpu_info.cc b/lite/core/cpu_info.cc index e99adf8b2a06b92bc5a1109f24d9c9ef80e85484..4b352eee93289847bab42635b3731ab0db548021 100644 --- a/lite/core/cpu_info.cc +++ b/lite/core/cpu_info.cc @@ -12,6 +12,25 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Parts of the following code in this file refs to +// https://github.com/Tencent/ncnn/blob/master/src/cpu.cpp +// Tencent is pleased to support the open source community by making ncnn +// available. +// +// Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. +// +// Licensed under the BSD 3-Clause License (the "License"); you may not use this +// file except in compliance with the License. You may obtain a copy of the +// License at +// +// https://opensource.org/licenses/BSD-3-Clause +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + #ifdef LITE_WITH_LINUX #include #include