New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scan cannot include MRG_RandomStreams.binomial with symbolic shape #3437
Comments
The error comes from the fact that the 'updates' output of Scan is not provided to function(). It works with the following code :
|
Oh, of course. Interesting behaviour, though. Thanks a lot! |
I agree 100% that this is weird behaviour. We should either : |
This would be great. For uses of RNGs outside of scan, updates are handled transparently already. If this isn't possible for |
Hi, |
As mentioned in #3437 (comment), it should be enough to capture the |
scan
cannot have aMRG_RandomStreams.binomial
in its step function that uses the symbolic shape of a recurrent variable: It fails to compile with aMissingInputError
. This was discovered by a Lasagne user some days ago (https://groups.google.com/forum/#!topic/lasagne-users/8E1iR04_nK8), and a few minutes ago a colleague stumbled upon the same problem, so I think it might deserve some attention. (I've read that dropouts in recurrent connections don't work well in practice, but this shouldn't be a reason to refuse compilation ;).)The following code demonstrates that
scan
works fine with a nonsymbolic shape inbinomial
, but fails with a symbolic shape:The error is:
The text was updated successfully, but these errors were encountered: