We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems that there are still problems with simplification of random number generation operation if they are encapsulated into modules.
The following code prints two last lines equal when simplification is turned on:
import cgt import cgt.nn as nn z1 = cgt.randn() z2 = cgt.randn() m = nn.Module([cgt.scalar()], [z1, z2]) f = cgt.function([], m([0.])) print 'A', f() print 'A', f() z = cgt.randn(2) m = nn.Module([cgt.scalar()], [z]) f = cgt.function([], m([0.]) + m([0.])) print 'B', f() print 'B', f()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It seems that there are still problems with simplification of random number generation operation if they are encapsulated into modules.
The following code prints two last lines equal when simplification is turned on:
The text was updated successfully, but these errors were encountered: