torch.Tensor.matrix_power¶ Tensor.matrix_power(n) → 张量¶ 注意 matrix_power() 已弃用,请改用 torch.linalg.matrix_power()。 别名 torch.linalg.matrix_power()