Returns the compute-capable device count of CPU.
Note
For CPU hardware, 1 is always returned.
int, the number of compute-capable CPU devices.
Examples
>>> import mindspore as ms >>> print(ms.device_context.cpu.device_count()) 1