In SGDR the total training length is the sum of the cycle lengths. Knowing it lets you budget epochs for a given number of restarts.
Implement cycles_total(T0, Tmult, n), the total steps across the first n cycles.
Add each cycle length to a running total, multiplying the length by Tmult after each.
No results yet
Run your code to check it against the examples, or submit to run every test.