We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I type python train.py, I faced the error, as following: RuntimeError: Boolean value of Tensor with more than one value is ambiguous.
My folders is order, as following: in the new_data:
I aslo google but I can't solve it. Please help me. thank you @nikhilroxtomar.
The text was updated successfully, but these errors were encountered:
I think you should check the data type of the m_pred and m variables. Do they match the required data type required by the loss function?
m_pred
m
Sorry, something went wrong.
Thank you @nikhilroxtomar. I am gona to check it.
Thank you @nikhilroxtomar
改为 nn.BCEWithLogitsLoss()(m_pred, m)
Thank you very much @auger1 and @nikhilroxtomar.
No branches or pull requests
When I type python train.py, I faced the error, as following:
RuntimeError: Boolean value of Tensor with more than one value is ambiguous.
My folders is order, as following:
in the new_data:
I aslo google but I can't solve it. Please help me. thank you @nikhilroxtomar.
The text was updated successfully, but these errors were encountered: