pub struct ExecutorConfig {
pub model_info: ModelInfo,
pub device: Device,
pub dtype: DataType,
pub max_batch_size: usize,
pub max_sequence_length: usize,
pub attention_config: ExecutorAttentionConfig,
pub memory_config: ExecutorMemoryConfig,
pub optimization_config: OptimizationConfig,
pub executor_options: HashMap<String, Value>,
}Expand description
Executor configuration
Fields§
§model_info: ModelInfoModel information
device: DeviceTarget device
dtype: DataTypeData type for computation
max_batch_size: usizeMaximum batch size
max_sequence_length: usizeMaximum sequence length
attention_config: ExecutorAttentionConfigAttention configuration
memory_config: ExecutorMemoryConfigMemory configuration
optimization_config: OptimizationConfigOptimization settings
executor_options: HashMap<String, Value>Additional executor-specific options
Trait Implementations§
Source§impl Clone for ExecutorConfig
impl Clone for ExecutorConfig
Source§fn clone(&self) -> ExecutorConfig
fn clone(&self) -> ExecutorConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ExecutorConfig
impl Debug for ExecutorConfig
Source§impl<'de> Deserialize<'de> for ExecutorConfig
impl<'de> Deserialize<'de> for ExecutorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExecutorConfig
impl RefUnwindSafe for ExecutorConfig
impl Send for ExecutorConfig
impl Sync for ExecutorConfig
impl Unpin for ExecutorConfig
impl UnsafeUnpin for ExecutorConfig
impl UnwindSafe for ExecutorConfig
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