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
Using a model consisting of a single ScatterND node, and pre-generated input NumPy arrays, we noticed that performing several consecutive inferences (with the same inputs), results in different outputs.
We then found that this does not occur if the InferenceSession runs on a single thread, so this looks like a multithreading issue.
Seems like I cannot share ONNX or NumPy files: the model and data for network inputs will be in the following archive: files.zip.
I you need any additional information, feel free to ask.
Thanks and have a good day
To reproduce
Once again, cannot share Python files, so please find the code in the snippet below.
This showcases the issue: if anything in unclear, once again go ahead and notify me.
With multitheading, the order of the operations is not guaranteed. Is it possible input_1 (indices) have duplicates? In that case, the monothreaded version always keeps the last one, the multithreaded version keeps one keeps one of them.
We were wondering about duplicate indices, at some point, but ONNX's operators documentation seems to indicate that the duplicate indices should not be an issue when reduction attribute's value is "none" (it is "add", in the shared model).
Admittedly, I don't see why it would make a difference, but it lead us to assume there may have been an issue.
Describe the issue
Hi,
Using a model consisting of a single ScatterND node, and pre-generated input NumPy arrays, we noticed that performing several consecutive inferences (with the same inputs), results in different outputs.
We then found that this does not occur if the InferenceSession runs on a single thread, so this looks like a multithreading issue.
Seems like I cannot share ONNX or NumPy files: the model and data for network inputs will be in the following archive: files.zip.
I you need any additional information, feel free to ask.
Thanks and have a good day
To reproduce
Once again, cannot share Python files, so please find the code in the snippet below.
This showcases the issue: if anything in unclear, once again go ahead and notify me.
Urgency
No response
Platform
Linux
OS Version
Fedora 38 (also observed on Windows 10)
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.16.1
ONNX Runtime API
Python
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: