Struct chat_flame_backend::llm::sampler::DummySampler
source · pub struct DummySampler { /* private fields */ }
Expand description
A dummy implementation of Sampler
for testing purposes.
This sampler sequentially returns incrementing integers as tokens.
Implementations§
source§impl DummySampler
impl DummySampler
Trait Implementations§
source§impl Default for DummySampler
impl Default for DummySampler
Provides a default instance of DummySampler
.
Auto Trait Implementations§
impl RefUnwindSafe for DummySampler
impl Send for DummySampler
impl Sync for DummySampler
impl Unpin for DummySampler
impl UnwindSafe for DummySampler
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