agrija9 / Deep-Unsupervised-Domain-Adaptation

Pytorch implementation of four neural network based domain adaptation techniques: DeepCORAL, DDC, CDAN and CDAN+E. Evaluated on benchmark dataset Office31.
80 stars 22 forks source link

Hello, a question about the CDAN function in loss.py #7

Open BaeHann opened 1 year ago

BaeHann commented 1 year ago

Hello! Within the CDAN function, entropy.detach() was not found. Does that mean the entropy will be affected (as well as the classification result and relevant parameters in model) when loss.backward() was executed?

BaeHann commented 1 year ago

I am not that proficient in English. If there is anything grammatically wrong or incomprehensible, please be so kind as to inform me.