pub struct TranslatorConfig {
pub device: Device,
pub compute_type: ComputeType,
pub device_indices: Vec<i32>,
pub tensor_parallel: bool,
pub num_threads_per_replica: usize,
pub max_queued_batches: i64,
pub cpu_core_offset: i32,
}Fields§
§device: Device§compute_type: ComputeType§device_indices: Vec<i32>§tensor_parallel: bool§num_threads_per_replica: usize§max_queued_batches: i64§cpu_core_offset: i32Trait Implementations§
Auto Trait Implementations§
impl Freeze for TranslatorConfig
impl RefUnwindSafe for TranslatorConfig
impl Send for TranslatorConfig
impl Sync for TranslatorConfig
impl Unpin for TranslatorConfig
impl UnwindSafe for TranslatorConfig
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more