huajsj commented on a change in pull request #9751:
URL: https://github.com/apache/tvm/pull/9751#discussion_r770185502
##########
File path: python/tvm/contrib/pipeline_executor.py
##########
@@ -199,12 +229,48 @@ def is_pipeline_executor_interface(self):
return not isinstance(self.io_owner, PipelineConfig.ModuleWrapper)
def __repr__(self):
- # Get all binding information.
- ret = " |{}: ".format(self.name)
+ # Geting the binding information in the form of text.
+ str_format = " |{}: ".format(self.name)
for binding in self.bindings:
mname, dname = binding.get_name()
- ret += "{0}:{1} ".format(mname, dname)
- return ret
+ str_format += "{0}:{1} ".format(mname, dname)
+
+ return str_format
+
+ def check_binding_dict(self, connection_dict):
+ """Checking the binding dictionary.
+ Parameter
+ ---------
+ connection_dict : Dict[str, Any]
+ It is a dictionary of module connections.
+ """
+ if "interface_name" not in connection_dict:
+ raise RuntimeError(f'"inteface_name" is missing in global
config!"')
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]