fix_error_msg

This commit is contained in:
fengyihang 2022-04-11 10:46:17 +08:00
parent fd01bafcc3
commit 3c11faa627
1 changed files with 1 additions and 1 deletions

View File

@ -634,7 +634,7 @@ def _check_target_specific_cfgs(device, arg_key):
supported_devices = device_cfgs[arg_key]
if device in supported_devices:
return True
logger.warning(f"For 'context.set_context', "
logger.warning(f"For 'context.set_context', when set the argument '{arg_key}', "
f"the argument 'device_target' only supports devices in '{supported_devices}', "
f"but got '{device}', ignore it.")
return False