Hi guys.
I’m creating a rotation matrix as a pytorch c++ tensor:
image749×73 3.3 KB
Where theta needs to be another tensor, which has requires_grad=true.
What would be the best practice way of initialising this tensor given the theta tensor?  Do I just set each element manually, or is there some more clever way?
Cheers.