I use BiLSTM so I execute the loop twice. One is the forward process and the other is the backward process. However, the parameters are different, like f_forward and f_backward.
Maybe there is a better way to write the code that I don’t know cause I’m a beginner in PyTorch.
Thanks a lot for your response.