You may define this activation function on your own. I think there is a great tutorial on pytorch website.
However, I think your function is not differentiable, so you might have to be careful on using this function.