Using Pytorch in PyRevit

So I am trying to build a DQN model for my PhD. I am using the CPython engine in PyRevit and importing module torch in the my script. But when is run the script I am getting following error: NameError : name ‘_C’ is not defined

Can someone tell me if this error is due to the limitation of PyRevit or and error in my module installation?

I have tried importing Cython module as well but no results.

Do you mind sharing some of the code?