# tensorplay.cuda.get_device_properties Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.get_device_properties.html ```python tensorplay.cuda.get_device_properties(device: Any = None) → _CudaDeviceProperties ``` Get the properties of a device. Parameters: device ([tensorplay.Device](/docs/generated/tensorplay.Device.html#tensorplay.Device) or [int](https://docs.python.org/3/builtins/functions.html#int) or [str](https://docs.python.org/3/builtins/stdtypes.html#str), optional) – device for which to return the properties of the device. It uses the current device, given by [current_device()](/docs/generated/tensorplay.cuda.current_device.html#tensorplay.cuda.current_device), if [device](/docs/generated/tensorplay.cuda.device.html#tensorplay.cuda.device) is None (default). Returns: the properties of the device Return type: _CudaDeviceProperties