native_neural_network 0.3.1

Lib no_std Rust for native neural network (.rnn)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod errors;
mod filters;
mod pick;
mod temperature;

pub use errors::SamplingError;
pub use filters::{top_k_mask_f32, top_p_cutoff_f32};
pub use filters::{top_k_mask_f64, top_p_cutoff_f64};
pub use pick::{argmax_sample_f32, sample_from_cumulative_f32};
pub use pick::{argmax_sample_f64, sample_from_cumulative_f64};
pub use temperature::softmax_temperature;
pub use temperature::softmax_temperature_f32;
pub use temperature::softmax_temperature_f64;