From f6feb125e3c5040f355ad793c4ed091f63f50890 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 28 Nov 2022 18:57:41 +0000 Subject: [PATCH] this iss ome serious debugging. This commit will produce an extremely large volume of output. --- aimodel/src/lib/ai/components/LossCrossentropy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aimodel/src/lib/ai/components/LossCrossentropy.py b/aimodel/src/lib/ai/components/LossCrossentropy.py index ef75b15..46a6807 100644 --- a/aimodel/src/lib/ai/components/LossCrossentropy.py +++ b/aimodel/src/lib/ai/components/LossCrossentropy.py @@ -17,7 +17,7 @@ class LossCrossentropy(tf.keras.losses.Loss): def call(self, y_true, y_pred): result = tf.keras.metrics.categorical_crossentropy(y_true, y_pred) 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 def get_config(self):