【发布时间】:2021-11-10 02:20:40
【问题描述】:
我使用 amazonei_tensorflow2_p36 内核创建了一个实例类型为“ml.g4dn.xlarge”的 sagemaker 笔记本。对于 tensorflow 版本 2.3.2,tf.config.list_physical_devices('GPU') 返回 PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')
但是,当我将 tensorflow 版本更改为 2.4.1(使用 !pip install --upgrade pip && pip install tensorflow==2.4.1 && pip install tensorflow-gpu==2.4.1 安装)时,tf.config .list_physical_devices('GPU') 返回 []
如何在 tensorflow 2.4.1 版本中使用 GPU?
【问题讨论】:
标签: amazon-web-services tensorflow amazon-sagemaker