pub struct ParallelConfig {
pub attention_type: AttentionType,
pub dim: u32,
pub block_size: Option<u32>,
pub num_features: Option<u32>,
pub local_window: Option<u32>,
pub global_tokens: Option<u32>,
pub curvature: Option<f64>,
}Expand description
Configuration for parallel attention
Fields§
§attention_type: AttentionType§dim: u32§block_size: Option<u32>§num_features: Option<u32>§local_window: Option<u32>§global_tokens: Option<u32>§curvature: Option<f64>Trait Implementations§
Source§impl FromNapiValue for ParallelConfig
impl FromNapiValue for ParallelConfig
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for ParallelConfig
impl ToNapiValue for ParallelConfig
Source§unsafe fn to_napi_value(
env: napi_env,
val: ParallelConfig,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: ParallelConfig, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for ParallelConfig
impl TypeName for ParallelConfig
Source§impl ValidateNapiValue for ParallelConfig
impl ValidateNapiValue for ParallelConfig
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for ParallelConfig
impl RefUnwindSafe for ParallelConfig
impl Send for ParallelConfig
impl Sync for ParallelConfig
impl Unpin for ParallelConfig
impl UnsafeUnpin for ParallelConfig
impl UnwindSafe for ParallelConfig
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