Skip to content

Commit 638306b

Browse files
author
Julian Kates-Harbeck
committed
added support for torch model
1 parent c2e2ac6 commit 638306b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/learn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from plasma.preprocessor.preprocess import Preprocessor, guarantee_preprocessed
3434
from plasma.models.loader import Loader
3535

36-
if conf['model']['torch']:
36+
if 'torch' in conf['model'].keys() and conf['model']['torch']:
3737
from plasma.models.torch_runner import train, make_predictions_and_evaluate_gpu
3838
elif conf['model']['shallow']:
3939
from plasma.models.shallow_runner import train, make_predictions_and_evaluate_gpu

0 commit comments

Comments
 (0)