-
Notifications
You must be signed in to change notification settings - Fork 323
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
Calculate the ACC error during train the model #206
Comments
Hello, Thanks for the issue, we don't see this problem in our env, could you please provide your paddle version ? for batch_id, data in enumerate(dataloader):
# get data
images = data[0]
label = data[1]
# add data conversion to int64
label = label.astype('int64') P.S., |
Hi xperzy, appdirs 1.4.4 P.S., |
@VivizSun Is your problem sovled by using : label = label.astype('int64') ? |
@xperzy Yes, thank you very much. |
When I am training the model, there is an error in calculating ACC.
Could you provide a way for me to solve it?
Error message:Tensor holds the wrong type, it holds int, but desires to be int64_t.

pred and label type


The text was updated successfully, but these errors were encountered: