# tensorplay.cuda.get_device_properties

Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.get_device_properties.html

# tensorplay.cuda.get_device_properties

tensorplay.cuda.get_device_properties(device: [Any](https://docs.python.org/3/library/typing.html#typing.Any) | [None](https://docs.python.org/3/library/constants.html#None) = None) &#x2192; _CudaDeviceProperties[[source]](../_modules/tensorplay/cuda.html#get_device_properties)

Get the properties of a device.

Parameters:

device ([tensorplay.Device](tensorplay.Device.html#tensorplay.Device) or [int](https://docs.python.org/3/library/functions.html#int) or [str](https://docs.python.org/3/library/stdtypes.html#str), optional) – device for which to return the
properties of the device.  It uses the current device, given by
[current_device()](tensorplay.cuda.current_device.html#tensorplay.cuda.current_device), if [device](tensorplay.cuda.device.html#tensorplay.cuda.device) is None
(default).

Returns:

the properties of the device

Return type:

_CudaDeviceProperties
