pub enum LearnedSpec {
Pretrained(Arc<Net>),
Overfit(TrainConfig),
}Expand description
How the learned model is obtained.
Variants§
Pretrained(Arc<Net>)
A network trained offline; only its fingerprint goes in the stream.
Overfit(TrainConfig)
Train on this file at encode time and ship the weights.
Implementations§
Source§impl LearnedSpec
impl LearnedSpec
Trait Implementations§
Source§impl Clone for LearnedSpec
impl Clone for LearnedSpec
Auto Trait Implementations§
impl Freeze for LearnedSpec
impl RefUnwindSafe for LearnedSpec
impl Send for LearnedSpec
impl Sync for LearnedSpec
impl Unpin for LearnedSpec
impl UnsafeUnpin for LearnedSpec
impl UnwindSafe for LearnedSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more