@neural_computation<EOL><INDENT>def iftrain(self, then_branch, else_branch):<DEDENT>
return ifelse(self._training_flag, then_branch, else_branch, name="<STR_LIT>")<EOL>
Execute `then_branch` when training.