Skip to content

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.

2 participants