Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

converting target labels to soft labels #2

Open
bigpigboomboomboom opened this issue Apr 1, 2023 · 0 comments
Open

converting target labels to soft labels #2

bigpigboomboomboom opened this issue Apr 1, 2023 · 0 comments

Comments

@bigpigboomboomboom
Copy link

the code :
#converting target labels to soft labels
for data in train_loader:
input, label = data[0].to(device),data[1].to(device)
softlabel = F.log_softmax(modelF(input),dim=1)
data[1] = softlabel
it seem does not convert target labels to soft labels , the label doesn't change in the code that follows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant