You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an invalid op is registered, ensure that tf.load_op_library returns
a nice error rather than silently generating invalid python code.
Fixes:
- On linux, a fatal log that should be triggered in C++ seems to be ignored
causing the tf.load_op_library call to fail and exit.
We fix this by propagating the status from op registration to raise an
exception from python rather than print a fatal log.
The reason why the fatal log is being ignored on linux is unclear, my
theory is some sort of SWIG issue, but online research provided no results.
- Op registrations that fail are still added to the OpDef registration.
This is only an issue when the Fatal log is ignored, but we fix this
anyways.
Change: 127114085
0 commit comments