keras/src/layers/rnn/bidirectional.py/Bidirectional/reset_state
class Bidirectional:    def reset_state(self):
        if not self.stateful:
            raise AttributeError("Layer must be stateful.")
        self.forward_layer.reset_state()
        self.backward_layer.reset_state()