Defining custom activation function

Maybe this can help!