mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-25 10:32:59 +00:00
this iss ome serious debugging.
This commit will produce an extremely large volume of output.
This commit is contained in:
parent
09f81b0746
commit
f6feb125e3
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class LossCrossentropy(tf.keras.losses.Loss):
|
||||||
def call(self, y_true, y_pred):
|
def call(self, y_true, y_pred):
|
||||||
result = tf.keras.metrics.categorical_crossentropy(y_true, y_pred)
|
result = tf.keras.metrics.categorical_crossentropy(y_true, y_pred)
|
||||||
result_reduce = tf.math.reduce_sum(result)
|
result_reduce = tf.math.reduce_sum(result)
|
||||||
tf.print("DEBUG:TFPRINT:loss BEFORE_REDUCE", result, "AFTER_REDUCE", result_reduce)
|
tf.print("DEBUG:TFPRINT:loss LABEL", y_true, "PREDICT", y_pred, "BEFORE_REDUCE", result.shape, result, "AFTER_REDUCE", result_reduce.shape, result_reduce)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def get_config(self):
|
def get_config(self):
|
||||||
|
|
Loading…
Reference in a new issue