Hi Pascal,
many thanks for your help.
I modified the code and changed shared_randomstreams.RandomStreams, with
MRG_RandomStreams where used:
def _dropout_from_layer(rng, layer, p):
#p is the probablity of dropping a unit
#it was originally:
#srng =
theano.tensor.shared_randomstreams.RandomStreams(rng.randint(999999))
#changed to reduce slowdown
srng = MRG_RandomStreams(rng.randint(999999))
mask = srng.binomial(n=1, p=1-p, size=layer.shape)
output = layer * T.cast(mask, theano.config.floatX)
return output
--
---
You received this message because you are subscribed to the Google Groups
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.