parameters: (self, vecs_and_vars, transform)
return_statement: return [(trans_vecs[var], var) for _, var in vecs_and_vars]
docstring: Applies an block-wise transformation to the corresponding vectors.
  
      Args:
        vecs_and_vars: List of (vector, variable) pairs.
        transform: A function of the form f(fb, vec), where vec is the vector
            to transform and fb is its corresponding block in the matrix, that
            returns the transformed vector.
  
      Returns:
        A list of (transformed vector, var) pairs in the same order as
        vecs_and_vars.
docstring_summary: Applies an block-wise transformation to the corresponding vectors.
docstring_tokens: Applies an block - wise transformation to the corresponding vectors .
function: def _apply_transformation(self, vecs_and_vars, transform):
      """Applies an block-wise transformation to the corresponding vectors.
  
      Args:
        vecs_and_vars: List of (vector, variable) pairs.
        transform: A function of the form f(fb, vec), where vec is the vector
            to transform and fb is its corresponding block in the matrix, that
            returns the transformed vector.
  
      Returns:
        A list of (transformed vector, var) pairs in the same order as
        vecs_and_vars.
      """
  
      vecs = utils.SequenceDict((var, vec) for vec, var in vecs_and_vars)
  
      trans_vecs = utils.SequenceDict()
  
      for params, fb in self._layers.fisher_blocks.items():
        trans_vecs[params] = transform(fb, vecs[params])
  
      return [(trans_vecs[var], var) for _, var in vecs_and_vars]
function_tokens: def _apply_transformation ( self , vecs_and_vars , transform ) : vecs = utils . SequenceDict ( ( var , vec ) for vec , var in vecs_and_vars ) trans_vecs = utils . SequenceDict ( ) for params , fb in self . _layers . fisher_blocks . items ( ) : trans_vecs [ params ] = transform ( fb , vecs [ params ] ) return [ ( trans_vecs [ var ] , var ) for _ , var in vecs_and_vars ]