Skip to content

Commit f2e1ba5

Browse files
committed
fix gpu run
1 parent 34881ca commit f2e1ba5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

neural_ner/process_training.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
class Processor(object):
2121
def __init__(self, config, model_file_path):
2222
self.config = config
23-
24-
if torch.cuda.is_available():
25-
self.config.is_cuda = True
2623
self.vocab = Vocab(config)
2724
self.model = get_model(self.vocab, config, model_file_path)
2825

0 commit comments

Comments
 (0)