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
use crate::profiler::OpCounter;

pub fn has_recorded_work(counter: &OpCounter) -> bool {
    counter.total_ops() > 0 || counter.total_memory_bytes() > 0
}

pub fn is_memory_heavy(counter: &OpCounter) -> bool {
    counter.total_memory_bytes() > counter.total_ops()
}