TensorFlow 2 custom loss: “No gradients provided for any variable” error

后端 未结 0 1917
再見小時候
再見小時候 2021-02-05 07:39

I trying to run my module with custom loss function Here is my loss function:

def softargmax(x, beta=1e10):
    x_range = tf.range(x.shape.as_list()[-1], dtype=x.         


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