Loss function gives NaNs in tensorboard histogram

前端 未结 0 1118
灰色年华
灰色年华 2021-02-04 16:21

I need to use this loss function

 def loss(x,y,alpha,beta,eps=1e-6,name=None):
     loss = alpha*tf.math.log((0.5*(1+tf.math.exp(beta*(x-y)+eps)))**(2/beta))-(x-y         


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