Skip to content

Commit

Permalink
Update tactic_decoder.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiyu Yang authored May 8, 2021
1 parent e4e5f10 commit 3dbb43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ASTactic/models/tactic_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ def beam_search(self, environment, local_context, goal):
node.expand(action)
new_beam.append(ast)
new_frontiers.append(stack)
new_log_likelihood.append(log_cond_prob)
new_log_likelihood.append(log_likelihood[idx] + log_cond_prob)
beam = new_beam
frontiers = new_frontiers
log_likelihood = new_log_likelihood
Expand Down

0 comments on commit 3dbb43e

Please sign in to comment.