pub struct RerankerConfig {
pub weights_path: String,
pub tokenizer_path: Option<String>,
pub max_seq_len: u32,
pub backend: InferenceBackend,
pub model_name: String,
pub model_version: String,
}Expand description
Configuration for a cross-encoder reranker model.
Fields§
§weights_path: String§tokenizer_path: Option<String>§max_seq_len: u32§backend: InferenceBackend§model_name: String§model_version: StringTrait Implementations§
Source§impl Clone for RerankerConfig
impl Clone for RerankerConfig
Source§fn clone(&self) -> RerankerConfig
fn clone(&self) -> RerankerConfig
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 moreAuto Trait Implementations§
impl Freeze for RerankerConfig
impl RefUnwindSafe for RerankerConfig
impl Send for RerankerConfig
impl Sync for RerankerConfig
impl Unpin for RerankerConfig
impl UnsafeUnpin for RerankerConfig
impl UnwindSafe for RerankerConfig
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