I am trying to so something similar to code below:
class MyClass(nn.Module):
def __init__(self):
	for i in range(10):
		self.MySubClassArray.append(MySubClass())

def forward(self, X_Array):
            #X_Array is a list of 10 elements,
	Y_Array = map(lambda MySubClass, x: MySubClass(x), self.MySubClassArray, X_Array)
	return Y_Array

In forward() call, all 10 calls to MySubClass() are executed sequentially (as far as I know, correct me here if I am wrong). However can we make it a parallel execution? It should be possible as each instance of MySubClass() is independent and different than the other.