Trait TextMetricRegistration
pub trait TextMetricRegistration<B, M, O, S, TI, VI, TO, VO>: Sizedwhere
B: AutodiffBackend,
M: AutodiffModule<B> + TrainStep<TI, TO> + Display + 'static,
<M as AutodiffModule<B>>::InnerModule: ValidStep<VI, VO>,
O: Optimizer<M, B>,
S: LrScheduler,
TI: Send + 'static,
VI: Send + 'static,
TO: ItemLazy + 'static,
VO: ItemLazy + 'static,{
// Required method
fn register(
self,
builder: LearnerBuilder<B, M, O, S, TI, VI, TO, VO>,
) -> LearnerBuilder<B, M, O, S, TI, VI, TO, VO>;
}Expand description
Trait to fake variadic generics.
Required Methods§
fn register(
self,
builder: LearnerBuilder<B, M, O, S, TI, VI, TO, VO>,
) -> LearnerBuilder<B, M, O, S, TI, VI, TO, VO>
fn register( self, builder: LearnerBuilder<B, M, O, S, TI, VI, TO, VO>, ) -> LearnerBuilder<B, M, O, S, TI, VI, TO, VO>
Register the metrics.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.