From f89966926dbef289dfc05e9d0f7f256fafdaf990 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Fri, 1 Sep 2023 13:20:01 -0500
Subject: [PATCH] snapshot...

---
 modules/deeplearning/cloud_fraction_fcn_abi.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/deeplearning/cloud_fraction_fcn_abi.py b/modules/deeplearning/cloud_fraction_fcn_abi.py
index 9046bd58..3f86ac83 100644
--- a/modules/deeplearning/cloud_fraction_fcn_abi.py
+++ b/modules/deeplearning/cloud_fraction_fcn_abi.py
@@ -604,7 +604,7 @@ class SRCNN:
 
         step = 0
         total_time = 0
-        best_test_loss = np.finfo(dtype=np.float).max
+        best_test_loss = np.finfo(dtype=np.float64).max
 
         if EARLY_STOP:
             es = EarlyStop()
@@ -629,7 +629,7 @@ class SRCNN:
 
                         with self.writer_train.as_default():
                             tf.summary.scalar('loss_trn', loss.numpy(), step=step)
-                            tf.summary.scalar('learning_rate', self.optimizer._decayed_lr('float32').numpy(), step=step)
+                            tf.summary.scalar('learning_rate', self.optimizer.lr.numpy(), step=step)
                             tf.summary.scalar('num_train_steps', step, step=step)
                             tf.summary.scalar('num_epochs', epoch, step=step)
 
@@ -649,7 +649,7 @@ class SRCNN:
                             tf.summary.scalar('loss_val', self.test_loss.result(), step=step)
 
                         print('****** test loss, acc, lr: ', self.test_loss.result().numpy(), self.test_accuracy.result().numpy(),
-                              self.optimizer._decayed_lr('float32').numpy())
+                              self.optimizer.lr.numpy())
 
                     step += 1
                     print('train loss: ', loss.numpy())
-- 
GitLab