Error in model.fit() when using custom loss function

后端 未结 0 1212
南笙
南笙 2020-12-11 07:56

I have defined a custom loss function for my model.

def get_loss(y_hat, y):
loss = tf.keras.losses.BinaryCrossentropy(y_hat,y)  # cross entropy (but no logits         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题