Solved by tom in post #2 
              
              
                It’s hard to tell with the information you give and no code. 
One common pitfall: if you use from_blob to get the tensor from OpenCV, you do not own the memory, i.e. you need to call the copying(! mind you) to cuda before the OpenCV memory goes out of scope / keep the memory in scope until you have …