comaniac commented on a change in pull request #7791:
URL: https://github.com/apache/tvm/pull/7791#discussion_r606397226
##########
File path: python/tvm/target/target.py
##########
@@ -182,6 +182,9 @@ def check_and_update_host_consist(target, host=None,
target_is_dict_key=True):
target_is_dict_key : Bool
When the type of target is dict, whether Target is the key
(Otherwise the value)
"""
+ if target is None:
+ assert host is None
Review comment:
You can keep the message to let people know why it's failed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]