'Returns weight loss list of variables that belong to this block.'

def _CreateWeightLoss(self):

    self.AssertInitialized()
    with self._BlockScope():
        return [tf.nn.l2_loss(v) for v in self._variables]
