I just have a question, why did you use an additional log before the softmax function in st.py loss on one input but not the other?
def forward(self, out_s, out_t):
loss = F.kl_div(F.log_softmax(out_s/self.T, dim=1),
F.softmax(out_t/self.T, dim=1),
reduction='batchmean') * self.T * self.T
return loss
Hi,
I just have a question, why did you use an additional log before the softmax function in st.py loss on one input but not the other?