dpctl.tensor._array_api.Info.dtypes¶
- Info.dtypes(*, device=None, kind=None)[source]¶
Returns a dictionary of all Array API data types of a specified
kindsupported bydevice.This dictionary only includes data types supported by the Python Array API specification.
- Parameters:
device (Optional[
dpctl.SyclDevice,dpctl.SyclQueue,dpctl.tensor.Device, str]) – array API concept of device used in getting default data types.devicecan beNone(in which case the default device is used), an instance ofdpctl.SyclDevice, an instance ofdpctl.SyclQueue, adpctl.tensor.Deviceobject returned bydpctl.tensor.usm_ndarray.device, or a filter selector string. Default:None.kind (Optional[str, Tuple[str, ...]]) –
data type kind.
if
kindisNone, returns a dictionary of all data types supported by deviceif
kindis a string, returns a dictionary containing the data types belonging to the data type kind specified.Supports:
"bool""signed integer""unsigned integer""integral""real floating""complex floating""numeric"
if
kindis a tuple, the tuple represents a union ofkindstrings, and returns a dictionary containing data types corresponding to the-specified union.
Default:
None.
- Returns:
a dictionary of the supported data types of the specified
kind- Return type: