sGDML icon indicating copy to clipboard operation
sGDML copied to clipboard

RuntimeError: expected scalar type Double but found Char

Open bonfus opened this issue 2 years ago • 0 comments

Error shows up using v1.0.0 and torch 1.13.1 with CUDA.

To fix it I had to change

https://github.com/stefanch/sGDML/blob/8af877adf02b05862b47c593f576ffcc6badf889/sgdml/torchtools.py#L549

to dtype=torch.double.

bonfus avatar Jan 11 '23 14:01 bonfus