You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/12/29 12:13:42 UTC

[GitHub] [tvm] ashutosh-arm commented on a diff in pull request #13655: [AOT] Added a test for detecting output size post MLF export

ashutosh-arm commented on code in PR #13655:
URL: https://github.com/apache/tvm/pull/13655#discussion_r1058918167


##########
python/tvm/micro/model_library_format.py:
##########
@@ -485,6 +485,12 @@ def _export_graph_model_library_format(
                     "functions"
                 ]["main"][0]["outputs"][key]
 
+            input_name_to_size_map = {}
+            output_name_to_size_map = {}
+            for name, property_map in inputs_sizes.items():
+                input_name_to_size_map.update({name: property_map["size"]})
+            for name, property_map in output_sizes.items():
+                output_name_to_size_map.update({name: property_map["size"]})

Review Comment:
   ACK



##########
python/tvm/micro/model_library_format.py:
##########
@@ -494,8 +500,10 @@ def _export_graph_model_library_format(
                 devices,
                 workspace_size,
                 include_path,
-                inputs_sizes,
-                output_sizes,
+                # inputs_sizes,
+                # output_sizes,

Review Comment:
   ACK



-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org