Skip to content

njustczr/BiasLoss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

BiasLoss

Bias Loss for Mobile Neural Networks

from bias_loss import BiasLoss
import torch
# batch_size=3 num_classes=5
inputs = torch.randn(3,5,requires_grad=True)
targets = torch.randint(0,5,(3))
various = torch.randn(3,1)
b_loss = BiasLoss(0.3,0.3)
b_loss(inputs, targets, various)

About

Bias Loss for Mobile Neural Networks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages