pub struct GruScales {
pub input_scale: f32,
pub hidden_scale: f32,
pub lut_input_scale: f32,
pub input_weight_scales: [f32; 3],
pub recurrent_weight_scales: [f32; 3],
}Expand description
The float scales a QGruCell is calibrated from (C++ QGRUScales).
Gates are in the order r, z, n.
Fields§
§input_scale: f32Scale of the input tensor.
Scale of the hidden state.
lut_input_scale: f32Scale of the LUTs’ input grid, shared by every gate.
input_weight_scales: [f32; 3]Per gate, the scale of the symmetric input weights.
recurrent_weight_scales: [f32; 3]Per gate, the scale of the symmetric recurrent weights.
Trait Implementations§
impl Copy for GruScales
impl StructuralPartialEq for GruScales
Auto Trait Implementations§
impl Freeze for GruScales
impl RefUnwindSafe for GruScales
impl Send for GruScales
impl Sync for GruScales
impl Unpin for GruScales
impl UnsafeUnpin for GruScales
impl UnwindSafe for GruScales
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