mindspore.hal.get_arch_list
- mindspore.hal.get_arch_list(device_target=None)[source]
Get the architecture list this MindSpore was compiled for, this api will be deprecated and removed in future versions.
- Parameters
device_target (str, optional) – The target device specified, should be one of
"CPU"
,"GPU"
and"Ascend"
. DefaultNone
, represents the current device set by context.- Returns
str for GPU. None for Ascend and CPU.
Examples
>>> import mindspore >>> device_target = mindspore.context.get_context("device_target") >>> print(mindspore.hal.get_arch_list(device_target))