Trait burn::train::logger::Logger

pub trait Logger<T>: Send {
    // Required method
    fn log(&mut self, item: T);
}
Expand description

The logger trait.

Required Methods§

fn log(&mut self, item: T)

Logs an item.

§Arguments
  • item - The item.

Implementors§

§

impl<T> Logger<T> for AsyncLogger<T>
where T: Send,

§

impl<T> Logger<T> for FileLogger
where T: Display,

§

impl<T> Logger<T> for InMemoryLogger
where T: Display,