Customizable Loss Module #285
-
Hi, I am trying to customize a new form of KD loss function. I had been referred to this link as an example, but I still not there yet. I have used to change the locally installed torchditill instead of its PyPI package version. It is little bit changing to me to understand how to implement. I took KDloss as a reference, where I registered to @register_single_loss. This is my implementation:
This is the error message;
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I need the version of torchdistill you are using to answer the question. If you would not do so, I cannot spend any more of my time for your questions. |
Beta Was this translation helpful? Give feedback.
-
If you're using torchdistill<=0.3.3, the first line should be from torchdistill.losses.single import register_single_loss See https://github.com/yoshitomo-matsubara/torchdistill/blob/v0.3.3/torchdistill/losses/single.py |
Beta Was this translation helpful? Give feedback.
If you're using torchdistill<=0.3.3, the first line should be
See https://github.com/yoshitomo-matsubara/torchdistill/blob/v0.3.3/torchdistill/losses/single.py