Hi @jacob,
I implemented a couple of custom RNNs recently by simply modifying this code,
Hope that helps,
Best,
Ajay