Hello all
I am beginner in deep learning who recently researching using keras and pytorch. I want to make custom activation function that based on sigmoid with a little change like below.
new sigmoid = (1/1+exp(-x/a))
what i do in keras is like below
#CUSTOM TEMP SIGMOID
def tempsigmoid(x):
    nd=3.0 
    temp=nd/np.log(9.0) 
    return K.sigmoid(x/(temp)) 

i tried by making def class in pytorch but not succeed, how could i custom sigmoid in pytorch?