TypeError: only integer tensors of a single element can be converted to an index #506
Unanswered
lakiet1609
asked this question in
Q&A
Replies: 1 comment
-
Hi @lakiet1609 , Did you check the value of It may be because it's not a valid index. I'd step through your code to make sure the inputs and outputs are in the right data format. E.g. it looks like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why after i load this code:
Then i use pred_and_plot_image.
It has the type error like the titile and it happens the error at this line of pred_and_plot_image
function:
Beta Was this translation helpful? Give feedback.
All reactions