Shampoo scales the gradient by the inverse root of each preconditioner's eigenvalues. Raising eigenvalues to minus one over the root order gives the matrix power that Shampoo needs.
Implement inverse_root(eigs, power), the element-wise inverse root of positive eigenvalues.
Raise the eigenvalues to the power minus one over the root order.
No results yet
Run your code to check it against the examples, or submit to run every test.