-
Notifications
You must be signed in to change notification settings - Fork 536
System.Runtime.InteropServices.SEHException : External component has thrown an exception #485
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
I can’t tell from the limited information. It has nothing to do with TF.NET, because you use your own runner that is calling c_api directly. Unfortunately, it will be hard to debug. |
Yes, we are using c_api directly, is there any way to catch detailed exception? |
You can check the _status first. |
Thanks, let me have a try |
Seems to be an exception thrown from C++, likely to be TF's.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there, our team (ML.NET) is using tensorflow.NET and we are seeing below exception in some cases which is rare case and not easy to reproduce in local env:
Error Message:
System.Runtime.InteropServices.SEHException : External component has thrown an exception.
Stack Trace:
at Tensorflow.c_api.TF_SessionRun(IntPtr session, TF_Buffer* run_options, TF_Output[] inputs, IntPtr[] input_values, Int32 ninputs, TF_Output[] outputs, IntPtr[] output_values, Int32 noutputs, IntPtr[] target_opers, Int32 ntargets, IntPtr run_metadata, IntPtr status)
at Microsoft.ML.TensorFlow.TensorFlowUtils.Runner.Run() in D:\a\1\s\src\Microsoft.ML.TensorFlow\TensorflowUtils.cs:line 491
at ...
Code:
https://github.com/frank-dong-ms/machinelearning/blob/dd0faef7c6fd12b498ef9fb15ec8378650bc551b/src/Microsoft.ML.TensorFlow/TensorflowUtils.cs#L491
I'm wondering is there a way to get exception details like error message and call stack so we can investigate further?
The text was updated successfully, but these errors were encountered: