tqchen commented on a change in pull request #9874:
URL: https://github.com/apache/tvm/pull/9874#discussion_r781237940
##########
File path: python/tvm/ir/json_compact.py
##########
@@ -57,6 +57,53 @@ def _updater(data):
return _updater
+def create_updater_08_to_09():
+ """
+ Create an update to upgrade json from v0.8 to v0.9
+
+ Returns
+ -------
+ fupdater : function
+ The updater function
+ """
+
+ def _initialize_virtual_device(item, _):
+ if "virtual_device_" not in item["attrs"].keys():
Review comment:
`"virtual_device_" not in item["attrs"]` is better so it do ont have to
instantiate keys.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]