[CVS-78727][python version] bug fix for -d AUTO:CPU,GPU the return device should be AUTO only (#10506)

Signed-off-by: xuejun <xuejun.zhai@intel.com>
This commit is contained in:
Xuejun Zhai
2022-02-21 11:21:52 +08:00
committed by GitHub
parent 7c93902dac
commit ea3bd087c4

View File

@@ -246,6 +246,8 @@ def can_measure_as_static(app_input_info):
def parse_devices(device_string):
if device_string in ['MULTI', 'HETERO']:
return list()
if device_string.find("AUTO") != -1:
return ['AUTO']
devices = device_string
if ':' in devices:
devices = devices.partition(':')[2]