TypeError: ufunc 'isfinite' not supported for the input types #17
-
Computer Vision and Convolutional Neural Networks in TensorFlowI was working on the video lecture named Becoming One With Data Part 2 when we create a function called I got a weird error attached the picture below, The fishy thing is the expected output is returned but yet the error stays. I even copy-pasted and ran just that code snippet from the course notebook and still getting the same error. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Well nvm 😅 commenting out the SolutionTo turn off the axes, |
Beta Was this translation helpful? Give feedback.
-
Hmmm. That is strange, I haven't seen that before! Glad you got it fixed though. I just checked the matplotlib docs, looks like |
Beta Was this translation helpful? Give feedback.
Well nvm 😅 commenting out the
plt.axes('off')
worked, but weird Idk why this happened.Solution
To turn off the axes,
plt.axis('off);
doesn't throw an error and everything works smooth!