Skip to main content



The easiest way to write a docstring that adheres to FlowTorch conventions is to copy one from a pre-existing class and adapt it to your case.


It is crucial to add an informative docstring to new bij.Bijector and params.Parameters classes. This docstring should detail what the class does, its functional form, the meaning of all input arguments and returned values, and references to any relevant literature.

References should link to their citation in the bibliography, for example, with This means you may need to add additional citations to the website with your Bijector or Parameters implementation.

Be sure to test the formatting of the docstring in the docs using the workflow detailed here.