areusch commented on a change in pull request #7533:
URL: https://github.com/apache/tvm/pull/7533#discussion_r586855568



##########
File path: python/tvm/relay/backend/graph_runtime_factory.py
##########
@@ -56,6 +67,85 @@ def __init__(self, graph_json_str, libmod, libmod_name, 
params):
     def export_library(self, file_name, fcompile=None, addons=None, **kwargs):
         return self.module.export_library(file_name, fcompile, addons, 
**kwargs)
 
+    def _build_memory_map(self):
+        graph = json.loads(self.graph_json)
+
+        seen_storage_ids = set()
+        memory_map = []
+        for node_id, storage_id in enumerate(graph["attrs"]["storage_id"][1]):

Review comment:
       I agree with that, see other comment




----------------------------------------------------------------
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]


Reply via email to