How to use numpy and opencv without breaking computation graph?

Thankyou for your reply. I will try and comback in case of issue.