-
-
Notifications
You must be signed in to change notification settings - Fork 828
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
Image segmentation cpu bugfix and onnx output update #1783
base: develop
Are you sure you want to change the base?
Conversation
c3e9a47
to
596e032
Compare
596e032
to
0fc2633
Compare
0fc2633
to
77a5760
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's just a few comments on the way CUDA is managed with ONNXRuntime.
Please double check my comments because I am not very familiar with the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
This PR modifies the access to the output of the onnx model using the dedicated 'At' accessor in image segmentation. This is a safer method than accessing with a pointer because onnx does not guarantee that the allocated memory is contiguous.
It also fixes a bug when using the cpu mode by avoiding freeing cuda memory in this case.
Features list
Implementation remarks