AMPlify icon indicating copy to clipboard operation
AMPlify copied to clipboard

How to use GPU for prediction

Open eris10 opened this issue 2 years ago • 1 comments

eris10 avatar Oct 17 '23 11:10 eris10

To run AMPlify on GPU, you need to install tensorflow-gpu (1.12.0) instead of the default tensorflow.

You may also add some codes like these to the beginning of your script:

import os​
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "1"

mark0428 avatar Mar 27 '24 20:03 mark0428