pub struct SimpleTargetModel {
pub distributions: Vec<Vec<(TokenId, f32)>>,
}Expand description
A mock target model that returns configurable distributions.
Fields§
§distributions: Vec<Vec<(TokenId, f32)>>Distributions to return for each position.
If verify_batch requests more positions than available,
the last distribution is repeated.
Trait Implementations§
Source§impl TargetModel for SimpleTargetModel
impl TargetModel for SimpleTargetModel
Auto Trait Implementations§
impl Freeze for SimpleTargetModel
impl RefUnwindSafe for SimpleTargetModel
impl Send for SimpleTargetModel
impl Sync for SimpleTargetModel
impl Unpin for SimpleTargetModel
impl UnsafeUnpin for SimpleTargetModel
impl UnwindSafe for SimpleTargetModel
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