Skip to content

Commit

Permalink
Merge pull request #21 from jradrion/dnn_fix
Browse files Browse the repository at this point in the history
fixed dnn error in predict
  • Loading branch information
jradrion authored May 27, 2020
2 parents 071d6c0 + bbb94c8 commit a3dd5df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ReLERNN/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,14 @@ def load_and_predictVCF(VCFGenerator,

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

## The following code block appears necessary for running with tf2 and cudnn
from tensorflow.compat.v1 import ConfigProto
from tensorflow.compat.v1 import Session
config = ConfigProto()
config.gpu_options.allow_growth = True
Session(config=config)
###

# load json and create model
if(network != None):
jsonFILE = open(network[0],"r")
Expand Down

0 comments on commit a3dd5df

Please sign in to comment.