def relax_isometry(self):
for ii in range(self.relaxation_kwds['<STR_LIT>']):<EOL><INDENT>self.H = self.compute_dual_rmetric()<EOL>self.loss = self.rieman_loss()<EOL>self.trace_var.update(ii,self.H,self.Y,self.eta,self.loss)<EOL>self.trace_var.print_report(ii)<EOL>self.trace_var.save_backup(ii)<EOL>self.compute_gradient()<EOL>self.make_optimization_step(first_iter=(ii == <NUM_LIT:0>))<EOL><DEDENT>self.H = self.compute_dual_rmetric()<EOL>self.trace_var.update(-<NUM_LIT:1>,self.H,self.Y,self.eta,self.loss)<EOL>self.trace_var.print_report(ii)<EOL>tracevar_path = os.path.join(self.trace_var.backup_dir, '<STR_LIT>')<EOL>TracingVariable.save(self.trace_var,tracevar_path)<EOL>
Main function for doing riemannian relaxation.