Optimizer Doesn't update Weights

Double post with answer from here.