-
-
Notifications
You must be signed in to change notification settings - Fork 984
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
FR ExpandedDistribution for easier custom distributions #2186
Comments
We can easily resurrect this. The reason why we had a |
Thanks for explaining, I had forgotten about our early difficulty with interstitial dims. However, in retrospect I believe we could support interstitial dims in both Let me clarify motivation. |
That makes sense.
I have thought about this a couple of times. :) I don't fully remember the constraints that we were operating in under the time. I think one reason was that it might be hard to support distributions that are manually batched in a generic way, but if we only rely on |
As of #1377 it is onerous to define custom distributions: each new distribution requires a custom
.expand()
method --a method that is difficult to understand and inconsistently implemented among reference distributions. This issue proposes to resurrectReshapedDistribution
as a simplerExpandedDistribution
and to use that as a fallback in case.expand()
is not implemented.Request: classes deriving from
TorchDistribution
need not implement.expand()
The text was updated successfully, but these errors were encountered: