Skip to content

Commit

Permalink
[doc] add docstr
Browse files Browse the repository at this point in the history
  • Loading branch information
ver217 committed Feb 21, 2025
1 parent 4a560d5 commit bec8932
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def generate(self, input_ids: torch.Tensor, attention_mask: torch.Tensor, **kwar
- attention_mask (torch.Tensor): shape [B, S+N]
- action_log_probs (torch.Tensor): shape [B, N]
- action_mask (torch.Tensor): shape [B, N]
where N is the number of generated tokens.
where N is the number of generated tokens. And all tensors should be on CUDA.
"""

def load_state_dict(self, state_dict: Dict[str, torch.Tensor]) -> None:
Expand Down

0 comments on commit bec8932

Please sign in to comment.