struct CoupledLayers {
repeat_penalty: Option<usize>,
presence_penalty: Option<usize>,
min_p: Option<usize>,
}Expand description
Which ladder rung supplied each member of the temperature-coupled set.
Purely an intermediate inside InferenceConfig::resolve_layers_with_sources:
the two arms of the coupling rule each produce one of these, and the
provenance record is built from it. Named fields rather than a tuple
because both arms and the provenance construction read it positionally
otherwise, and the three are easy to transpose.
Fields§
§repeat_penalty: Option<usize>§presence_penalty: Option<usize>§min_p: Option<usize>Trait Implementations§
Source§impl Clone for CoupledLayers
impl Clone for CoupledLayers
Source§fn clone(&self) -> CoupledLayers
fn clone(&self) -> CoupledLayers
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoupledLayers
impl Debug for CoupledLayers
impl Copy for CoupledLayers
Auto Trait Implementations§
impl Freeze for CoupledLayers
impl RefUnwindSafe for CoupledLayers
impl Send for CoupledLayers
impl Sync for CoupledLayers
impl Unpin for CoupledLayers
impl UnsafeUnpin for CoupledLayers
impl UnwindSafe for CoupledLayers
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