Based on dpctl documentationInfo.dtypes support a string value of device keyword argument:
device (Optional[:class:dpctl.SyclDevice, :class:dpctl.SyclQueue, :class:dpctl.tensor.Device, str])
but the example below does not work and raises AttributeError exception:
importdpctl, dpctl.tensorasdptdpctl.__version__# Out: '0.19.0dev0+480.g360ce45dc6'info=dpnp.__array_namespace_info__()
info.dtypes(device="gpu")
---------------------------------------------------------------------------AttributeErrorTraceback (mostrecentcalllast)
CellIn[3], line1---->1info.dtypes(device="gpu")
File~/miniforge3/envs/dpnp_dev/lib/python3.11/site-packages/dpctl/tensor/_array_api.py:203, inInfo.dtypes(self, device, kind)
201elifisinstance(device, dpt.Device):
202device=device.sycl_device-->203_fp64=device.has_aspect_fp64204ifkindisNone:
205return {
206key: val207forkey, valinself._all_dtypes.items()
208if (key!="float64"or_fp64)
209 }
AttributeError: 'str'objecthasnoattribute'has_aspect_fp64'
Based on dpctl documentation
Info.dtypessupport a string value ofdevicekeyword argument:but the example below does not work and raises
AttributeErrorexception: