Commit aed0528c authored by ADRIAN  AYUSO MUNOZ's avatar ADRIAN AYUSO MUNOZ

Auto Selection of Device

parent aa6f5904
......@@ -20,7 +20,7 @@ import warnings
warnings.filterwarnings("ignore")
edges = [('phenotype', 'dis_dru_the', 'drug')]
device = 'cuda'
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
# ---------------------------
# FUNCTIONS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment