You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for developing GradCache and making it available for the community. It's been incredibly useful for my work.
Currently, GradCache supports loss functions that do not require label information, such as SimCLR. However, I would like to use GradCache with label-dependent loss functions like the Supervised Contrastive (SupCon) loss.
The current implementation of contrastive_loss in the README only supports inputs without labels. Here is a sample code snippet from the README for reference:
Could you provide guidance on how to incorporate label information in the contrastive_loss function with GradCache? Specifically, how can we adapt the current GradCache framework to support supervised loss functions like the SupCon loss?
The text was updated successfully, but these errors were encountered:
First of all, thank you for developing GradCache and making it available for the community. It's been incredibly useful for my work.
Currently, GradCache supports loss functions that do not require label information, such as SimCLR. However, I would like to use GradCache with label-dependent loss functions like the Supervised Contrastive (SupCon) loss.
The current implementation of
contrastive_loss
in the README only supports inputs without labels. Here is a sample code snippet from the README for reference:Could you provide guidance on how to incorporate label information in the
contrastive_loss
function with GradCache? Specifically, how can we adapt the current GradCache framework to support supervised loss functions like the SupCon loss?The text was updated successfully, but these errors were encountered: