Skip to content

Commit

Permalink
Fix multiscale core to not require class conditional (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Li <[email protected]>
  • Loading branch information
adam2392 authored Aug 25, 2024
1 parent 848277e commit b878a7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions normflows/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,12 +585,12 @@ def sample(self, num_samples=1, y=None, temperature=None):
self.reset_temperature()
return z, log_q

def log_prob(self, x, y):
def log_prob(self, x, y=None):
"""Get log probability for batch
Args:
x: Batch
y: Classes of x
y: Classes of x. Must be passed in if `class_cond` is True.
Returns:
log probability
Expand Down

0 comments on commit b878a7a

Please sign in to comment.