Solved by Shisho_Sama in post #2 
              
              
                OK here is a simple sample that implements differents ops in libtorch, I wrote this as I was playing with different things , I guess  this might come in handy to lots of new commers : 
The following simple demo shows how to : 

Convert an opencv image into a Tensor
How to convert a Tensor into IValu…