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

snapshot...

parent 43c2c3bb
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,6 @@ LOG_DEVICE_PLACEMENT = False
CACHE_DATA_IN_MEM = True
CACHE_GFS = True
DISK_CACHE = True
PROC_BATCH_SIZE = 40
PROC_BATCH_BUFFER_SIZE = 50000
......@@ -242,6 +241,8 @@ class CloudHeightNN:
self.inputs.append(self.X_prof)
self.inputs.append(self.X_sfc)
self.DISK_CACHE = True
if datapath is not None:
self.DISK_CACHE = False
f = open(datapath, 'rb')
......@@ -800,7 +801,7 @@ class CloudHeightNN:
print('loss, acc: ', self.test_loss.result(), self.test_accuracy.result())
ckpt_manager.save()
if DISK_CACHE and epoch == 0:
if self.DISK_CACHE and epoch == 0:
f = open(cachepath, 'wb')
pickle.dump(self.in_mem_data_cache, f)
f.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment