Basic tensor manipulation in C++

Hi Peter,

I know its an old thread, however, I think it might be related to my question. I started a new topic on this a few days ago which is here. I also saw one of your replies on github which was super helpful.

My problem is that when a tensor object is passed to a opencv object and then back which is then used in calculating the loss, it appears that the weights don’t update. Am I missing something?

Thanks for your help.