Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fehiepsi committed May 3, 2024
1 parent 63d94b1 commit 96044ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coix/loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def elbo_loss(q_trace, p_trace, incoming_log_weight, incremental_log_weight):

def fkl_loss(q_trace, p_trace, incoming_log_weight, incremental_log_weight):
"""Forward KL objective. Here we do not optimize p."""
del p_trace
batch_ndims = incoming_log_weight.ndim
q_log_probs = {
name: util.get_site_log_prob(site) for name, site in q_trace.items()
Expand Down

0 comments on commit 96044ec

Please sign in to comment.