ValueError: No gradients provided for any variable when defining custom loss function

前端 未结 0 1123
庸人自扰
庸人自扰 2020-11-27 18:48

underneeth you can find my custom loss function.

def custom_loss_function(y_true, y_pred):
  
  y_pred_bool = tf.math.less_equal(y_pred, tf.constant(0.5))
  y         


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