For example, there is two modules in my model:
class Net(nn.Module):
  def __init__(self):
    self.module1 = Spatial_Path()
    self.module2 = Context_Path()
  def forward(self, input_):
    output1 = self.module1(input_)
    output2 = self.module2(input_)
    reuturn output1 + output2

Now I would like to run self.module1 and self.module2 concurrency to speed up. How?