我的系统中有两个GPUS (RTX 2070)。我正在尝试根据下面的tutorial使用TensorFlow来应用Yolov3。
然而,TensorFlow似乎不能使用特定的图形处理器。我在互联网上搜索过,发现您需要在以下代码行中将'GPU'更改为/GPU:0:
physical_devices = tf.config.experimental.list_physical_devices('GPU')
if len(physical_devices) > 0:
tf.config.experimental.set_memory_growth(physical_devices[0], True)然而,这不起作用,并不断给我以下错误:
raise ValueError("Memory growth cannot differ between GPU devices")
ValueError: Memory growth cannot differ between GPU devices关于如何解决这个问题,有什么建议吗?
发布于 2020-11-23 01:29:50
加上这个,每个索引范围(0,1)就是GPU:
tf.config.set_visible_devices(physical_devices[0:1], 'GPU')https://stackoverflow.com/questions/64956013
复制相似问题