Add a short code snippet in the RNN doc (#119150)
Fixes #109443,
also remove a duplicated comment line `# Efficient implementation equivalent to the following:` in scaled_dot_product_attention doc.
@mikaylagawarecki
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119150
Approved by: https://github.com/malfet