Hi, anyone can help me ?
Can I write my code as the following
def forward(x, flag):
    x = self.shared_branch(x)
    if flag == 0:
        output = self.branch0(x)
    elif flag == 1:
        output = self.branch1(x)
    elif flag == 2:
        output = self.branch2(x)
    else:
        output = self.branch3(x)
    return output