I’m unsure if I misunderstand the question, but since domain_loss.backward()
will only be called if label == 1
, it won’t have any effect on the feature_extractor
in other cases.Let me know, if I misunderstood the question.
1 Like