Could you run the code locally on your machine to get a proper error message?
Note that all operations applied on a numpy array won’t be tracked by Autograd, if you don’t implement the backwards method manually.
However, if you use variable_1 and variable_2 on your tensor, it should work.