native_neural_network 0.1.6

Lib no_std Rust for native neural network (.rnn)
Documentation
1
2
3
pub fn rope_angle(position: usize, pair_index: usize, hidden_size: usize, theta: f32) -> f32 {
    (position as f32) / crate::math::powf(theta, (2.0 * pair_index as f32) / hidden_size as f32)
}