<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def forward(self, is_train=False):
 """Perform a forward pass on each executor."""

        for texec in self.train_execs:
            texec.forward(is_train=is_train)