pub struct LstmParams {
pub input_to_lut_multiplier: [i32; 4],
pub input_to_lut_shift: [i32; 4],
pub recurrent_to_lut_multiplier: [i32; 4],
pub recurrent_to_lut_shift: [i32; 4],
pub f_times_c_multiplier: i32,
pub f_times_c_shift: i32,
pub i_times_g_multiplier: i32,
pub i_times_g_shift: i32,
pub cell_to_tanh_multiplier: i32,
pub cell_to_tanh_shift: i32,
pub output_multiplier: i32,
pub output_shift: i32,
}Expand description
The multipliers and shifts of a QLstmCell (C++ QLSTMParams), with the
same field names as the cell. output_multiplier and output_shift go in
the cell’s output_requantizer, with the hidden zero point and bounds.
Fields§
§input_to_lut_multiplier: [i32; 4]Per gate, the cell’s input_to_lut_multiplier.
input_to_lut_shift: [i32; 4]Per gate, the cell’s input_to_lut_shift.
recurrent_to_lut_multiplier: [i32; 4]Per gate, the cell’s recurrent_to_lut_multiplier.
recurrent_to_lut_shift: [i32; 4]Per gate, the cell’s recurrent_to_lut_shift.
f_times_c_multiplier: i32The cell’s f_times_c_multiplier.
f_times_c_shift: i32The cell’s f_times_c_shift.
i_times_g_multiplier: i32The cell’s i_times_g_multiplier.
i_times_g_shift: i32The cell’s i_times_g_shift.
cell_to_tanh_multiplier: i32The cell’s cell_to_tanh_multiplier.
cell_to_tanh_shift: i32The cell’s cell_to_tanh_shift.
output_multiplier: i32The multiplier of the cell’s output_requantizer.
output_shift: i32The shift of the cell’s output_requantizer.
Trait Implementations§
Source§impl Clone for LstmParams
impl Clone for LstmParams
impl Copy for LstmParams
Source§impl Debug for LstmParams
impl Debug for LstmParams
impl Eq for LstmParams
Source§impl PartialEq for LstmParams
impl PartialEq for LstmParams
impl StructuralPartialEq for LstmParams
Auto Trait Implementations§
impl Freeze for LstmParams
impl RefUnwindSafe for LstmParams
impl Send for LstmParams
impl Sync for LstmParams
impl Unpin for LstmParams
impl UnsafeUnpin for LstmParams
impl UnwindSafe for LstmParams
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