Prerequisites & Notation

Before You Begin

This chapter requires nn.Module and training loop (Chapter 26). Familiarity with time-series data and basic sequence processing is helpful.

  • nn.Module and training loops (Chapter 26)(Review ch26)

    Self-check: Can you train a PyTorch model on batched data?

  • Backpropagation and gradient flow (Chapter 26)(Review ch26)

    Self-check: Do you understand vanishing gradients in deep networks?

Notation for This Chapter

SymbolMeaningIntroduced
mathbfht\\mathbf{h}_tHidden state at time step tts01
mathbfxt\\mathbf{x}_tInput at time step tts01
TTSequence lengths01
mathbfft,mathbfit,mathbfot\\mathbf{f}_t, \\mathbf{i}_t, \\mathbf{o}_tLSTM forget, input, output gatess01
mathbfct\\mathbf{c}_tLSTM cell states01