int8-weight GRU built from a float lucid.nn.GRU.
The GRU counterpart of LSTM: each layer's (and direction's)
weight_ih / weight_hh is stored int8 per-row symmetric under the
flat name a float GRU's state_dict uses (weight_ih_l0_int8,
weight_ih_l0_scale), the biases stay float, and a float nn.GRU
shell outside the module registry runs the recurrence on the dequantized
weights. Built by lucid.quantization.quantize_dynamic.
Parameters
shelllucid.nn.GRUThe float GRU whose configuration and recurrence are reused.
Used by 1
Class methods
1Instance methods
2Override to add extra repr info (e.g. Linear shows in_features, etc.).
forward(input: Tensor | PackedSequence, hx: Tensor | None = None)Inject dequantized weights into the shell and run it.