So, i want to make self.submodule1 to refer at same weights as self.submodule0
And both modules have save variable names.
How to perform it?
class SomeSubmodule(nn.Module):
	def __init__(self):
		super().__init__()
		self.layers = torch.nn.ModuleList([])
		for _ in range(5):
			self.layers.append(torch.nn.Linear(512, 512))

	def forward(self, x):
		for layer in self.layers:
			x = layer(x)
		return x

class AnotherSubmodule(nn.Module):
	def __init__(self):
		super().__init__()
		self.layers = torch.nn.ModuleList([])
		for _ in range(5):
			self.layers.append(torch.nn.Linear(512, 512))

	def forward(self, x):
		for layer in self.layers:
			x = layer(x)
		return x

class Net(nn.Module):
	def __init__(self):
		super().__init__()

		self.submodule0 = SomeSubmodule()
		self.submodule1 = AnotherSubmodule()

	def forward(self, x):
		# bla bla bla
		return x