''

def __init__(self, rng, std=0.1, ndim=0, avg=0, shape_fn=None):

    assert (rng is not None), 'random    number    generator    should    not    be    empty!'
    super(GaussianNoise, self).__init__(0, 0, rng)
    self.std = scale
    self.avg = self.avg
    self.ndim = ndim
    self.shape_fn = shape_fn
    if self.shape_fn:
        self.noise_term = theano.shared(numpy.zeros(((2,) * ndim), dtype=theano.config.floatX), name='ndata')
        self.noise_params += [self.noise_term]
        self.noise_params_shape_fn += [shape_fn]
    self.trng = RandomStreams(rng.randint(100000.0))
