Hi, Usama,
Thank you.
is this right?
def forward(self, x1,x2):
h_shared1 = self.sharedlayer(x1)

h_shared2 = self.sharedlayer(x2)

out1 = self.tower1(h_shared1)

out2 = self.tower2(h_shared2)

return out1, out2