diff --git a/mhcflurry/class1_neural_network.py b/mhcflurry/class1_neural_network.py index 1ebf7230e6a2b146f6345c77c7bf81f9b61866a9..44f34d4f54fcffb6640f3cca3c500fb07c79facf 100644 --- a/mhcflurry/class1_neural_network.py +++ b/mhcflurry/class1_neural_network.py @@ -20,9 +20,9 @@ from .data_dependent_weights_initialization import lsuv_init DEFAULT_PREDICT_BATCH_SIZE = 4096 if os.environ.get("MHCFLURRY_DEFAULT_PREDICT_BATCH_SIZE"): - DEFAULT_PREDICT_BATCH_SIZE = os.environ[ + DEFAULT_PREDICT_BATCH_SIZE = int(os.environ[ "MHCFLURRY_DEFAULT_PREDICT_BATCH_SIZE" - ] + ]) logging.info( "Configured default predict batch size: %d" % DEFAULT_PREDICT_BATCH_SIZE)