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

Autogenerating imports for for `flowtorch.parameters` and `flowtorch.bijectors` #72

Closed stefanwebb closed 2 years ago

stefanwebb commented 2 years ago

Motivation

It is tiresome to have to add new components to init.py for bijectors, distributions and parameters. We should be able to automatically generate it!

Changes proposed

Autogen for distributions was completed in a previous PR. This one completes it for parameters and bijectors.

I also uncovered and fixed a bug in how utils.list_bijectors(), utils.list_distributions(), and utils.list_parameters were working

facebook-github-bot commented 2 years ago

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

facebook-github-bot commented 2 years ago

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

facebook-github-bot commented 2 years ago

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

facebook-github-bot commented 2 years ago

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

facebook-github-bot commented 2 years ago

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

facebook-github-bot commented 2 years ago

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

facebook-github-bot commented 2 years ago

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

facebook-github-bot commented 2 years ago

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

facebook-github-bot commented 2 years ago

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

facebook-github-bot commented 2 years ago

@stefanwebb merged this pull request in facebookincubator/flowtorch@b46b1a4bbbecaf7e307b72abde280d72c5dfe5d4.