pub struct RoPEConfig {
pub dim: u32,
pub max_position: u32,
pub base: Option<f64>,
pub scaling_factor: Option<f64>,
}Expand description
Configuration for Graph RoPE attention
Fields§
§dim: u32§max_position: u32§base: Option<f64>§scaling_factor: Option<f64>Trait Implementations§
Source§impl FromNapiValue for RoPEConfig
impl FromNapiValue for RoPEConfig
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 RoPEConfig
impl ToNapiValue for RoPEConfig
Source§unsafe fn to_napi_value(env: napi_env, val: RoPEConfig) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: RoPEConfig) -> Result<napi_value>
Safety Read more
Source§impl TypeName for RoPEConfig
impl TypeName for RoPEConfig
Source§impl ValidateNapiValue for RoPEConfig
impl ValidateNapiValue for RoPEConfig
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 RoPEConfig
impl RefUnwindSafe for RoPEConfig
impl Send for RoPEConfig
impl Sync for RoPEConfig
impl Unpin for RoPEConfig
impl UnsafeUnpin for RoPEConfig
impl UnwindSafe for RoPEConfig
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