numpy.__array_namespace_info__.devices# method __array_namespace_info__.devices()[源代码]# The devices supported by NumPy. For NumPy, this always returns ('cpu',). Returns: 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 Examples Try it in your browser! >>> info = np.__array_namespace_info__() >>> info.devices() ('cpu',) Go BackOpen In Tab