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

snapshot...

parent fa5b14a3
No related branches found
No related tags found
No related merge requests found
...@@ -764,7 +764,7 @@ class CloudHeightNN: ...@@ -764,7 +764,7 @@ class CloudHeightNN:
for abi, temp, lbfp, sfc in self.train_dataset: for abi, temp, lbfp, sfc in self.train_dataset:
trn_ds = tf.data.Dataset.from_tensor_slices((abi, temp, lbfp, sfc)) trn_ds = tf.data.Dataset.from_tensor_slices((abi, temp, lbfp, sfc))
trn_ds = trn_ds.batch(GLOBAL_BATCH_SIZE) trn_ds = trn_ds.batch(BATCH_SIZE)
trn_dist_ds = self.strategy.experimental_distribute_dataset(trn_ds) trn_dist_ds = self.strategy.experimental_distribute_dataset(trn_ds)
for mini_batch in trn_dist_ds: for mini_batch in trn_dist_ds:
if self.learningRateSchedule is not None: if self.learningRateSchedule is not None:
...@@ -782,7 +782,7 @@ class CloudHeightNN: ...@@ -782,7 +782,7 @@ class CloudHeightNN:
for abi_tst, temp_tst, lbfp_tst, sfc_tst in self.test_dataset: for abi_tst, temp_tst, lbfp_tst, sfc_tst in self.test_dataset:
tst_ds = tf.data.Dataset.from_tensor_slices((abi_tst, temp_tst, lbfp_tst, sfc_tst)) tst_ds = tf.data.Dataset.from_tensor_slices((abi_tst, temp_tst, lbfp_tst, sfc_tst))
tst_ds = tst_ds.batch(GLOBAL_BATCH_SIZE) tst_ds = tst_ds.batch(BATCH_SIZE)
tst_dist_ds = self.strategy.experimental_distribute_dataset(tst_ds) tst_dist_ds = self.strategy.experimental_distribute_dataset(tst_ds)
for mini_batch_test in tst_dist_ds: for mini_batch_test in tst_dist_ds:
self.distributed_test_step(mini_batch_test) self.distributed_test_step(mini_batch_test)
...@@ -810,7 +810,7 @@ class CloudHeightNN: ...@@ -810,7 +810,7 @@ class CloudHeightNN:
self.test_accuracy.reset_states() self.test_accuracy.reset_states()
for abi, temp, lbfp, sfc in self.test_dataset: for abi, temp, lbfp, sfc in self.test_dataset:
ds = tf.data.Dataset.from_tensor_slices((abi, temp, lbfp, sfc)) ds = tf.data.Dataset.from_tensor_slices((abi, temp, lbfp, sfc))
ds = ds.batch(GLOBAL_BATCH_SIZE) ds = ds.batch(BATCH_SIZE)
tst_dist_ds = self.strategy.experimental_distribute_dataset(ds) tst_dist_ds = self.strategy.experimental_distribute_dataset(ds)
for mini_batch_test in tst_dist_ds: for mini_batch_test in tst_dist_ds:
self.distributed_test_step(mini_batch_test) self.distributed_test_step(mini_batch_test)
......
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