Add adaptive stopping to inner iterations.

Change-Id: I83c909b8b87f1320aa30dcc80ac43a63765b9181
3 files changed