-
Notifications
You must be signed in to change notification settings - Fork 79
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
pos_weight should be a Tensor? #4
Comments
I fix it by replacing this: Line 48 in 22c9edf
to this:
|
It works. but I found that length of pos_weight is 1. |
Doc says: where c is the class number (c>1 for multi-label binary classification, c=1 for single-label binary classification) |
|
When I train with Cora dataset, I get the following error in
binary_cross_entropy_with_logits
. Shouldn'tpos_weight
be a Tensor? Thanks!The text was updated successfully, but these errors were encountered: