Open Algomorph opened 1 year ago
Hi @Algomorph it's not clear which of the function calls are possibly erroneous. Can you test with small tensors (say 4x6) and print out the results of the function calls to narrow the issue to a single function call? Or alternately provide the data (pixelface* tensors) to reproduce this.
@ssheorey I won't have time for that this week or next, maybe longer.
Checklist
master
branch).Describe the issue
On v0.15.1 release working in C++, I'm getting inconsistent outputs between the same exact functions (e.g.
Tensor::To
,Tensor::Sum
, and/ort::geometry::Image
constructor) with only the device being different.Steps to reproduce the bug
I'll give you a sample of my code -- almost MRE -- which points to the bug. It should be very easy to convert this to an MRE. If it isn't obvious, try changing the device of the input tensors and observing the output difference.
Error message
No error messages, but the output is incorrect / inconsistent between CPU and CUDA tensors.
Expected behavior
Result for CUDA seems correct. The image is also correct -- white for areas that are different between the two input tensors.
Here's output of the same code with CPU tensors:
And the image generated is pure black, which makes no sense...
Open3D, Python and System information
Additional information
It would maybe make sense to prepare for other C++ bugs -- I had to manually go back in and edit the "Steps" entry in the bug template, since that was only set up for Python.