You could just set up two separate forward functions for each dataset. For instance
`
def forwardA(self, x):
    x = self.base(x)
    clf_output = getattr(self, "fc0")(x)
    return clf_output

def forwardB(self, x):
    x = self.base(x)
    clf_output = getattr(self, "fc1")(x)
    return clf_output

`