@@ -11,8 +11,20 @@ from theano.gof import Container
fromtheano.tensorimportraw_random
importwarnings
defdeprecation_warning():
warnings.warn("RandomStreams is deprecated and will be removed in release 0.7. Use shared_randomstreams.RandomStreams or MRG_RandomStreams instead.",stacklevel=3)
# Make sure the warning is displayed only once.
ifdeprecation_warning.already_displayed:
return
warnings.warn((
"RandomStreams is deprecated and will be removed in release 0.7. "