tom:

use the above on Tensors


sure i can use this code torch.potrf(a).diag().prod() when a is a tensor but i need to do the operation to with autograd when i  call backward() function. Would you please help me solve this problems