Skip to content

Commit

Permalink
type check added before
Browse files Browse the repository at this point in the history
  • Loading branch information
Qianshui-Jiang committed Jun 10, 2022
1 parent c8ba892 commit 8b410b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/target/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def __init__(self, target, host=None):
When using a dictionary or json string to configure target, the possible values are
same as target.
"""
if "-libs=mkldnn" in target:
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."
Expand Down

0 comments on commit 8b410b7

Please sign in to comment.