Hi@Deepanshu,
Yes, you can use tanh instead of sigmoid function. It depends on your use case. If you want to find output between 0 to 1 then we use sigmoid function. If you want to find output between -1 to 1 then we use tanh function. Tanh function is just a rescaled version of the logistic sigmoid function.