def test_weight_variable_with_decay(self):
        weights = weight_variable([2, 3], name='weights', decay=0.01)
        losses = tf.get_collection('losses')

        expected = tf.nn.l2_loss(weights)