Skip to content
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

Clean up broadcasting conditionals #1618

Draft
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

st--
Copy link
Member

@st-- st-- commented Dec 16, 2020

PR type: enhancement

Summary

The independent separate multi-output conditional relied on tf.map_fn and a lot of reshaping. This PR makes the base_conditional broadcast over independent Kuu etc, which allows us to delete most of the code in independent separate multi-output conditional.

Note that this PR currently is in draft mode; there may be a bunch of unnecessary transposes, and we haven't yet checked whether this degrades accuracy in any way.

PR checklist

  • The bug case / new feature is covered by unit tests
  • Code has type annotations
  • I ran the black+isort formatter (make format)
  • I locally tested that the tests pass (make check-all)

Release notes

Fully backwards compatible: yes

Commit message (for release notes):

  • Clean up conditional internals

@st-- st-- requested a review from vdutor December 16, 2020 10:54
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.

None yet

1 participant