
I have a small question about the above code.
The aim of the cross entropy is to make the two different distributions be similar with each other.
I understood the first CE loss but not the second CE loss, which confuses me a lot.
In line 218, the latter argument of CE should follow the former argument.
In this case is the purpose of CE loss to make the raw output of teacher model to be sharpened?

I have a small question about the above code.The aim of the cross entropy is to make the two different distributions be similar with each other.
I understood the first CE loss but not the second CE loss, which confuses me a lot.
In line 218, the latter argument of CE should follow the former argument.
In this case is the purpose of CE loss to make the raw output of teacher model to be sharpened?