parameters: (self, grads)
docstring: Record errors for the auxiliary variables.
docstring_summary: Record errors for the auxiliary variables.
docstring_tokens: Record errors for the auxiliary variables .
function: def record_aux_errors(self, grads):
      """Record errors for the auxiliary variables."""
      concat = []
      for grad in grads:
        concat.extend([np.ravel(g) for g in grad])
      self.aux_errors.append([np.linalg.norm(np.concatenate(concat))])
function_tokens: def record_aux_errors ( self , grads ) : concat = [ ] for grad in grads : concat . extend ( [ np . ravel ( g ) for g in grad ] ) self . aux_errors . append ( [ np . linalg . norm ( np . concatenate ( concat ) ) ] )