Thank you! We'll be in touch ASAP.
Something went wrong, please try again or contact us directly at contact@dagshub.com
Deci-AI:master
deci-ai:feature/SG-281-add_kd_notebook
import torch from torch.nn import BCEWithLogitsLoss class BCE(BCEWithLogitsLoss): """ Binary Cross Entropy Loss """ def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.Tensor: """ @param input: Network's raw output shaped (N,1,*) @param target: Ground truth shaped (N,*) """ return super(BCE, self).forward(input.squeeze(1), target.float())
Press p or to see the previous file or, n or to see the next file