Based on the error message it seems that you are trying to call log_softmax on the LSTMClassifier directly:
model = LSTMClassifier(args)
model.log_softmax

which won’t work.
In your code snippet you are however using F.log_softmax, so could you check, if you’ve replaced import torch.nn.functional as F with F = model?