/*++ Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. Module Name: rotary_embedding_kernel_neon.h Abstract: This module includes function declarations and common helper functions for rotary embedding on ARM cpu. --*/ #pragma once #include #include "mlasi.h" namespace rope_neon { // Rotary embedding kernel for fp32. Embed one hidden state vector. void RopeKernel_Fp32( const float* input, const float* sin, const float* cos, size_t dim, bool interleaved, float* output ); // Rotary embedding kernel for fp16. Embed one hidden state vector. void RopeKernel_Fp16( const MLAS_FP16* input, const MLAS_FP16* sin, const MLAS_FP16* cos, size_t dim, bool interleaved, MLAS_FP16* output ); } // namespace rope_neon