huajsj commented on a change in pull request #9494:
URL: https://github.com/apache/tvm/pull/9494#discussion_r747998810



##########
File path: python/tvm/contrib/pipeline_executor.py
##########
@@ -505,6 +643,36 @@ def get_config(self):
                 "dev": module.dev,
             }
 
+        # Create a mapping of global input and module input.
+        input_connection = []
+        for input_name in self.input_bindings.bindings:
+            _, input_dict = self.input_bindings.bindings[input_name].format()
+            # Check the correctness of "input_dict".
+            check_data_param(input_dict)
+            if "interface_name" not in input_dict["connection"][0]:
+                raise RuntimeError(f'"interface_name is missing in connection 
config"!')
+            # Establish the mapping of global interface and the mapping of 
module interfaces.
+            input_map = {
+                "global_interface_name": input_dict["interface_name"],
+                "mod_idx": input_dict["connection"][0]["mod_idx"],
+                "module_interface_name": 
input_dict["connection"][0]["interface_name"],
+            }
+            input_connection.append(input_map)
+
+        # Create a mapping of global param and module param.
+        param_connection = []
+        for param_name in self.param_bindings.bindings:
+            _, param_dict = self.param_bindings.bindings[param_name].format()
+            check_data_param(param_dict)

Review comment:
       fixed.




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


Reply via email to