Fix typos in target warn of dnnl (#11678)

This commit is contained in:
billishyahao
2022-06-11 13:49:50 +08:00
committed by GitHub
parent a8d60392ba
commit d0da0b94de
+2 -2
View File
@@ -111,8 +111,8 @@ class Target(Object):
if isinstance(target, str) and "-libs=mkldnn" in target:
target = target.replace("mkldnn", "dnnl")
warnings.warn(
"legacy supoort of mkldnn will be eprecated in the next release."
" Please replace -libs=mkldnn to -libs=dnnl to enable Intel OneDNN.",
"Legacy support of mkldnn is going to be deprecated. "
"Please use -libs=dnnl instead.",
)
if isinstance(target, (dict, str)):
target = convert(target)