Skip to content

Commit

Permalink
apply Black 2024 style in fbcode (8/16)
Browse files Browse the repository at this point in the history
Summary:
Formats the covered files with pyfmt.

paintitblack

Reviewed By: aleivag

Differential Revision: D54447737

fbshipit-source-id: 6c05d7941c6b4f1787b8da6cf810693f48a96c4e
  • Loading branch information
amyreese authored and facebook-github-bot committed Mar 3, 2024
1 parent 2e773f2 commit 48e7233
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions flowtorch/bijectors/exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Exp(Fixed):
r"""
Elementwise bijector via the mapping :math:`y = \exp(x)`.
"""

codomain = constraints.positive

def _forward(
Expand Down
1 change: 1 addition & 0 deletions flowtorch/bijectors/power.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Power(Fixed):
r"""
Elementwise bijector via the mapping :math:`y = x^{\text{exponent}}`.
"""

domain = constraints.positive
codomain = constraints.positive

Expand Down
1 change: 1 addition & 0 deletions flowtorch/bijectors/softplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class Softplus(Fixed):
r"""
Elementwise bijector via the mapping :math:`\text{Softplus}(x) = \log(1 + \exp(x))`.
"""

codomain = constraints.positive

def _forward(
Expand Down
1 change: 1 addition & 0 deletions flowtorch/bijectors/tanh.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class Tanh(Fixed):
r"""
Transform via the mapping :math:`y = \tanh(x)`.
"""

codomain = constraints.interval(-1.0, 1.0)

def _forward(
Expand Down

0 comments on commit 48e7233

Please sign in to comment.