[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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user