Hello, akurniawan. I’m new to pytorch and I have the same question with you. May I ask if you have solved the problem?
I guess that in your code,
self.passage_bilstm(emb_passage)
self.question_bilstm(emb_question)
the python code is in sequentially but cause the pytorch is run from the graph, and in the compute graph the two layer is in parallel. So, although you write the code in sequence, but it will run in parallel actually. That’s my assumption. But I didn’t test it. Am’I right? Thank you !!!