LossCrossentropy: add kwargs

This commit is contained in:
Starbeamrainbowlabs 2022-11-29 15:40:35 +00:00
parent 838ff56a3b
commit 37f196a785
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -9,8 +9,8 @@ class LossCrossentropy(tf.keras.losses.Loss):
Args:
batch_size (integer): The batch size (currently unused).
"""
def __init__(self, batch_size):
super(LossCrossentropy, self).__init__()
def __init__(self, batch_size, **kwargs):
super(LossCrossentropy, self).__init__(**kwargs)
self.param_batch_size = batch_size