Non-smooth and non-differentiable customized loss function tensorflow

前端 未结 3 751
别那么骄傲
别那么骄傲 2021-01-31 10:45
  1. In tensorflow, can you use non-smooth function as loss function, such as piece-wise (or with if-else)? If you cant, why you can use ReLU?

  2. In this link S

3条回答
  •  别那么骄傲
    2021-01-31 11:37

    As far as Question #3 of OP goes, you actually don't have to implement the gradient computations yourself. Tensorflow will do that for you, which is one of the things I love about it!

提交回复
热议问题