Realm

oa::ml::AccuracyObserver

Cloneable recording handle for one AccuracyMetric. Call AccuracyObserver::observe exactly once per step inside the record closure; in the captured plane the operations record once and execute on every replay, so no per-step accuracy readback exists.

StRust public API

Declaration

pub struct AccuracyObserver { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn observe(&self, logits: &Matrix, targets: &Matrix) -> Result<()>
fn clone(&self) -> AccuracyObserver

Public Method Documentation

pub fn observe(&self, logits: &Matrix, targets: &Matrix) -> Result<()>
No public source comment is attached to this declaration.
fn clone( &self ) -> AccuracyObserver
No public source comment is attached to this declaration.