only one element tensors can be converted to python scalars

后端 未结 0 417
天涯浪人
天涯浪人 2020-12-05 02:24
def Log(A):
    \'\'\'
    theta = arccos((tr(A)-1)/2)
    K=1/(2sin(theta))(A-A^T)
    log(A)=theta K
    \'\'\'
    theta=torch.acos(torch.tensor((torch.trace(A)-1         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题