I want to implement only a Gate similar to forget gate or output gate of LSTM cell. Mind it...!!!
I am not implementing the entire LSTM cell rather I have certain input and previous output and I want to pass them through a Gate with tanh or sigmoid as activation. Is there a way to do that in Keras or in Pytorch. Please suggest.