Get the conv state for a linear attention layer.
(&self, block_idx: usize)
| 229 | |
| 230 | /// Get the conv state for a linear attention layer. |
| 231 | pub fn get_conv_state(&self, block_idx: usize) -> Option<&Tensor> { |
| 232 | self.conv_states[block_idx].as_ref() |
| 233 | } |
| 234 | |
| 235 | /// Set the conv state for a linear attention layer. |
| 236 | pub fn set_conv_state(&mut self, block_idx: usize, state: Tensor) { |
no outgoing calls