kinoml icon indicating copy to clipboard operation
kinoml copied to clipboard

Enable use of CUDA for training if available

Open jchodera opened this issue 3 years ago • 0 comments

We should add code to our training notebooks to enable us to use CUDA for training if it is available.

From the espaloma example, we could add something like this:

if torch.cuda.is_available():
    espaloma_model = espaloma_model.cuda()

jchodera avatar Nov 19 '21 10:11 jchodera