Skip to content

Commit

Permalink
leave bnaf bijection to throw error when sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
danielward27 committed Apr 9, 2022
1 parent 256443d commit c6483f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions flowjax/bijections/abc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from abc import ABC, abstractmethod
import jax.numpy as jnp


class Bijection(ABC):
"""Basic bijection class. All bijections should support conditioning variables
(even if ignored)."""
Expand Down
6 changes: 0 additions & 6 deletions flowjax/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,3 @@ def __init__(
)
bijection = Chain(bijections)
super().__init__(bijection, target_dim, base_log_prob, base_sample)

def sample(self, *args, **kwargs):
raise NotImplementedError(
"Sampling this flow would require numerical inversion of the bijection"
)

0 comments on commit c6483f9

Please sign in to comment.