It is possible, using the _VF.lstm() function found here: https://github.com/pytorch/pytorch/blob/master/torch/nn/modules/rnn.py 160
It will run faster than a manual implementation and be compatible with additional PyTorch features such as dropout.
Model parameters can be passed in using [tensor for tensor in ordereddict.values()] provided the OrderedDict’s keys are ordered as those of the standard pytorch lstm.state_dict().