Skip to content
Snippets Groups Projects
Commit a97e5ef3 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 120b591c
Branches
No related tags found
No related merge requests found
...@@ -250,7 +250,6 @@ class CloudHeightNN: ...@@ -250,7 +250,6 @@ class CloudHeightNN:
tf.debugging.set_log_device_placement(LOG_DEVICE_PLACEMENT) tf.debugging.set_log_device_placement(LOG_DEVICE_PLACEMENT)
gpus = tf.config.experimental.list_physical_devices('GPU') gpus = tf.config.experimental.list_physical_devices('GPU')
print(gpus)
if gpus: if gpus:
try: try:
# Currently, memory growth needs to be the same across GPUs # Currently, memory growth needs to be the same across GPUs
...@@ -845,7 +844,7 @@ class CloudHeightNN: ...@@ -845,7 +844,7 @@ class CloudHeightNN:
def run(self, matchup_dict, train_dict=None, valid_dict=None): def run(self, matchup_dict, train_dict=None, valid_dict=None):
#with self.strategy.scope(): #with self.strategy.scope():
with tf.device('/physical_device:GPU:2'): with tf.device('/device:GPU:'+self.gpu_device):
self.setup_pipeline(matchup_dict, train_dict=train_dict, valid_test_dict=valid_dict) self.setup_pipeline(matchup_dict, train_dict=train_dict, valid_test_dict=valid_dict)
self.build_model() self.build_model()
self.build_training() self.build_training()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment