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

snapshot...

parent f036dfe6
Branches
No related tags found
No related merge requests found
...@@ -260,6 +260,8 @@ class CloudHeightNN: ...@@ -260,6 +260,8 @@ class CloudHeightNN:
# Memory growth must be set before GPUs have been initialized # Memory growth must be set before GPUs have been initialized
print(e) print(e)
self.strategy = tf.distribute.MirroredStrategy()
def get_in_mem_data_batch(self, time_keys): def get_in_mem_data_batch(self, time_keys):
images = [] images = []
vprof = [] vprof = []
...@@ -808,6 +810,7 @@ class CloudHeightNN: ...@@ -808,6 +810,7 @@ class CloudHeightNN:
self.writer_valid.close() self.writer_valid.close()
def build_model(self): def build_model(self):
with self.strategy.scope():
flat = self.build_cnn() flat = self.build_cnn()
flat_1d = self.build_1d_cnn() flat_1d = self.build_1d_cnn()
# flat_anc = self.build_anc_dnn() # flat_anc = self.build_anc_dnn()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment