A full second-moment matrix for an n by m weight stores n times m numbers. Adafactor stores one vector of length n and one of length m, which is far smaller for large layers.
Implement factored_memory(n, m), the number of stored entries for a factored second moment.
Add the two dimensions together.
No results yet
Run your code to check it against the examples, or submit to run every test.