Skip to content

Conversation

@torfjelde
Copy link
Member

@torfjelde torfjelde commented Jun 17, 2023

This is needed to ensure that transformed distributions are handled correctly now that transformations can change the support.

Related: #265

torfjelde and others added 3 commits June 17, 2023 22:41
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
end

function output_size(::VecCorrBijector, sz::NTuple{2})
@assert sz[1] == sz[2]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe make this a proper, more descriptive error?

@torfjelde
Copy link
Member Author

Cheers @devmotion ! I did all your suggestions + removed output_length due to it's limited use. Also added more descriptive error 👍

name = "Bijectors"
uuid = "76274a88-744f-5084-9051-94815aaf08c4"
version = "0.12.8"
version = "0.13.0"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for the record: this isn't actually a breaking change, but I want to wait with a new release until we've merged this PR + #271 and #263 , i.e. we have have proper support for everything.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the changes to Stacked, this is now indeed a breaking PR.

@torfjelde
Copy link
Member Author

I'm fixing Stacked atm and I think that should probably go in this PR otherwise it'll buggy.

torfjelde and others added 3 commits June 18, 2023 11:27
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
torfjelde and others added 2 commits June 18, 2023 11:36
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
with tuple because recursive implementation fail
torfjelde and others added 3 commits June 18, 2023 13:06
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@torfjelde
Copy link
Member Author

Would be nice to get this merged somewhat quickly if there's nothing signficant holding it back, as everything related to "proper support for contrainsted distributions in Turing" is held back by this 😬

Note that the Stacked really needs a rework, as have been noted many times before, but I don't think we should do that now.

Copy link
Member

@devmotion devmotion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor comments, otherwise it looks good to me.

@torfjelde
Copy link
Member Author

Awesome; thanks David! ❤️

@torfjelde torfjelde merged commit 2147089 into master Jun 18, 2023
@delete-merged-branch delete-merged-branch bot deleted the torfjelde/size-interface branch June 18, 2023 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants