1 | out[out > 0] = 1 |
As your function’s derivative is 0 everywhere (except for the input 0, where it isn’t smooth), you can also implement it as a function:
热爱平淡,向往未知
1 | out[out > 0] = 1 |
As your function’s derivative is 0 everywhere (except for the input 0, where it isn’t smooth), you can also implement it as a function:
微信支付