Skip to content

Commit a3dd5df

Browse files
authored
Merge pull request #21 from jradrion/dnn_fix
fixed dnn error in predict
2 parents 071d6c0 + bbb94c8 commit a3dd5df

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ReLERNN/helpers.py

+8
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,14 @@ def load_and_predictVCF(VCFGenerator,
265265

266266
os.environ["CUDA_VISIBLE_DEVICES"] = str(gpuID)
267267

268+
## The following code block appears necessary for running with tf2 and cudnn
269+
from tensorflow.compat.v1 import ConfigProto
270+
from tensorflow.compat.v1 import Session
271+
config = ConfigProto()
272+
config.gpu_options.allow_growth = True
273+
Session(config=config)
274+
###
275+
268276
# load json and create model
269277
if(network != None):
270278
jsonFILE = open(network[0],"r")

0 commit comments

Comments
 (0)