pytorch-adda icon indicating copy to clipboard operation
pytorch-adda copied to clipboard

Criterion problem

Open chihhuiho opened this issue 6 years ago • 2 comments

Thanks for sharing the code. I have a question about the line 25 in adapt.py (criterion = nn.CrossEntropyLoss() ). Since nn.LogSoftmax() is added in discriminator.py (line 21). Is it correct to use CrossEntropyLoss as criterion ? Or maybe I miss something? Thanks in advance.

chihhuiho avatar Aug 24 '18 21:08 chihhuiho

The same question here, I also tried NLLLoss()

jinfengr avatar Sep 11 '18 01:09 jinfengr

The same question here, I also tried NLLLoss()

How was the result?

TuGang-Git avatar Dec 08 '21 06:12 TuGang-Git