Traceback (most recent call last):
File "/home/huangkun/Git/lora_slam/test/reproduce.py", line 98, in <module>
main()
File "/home/huangkun/Git/lora_slam/test/reproduce.py", line 86, in main
optimizer = th.LevenbergMarquardt(
File "/home/huangkun/Git/theseus/theseus/optimizer/nonlinear/levenberg_marquardt.py", line 69, in __init__
super().__init__(
File "/home/huangkun/Git/theseus/theseus/optimizer/nonlinear/nonlinear_least_squares.py", line 90, in __init__
self.linear_solver = linear_solver_cls(
File "/home/huangkun/Git/theseus/theseus/optimizer/linear/baspacho_sparse_solver.py", line 45, in __init__
self.reset()
File "/home/huangkun/Git/theseus/theseus/optimizer/linear/baspacho_sparse_solver.py", line 111, in reset
self.symbolic_decomposition = SymbolicDecomposition(
RuntimeError: Expected device == "cpu" || device == "cuda" to be true, but got false. (Could this error message be improved? If so, please report an enhancement request to PyTorch.)
baspacho_sparse_solver only accept device name as "cpu" or "cuda", but mine is "cuda:0"
baspacho_sparse_solver only accept device name as "cpu" or "cuda", but mine is "cuda:0"
Originally posted by @EXing in https://github.com/facebookresearch/theseus/issues/596#issuecomment-1712684431