mindspore.hal.get_device_name
- mindspore.hal.get_device_name(device_id, device_target=None)[source]
- Get specified device's name, this api will be deprecated and removed in future versions. - Note - This method always returns "CPU" for CPU device. - Parameters
- Returns
- str 
 - Examples - >>> import mindspore >>> device_target = mindspore.context.get_context("device_target") >>> print(mindspore.hal.get_device_name(0, device_target))