如何启用intel iRIS Xe GPU进行深度学习?



当我使用google colab训练数据时,当我将运行时切换到GPU时。我的colab只使用CPU而不使用GPU。如何在Windows 10系统下使用Intel GPU开启?

要使你的笔记本使用GPU运行时,选择运行时>"更改运行时类型"菜单,然后从"硬件加速"下拉菜单中选择GPU。

然后您可以通过在一个笔记本单元格中运行以下代码来确保:

gpu_info = !nvidia-smi
gpu_info = 'n'.join(gpu_info)
if gpu_info.find('failed') >= 0:
print('Select the Runtime > "Change runtime type" menu to enable a GPU accelerator, ')
print('and then re-execute this cell.')
else:
print(gpu_info)

最新更新