Skip to content
Snippets Groups Projects
Commit c76c3e52 authored by piotrmp's avatar piotrmp
Browse files

Bugfix.

parent a5bf04d9
No related branches found
No related tags found
1 merge request!2Multiword generation
...@@ -202,6 +202,7 @@ class Lambo(): ...@@ -202,6 +202,7 @@ class Lambo():
with torch.no_grad(): with torch.no_grad():
X = [x.to(self.device) for x in X] X = [x.to(self.device) for x in X]
Y = self.model(*X) Y = self.model(*X)
Y = Y.to('cpu')
# perform postprocessing # perform postprocessing
decisions = self.model.postprocessing(Y, text) decisions = self.model.postprocessing(Y, text)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment