dpctl.tensor._array_api.Info.default_dtypes

Info.default_dtypes(*, device=None)[source]

Returns a dictionary of default data types for device.

Parameters:

device (Optional[dpctl.SyclDevice, dpctl.SyclQueue, dpctl.tensor.Device]) – array API concept of device used in getting default data types. device can be None (in which case the default device is used), an instance of dpctl.SyclDevice corresponding to a non-partitioned SYCL device, an instance of dpctl.SyclQueue, or a dpctl.tensor.Device object returned by dpctl.tensor.usm_ndarray.device. Default: None.

Returns:

a dictionary of default data types for device:

  • "real floating": dtype

  • "complex floating": dtype

  • "integral": dtype

  • "indexing": dtype

Return type:

dict