mindspore.get_current_device

查看源文件
mindspore.get_current_device()

获取当前运行环境中的设备类型以及设备ID。