Build a sequence classifier: embedding lookup + RNN + linear classifier.
Pipeline:
embedding_table Input:
indices: token indices of shape (seq_len,) embedding_table: shape (vocab_size, embed_dim) W_xh: shape (embed_dim, hidden_dim) W_hh: shape (hidden_dim, hidden_dim) b_h: shape (hidden_dim,) h0: shape (hidden_dim,) W_out: shape (hidden_dim, num_classes) b_out: shape (num_classes,)
Output: Logits of shape (num_classes,).