// 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_KERNELS_GEMM_H_ #define MACE_KERNELS_GEMM_H_ #if defined(MACE_ENABLE_NEON) && defined(__aarch64__) #include #endif #include "mace/core/types.h" namespace mace { namespace kernels { void Gemm(const float *A, const float *B, const index_t batch, const index_t height, const index_t K, const index_t width, float *C); void GemmRef(const float *A, const float *B, const index_t height, const index_t K, const index_t width, float *C); void Gemv(const float *m_ptr, const float *v_ptr, const index_t width, const index_t height, float *out_ptr); void GemvRef(const float *m_ptr, const float *v_ptr, const index_t width, const index_t height, float *out_ptr); } // namespace kernels } // namespace mace #endif // MACE_KERNELS_GEMM_H_