Skip to content

Commit 5e2db2c

Browse files
committed
add a note: please use only 1 gpu to run LSTM, pytorch/pytorch#21108
1 parent c978a7c commit 5e2db2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/yews/models/polarity.py

+2
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ def polarity_v2(pretrained=False, progress=True, **kwargs):
212212
model.load_state_dict(state_dict)
213213
return model
214214

215+
216+
# note: please use only 1 gpu to run LSTM, https://github.com/pytorch/pytorch/issues/21108
215217
class PolarityLSTM(nn.Module):
216218
r"""a LSTM neural network
217219
@author: Chujie Chen

0 commit comments

Comments
 (0)