facebookincubator / flowtorch

This library would form a permanent home for reusable components for deep probabilistic programming. The library would form and harness a community of users and contributors by focusing initially on complete infra and documentation for how to use and create components.
https://flowtorch.ai
MIT License
300 stars 21 forks source link

InverseBijector layer #91

Closed vmoens closed 2 years ago

vmoens commented 2 years ago

Adds a new InverseBijector layer class. Instances can be created by calling bij.invert() or InverseBijector(bij). We make sure that bij.invert().invert() is bij returns True. Suggested by #90

facebook-github-bot commented 2 years ago

@SepehrAkhavan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 2 years ago

@vmoens has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 2 years ago

@vmoens has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 2 years ago

@vmoens has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 2 years ago

@vmoens has updated the pull request. You must reimport the pull request before landing.

codecov-commenter commented 2 years ago

Codecov Report

Merging #91 (f031947) into main (4992731) will increase coverage by 0.14%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #91      +/-   ##
==========================================
+ Coverage   98.25%   98.39%   +0.14%     
==========================================
  Files           6        6              
  Lines         229      249      +20     
==========================================
+ Hits          225      245      +20     
  Misses          4        4              
Flag Coverage Δ
unittests 98.39% <100.00%> (+0.14%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
tests/test_bijector.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 4992731...f031947. Read the comment docs.

facebook-github-bot commented 2 years ago

@stefanwebb has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

vmoens commented 2 years ago

LGTM! Thanks for taking care of this