Implement recurrent in terms of Haiku public API.
Implement recurrent in terms of Haiku public API.

PiperOrigin-RevId: 313393502
Change-Id: I7c1c3ec9752c1c3e5b2856056f6c8285464364e8

deepmind/dm-haiku,deepmind/dm-haiku