Skip to content

Commit

Permalink
Merge pull request inspirehep#5 from michamos/no-cuda
Browse files Browse the repository at this point in the history
config: don't use CUDA by default
  • Loading branch information
michamos authored Oct 24, 2018
2 parents 661cfa3 + 3882ae9 commit 3c9f6b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion inspire_classifier/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
CLASSIFIER_CLASSIFIER_CYCLE_LENGTH = 14
CLASSIFIER_LANGUAGE_MODEL_BATCH_SIZE = 32
CLASSIFIER_CLASSIFIER_BATCH_SIZE = 10
CLASSIFIER_CUDA_DEVICE_ID = 0
CLASSIFIER_CUDA_DEVICE_ID = -1 # set to 0 to use a GPU

CLASSIFIER_DATA_PATH = 'data'
CLASSIFIER_LANGUAGE_MODEL_PATH = 'models/language_model'
Expand Down
1 change: 0 additions & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def app():
app.config['CLASSIFIER_CLASSIFIER_CYCLE_LENGTH'] = 1
app.config['CLASSIFIER_LANGUAGE_MODEL_BATCH_SIZE'] = 10
app.config['CLASSIFIER_CLASSIFIER_BATCH_SIZE'] = 10
app.config['CLASSIFIER_CUDA_DEVICE_ID'] = -1
app.config['CLASSIFIER_VALIDATION_DATA_FRACTION'] = 0.2
yield app

Expand Down

0 comments on commit 3c9f6b0

Please sign in to comment.