Paddle Inconsistency across device methods

g2ieeal7  于 4个月前  发布在  其他
关注(0)|答案(2)|浏览(35)

bug描述 Describe the Bug

get_all_device_type and get_available_device are supposed to return the list of all available devices but for cpu , they returning empty list opposed to documentation which mentioned ["cpu"].

import paddle

print(paddle.device.get_available_device())
print(paddle.device.get_all_device_type())
[]
[]

其他补充信息 Additional Supplementary Information

No response

slsn1g29

slsn1g291#

get_all_device_type and get_available_device are currently only valid for custom device plugins

ix0qys7i

ix0qys7i2#

Hi @ronny1996,
so there's no way we can get all available local devices which are not custom?

相关问题