mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-12-22 22:25:01 +00:00
losscrossentropy: return the reduced value * facepalm *
This commit is contained in:
parent
ff65393e78
commit
01101ad30b
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class LossCrossentropy(tf.keras.losses.Loss):
|
|||
result_reduce = tf.math.reduce_sum(result)
|
||||
label_nowater = tf.math.reduce_sum(tf.argmax(y_true, axis=-1))
|
||||
# tf.print("DEBUG:TFPRINT:loss LABEL", y_true.shape, y_true, "LABEL_ARGMAX_COUNT_AXIS0", label_nowater, "PREDICT", y_pred.shape, y_pred, "BEFORE_REDUCE", result.shape, result, "AFTER_REDUCE", result_reduce.shape, result_reduce)
|
||||
return result
|
||||
return result_reduce
|
||||
|
||||
def get_config(self):
|
||||
config = super(LossCrossentropy, self).get_config()
|
||||
|
|
Loading…
Reference in a new issue