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

some questions of lr.find() #420

Closed
EchizenMike opened this issue Mar 7, 2022 · 1 comment
Closed

some questions of lr.find() #420

EchizenMike opened this issue Mar 7, 2022 · 1 comment
Labels
under review Waiting for clarification, confirmation, etc

Comments

@EchizenMike
Copy link

In 01a_MultiClass_MultiLabel_TSClassification.ipynb
There is an error:

ValueError Traceback (most recent call last)
in ()
1 learn = ts_learner(dls, InceptionTimePlus, metrics=accuracy_multi)
----> 2 learn.lr_find()
3 # dls

19 frames
/usr/local/lib/python3.7/dist-packages/torch/nn/functional.py in binary_cross_entropy_with_logits(input, target, weight, size_average, reduce, reduction, pos_weight)
2978
2979 if not (target.size() == input.size()):
-> 2980 raise ValueError("Target size ({}) must be the same as input size ({})".format(target.size(), input.size()))
2981
2982 return torch.binary_cross_entropy_with_logits(input, target, weight, pos_weight, reduction_enum)

ValueError: Target size (torch.Size([384])) must be the same as input size (torch.Size([2304]))

How can I solve it?

@oguiza oguiza added the under review Waiting for clarification, confirmation, etc label Mar 17, 2022
@oguiza
Copy link
Contributor

oguiza commented Dec 10, 2022

This issue has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
under review Waiting for clarification, confirmation, etc
Projects
None yet
Development

No branches or pull requests

2 participants