Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@autogluon_losses
def MixSoftmaxCrossEntropyLoss(**kwargs):
pass
@autogluon_losses
def SoftmaxCrossEntropyLoss(**kwargs):
pass
@autogluon_losses
def CTCLoss(**kwargs):
pass
@autogluon_losses
def SigmoidBinaryCrossEntropyLoss(**kwargs):
pass
@autogluon_losses
def TripletLoss(**kwargs):
pass
@autogluon_losses
def L1Loss(**kwargs):
pass
@autogluon_losses
def get_loss(name, **kwargs):
"""Returns a loss with search space by name
Args:
name : str
Name of the loss.
"""
if name not in losses and name.lower() not in losses:
err_str = '"%s" is not among the following loss list:\n\t' % (name)
err_str += '%s' % ('\n\t'.join(sorted(losses.keys())))
raise ValueError(err_str)
loss = Loss(name)
return loss
@autogluon_losses
def CosineEmbeddingLoss(**kwargs):
pass
@autogluon_losses
def KLDivLoss(**kwargs):
pass
@autogluon_losses
def DistillationSoftmaxCrossEntropyLoss(**kwargs):
pass