Skip to content

Commit

Permalink
BUGFIX: Temperature default parm
Browse files Browse the repository at this point in the history
  • Loading branch information
rloganiv committed Dec 8, 2019
1 parent 6c11685 commit 39303d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kglm/models/kglm_disc.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def sample(self,
metadata: Dict[str, Any],
alias_copy_inds: torch.Tensor,
shortlist: Dict[str, torch.Tensor] = None,
temperature: float,
temperature: float = 1.0,
**kwargs) -> Dict[str, Any]: # **kwargs intended to eat the other fields if they are provided.
"""
Sampling annotations for the generative model. Note that unlike forward, this function
Expand Down

0 comments on commit 39303d5

Please sign in to comment.