-
Notifications
You must be signed in to change notification settings - Fork 1.9k
ONNX Transform Crashing or Freezing #1228
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
Could you give an update please? Is it actively worked on? |
@Zruty0 Jignesh is currently investigating this issue. |
To close this out, the crash was occurring at the Sonoma Tensor.CopyTo(List) function. Replacing it with a call to CopyTo(float []) has resolved the issue. The backend Sonoma code for these two functions is quite different, especially memory management. Arrays need to have memory pre-allocated, whereas Lists are appended onto one element at a time. Additionally, the CopyTo(float[]) function explicitly pins the destination memory using "fixed" statement before copying the contents, whereas the CopyTo(List) function is not using "fixed", and therefore not explicitly pinning the destination during the append operations. We'll need to fix the CopyTo(list) function in Sonoma, but for now using the more stable (and more efficient) CopyTo(float[]) function has fixed the issue in several trial runs offline. |
This issue is not fixed only avoided by #1310 |
ONNX Transform occasionally crashes or freezes when running certain onnx models (currently found with the Split operator).
The text was updated successfully, but these errors were encountered: