I found a solution to my problem.
Please check  Why nn.Sequential can’t handle multiple input? 882 and allow nn.Sequential to take multiple inputs 919.
I defined mySequential class and changed nn.Sequential to mySequential.
Although I don’t know exactly how it works, it makes nn.Sequential feed the multiple inputs to a network if the type of inputs is a tuple.