Training an RNN on a long text is split into truncated segments, and gradients only flow back through a fixed window. The number of segments per pass decides how often the hidden state is carried over.
Implement bptt_chunks(T, bptt), the number of truncated segments needed for a sequence.
Use ceiling division of the length by the truncation window.
No results yet
Run your code to check it against the examples, or submit to run every test.