native_neural_network_std 0.2.1

Ergonomic std wrapper for the `native_neural_network` crate (no_std) — std-friendly re-exports and utilities.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub use native_neural_network::activations::ActivationKind;

pub fn apply(kind: ActivationKind, x: f32) -> f32 {
    kind.apply(x)
}

pub fn derivative_from_output(kind: ActivationKind, output: f32) -> f32 {
    kind.derivative_from_output(output)
}

pub fn apply_in_place(kind: ActivationKind, values: &mut [f32]) {
    kind.apply_in_place(values)
}