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

snapshot...

parent d7820e3d
No related branches found
No related tags found
No related merge requests found
...@@ -669,7 +669,7 @@ class CloudHeightNN: ...@@ -669,7 +669,7 @@ class CloudHeightNN:
with tf.GradientTape() as tape: with tf.GradientTape() as tape:
pred = self.model(inputs, training=True) pred = self.model(inputs, training=True)
loss = self.loss(labels, pred) loss = self.loss(labels, pred)
loss = tf.nn.compute_average_loss(loss, global_batch_size=GLOBAL_BATCH_SIZE) loss = tf.nn.compute_average_loss(loss, global_batch_size=BATCH_SIZE)
total_loss = loss total_loss = loss
if len(self.model.losses) > 0: if len(self.model.losses) > 0:
reg_loss = tf.math.add_n(self.model.losses) reg_loss = tf.math.add_n(self.model.losses)
......
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