numpy.__array_namespace_info__.devices# 方法 __array_namespace_info__.devices()[原始碼]# The devices supported by NumPy. For NumPy, this always returns ('cpu',). 回傳值: deviceslist of strThe devices supported by NumPy. 也參考 __array_namespace_info__.capabilities __array_namespace_info__.default_device __array_namespace_info__.default_dtypes __array_namespace_info__.dtypes 範例 Try it in your browser! >>> info = np.__array_namespace_info__() >>> info.devices() ('cpu',) Go BackOpen In Tab