ssalb commited on
Commit
b990ec8
·
verified ·
1 Parent(s): dd2160b

Update story_beam_search/beam_search.py

Browse files
Files changed (1) hide show
  1. story_beam_search/beam_search.py +1 -1
story_beam_search/beam_search.py CHANGED
@@ -93,7 +93,7 @@ class BeamSearchGenerator:
93
  top_k=self.config.top_k,
94
  top_p=self.config.top_p,
95
  do_sample=True,
96
- )
97
 
98
  stories = []
99
  for output in outputs:
 
93
  top_k=self.config.top_k,
94
  top_p=self.config.top_p,
95
  do_sample=True,
96
+ ).to(self.device)
97
 
98
  stories = []
99
  for output in outputs: