-
Notifications
You must be signed in to change notification settings < 8000 /li> - Fork 74.7k
TF code crashes python kernel #449
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
Comments
Nice catch! Yes, that is a bad bug. |
I have this fixed at the kernel level, so it won't crash anymore. However, I could also fix it at the shape inference level so it throws a Python exception at graph construction time. To do this, I'd need to make @vrv: Do you think that's wise? I'd be a bit worried that negative dimensions are used somewhere, but it's currently a bit inconsistent that C++ |
C++ part in review. |
I'm not sure yet if its wise -- the C++ TensorShape class thinks about shapes more concretely: it doesn't support unspecified dimensions / -1 / shape inference, etc. I think when we push shape inference down into the C++ code, we'll likely have a C++ class that more closely represents what the python TensorShape class does. |
Cool, I'm happy to leave it the way it is now that the C++ is fixed. |
Change 109738410 Don't crash if an attribute contains an invalid shape Using GetAttr to retrieve a TensorShape caused a process crash if the shape contained negative entries or was too large. Instead, produce useful error messages (and Python exceptions). Fixes tensorflow/tensorflow#449. Change 109737915 TensorFlow: fix build failures and some warnings when built with clang on OS X. Change 109737559 Fix bad paragraphing Change 109735757 Fix OSX installation instructions. Change 109733797 Adds buttons to toggle the display of all runs. Base CL: 109739474
Fix signature change of resize_images()
try using numpy befor importing tensorflow or keras |
The following piece of code:
crashes the Python kernel. I realize it's not right (for one thing I'm not feeding it a
feed_dict
), but it should give an error and not crash the kernel.The text was updated successfully, but these errors were encountered: