-
Notifications
You must be signed in to change notification settings - Fork 24
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
Splatting does not work (with non-linear node) #122
Labels
bug
Something isn't working
Comments
bartvanerp
changed the title
Splatting does not nicely work (with non-linear node)
Splatting does not work (with non-linear node)
May 30, 2023
Should also be fixed in graphppl 4.0 but I'll close this myself after we merge everything and I've checked. |
@wouterwln why is this issue closed? This doesn't seem working in |
Ah, it is fixed in the new GraphPPL release, we should probably reopen until it is fully merged |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code excerpt fails:
with error
MethodError: no method matching as_variable(::FactorGraphModel, ::RandomVariable, ::RandomVariable, ::RandomVariable, ::RandomVariable, ::RandomVariable, ::RandomVariable, ::RandomVariable, ::RandomVariable, ::RandomVariable, ::RandomVariable)
.It likely has to do with the splat operator, possibly in combination with the non-linear node.
This functionality is very useful for dealing with multiple random variables going into a non-linear node. This prevents us from having to write
foo(z[1], z[2], ....)
, which is not automatable when the number is a hyperparameter.The text was updated successfully, but these errors were encountered: