-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fix _call
not implemented error in call_and_ladj
#14
Conversation
torch.distributions.Transform
s
Curiously, the test fails if I add |
Hello @felixdivo, Thanks for reporting the bug and finding a solution. Could you address my comments before I merge?
This is because As a side note, per the contribution guidelines:
|
torch.distributions.Transform
s_call
not implemented error in call_and_ladj
Thanks for the hint and sorry for not reading it. I'll follow it from now on. I wasn't aware of it. |
Some transformations do not implement
_call
, even some of the Pytorch ones likeComposeTranform
.https://github.com/pytorch/pytorch/blob/4869929f32c176dc3e5ea4cd4164b3fd73a0c9ea/torch/distributions/transforms.py#L270-L385
This results in
call_and_ladj
raising aNotImplementedError
.