We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 071d6c0 + bbb94c8 commit a3dd5dfCopy full SHA for a3dd5df
ReLERNN/helpers.py
@@ -265,6 +265,14 @@ def load_and_predictVCF(VCFGenerator,
265
266
os.environ["CUDA_VISIBLE_DEVICES"] = str(gpuID)
267
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
+
276
# load json and create model
277
if(network != None):
278
jsonFILE = open(network[0],"r")
0 commit comments