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



##########
File path: python/tvm/contrib/pipeline_executor.py
##########
@@ -199,12 +287,21 @@ 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)
+            # Get all binding information in the form of string.
+            ret, _ = self.format()
+            return ret
+
+        def format(self):
+            """Obtain binding information in the form of string and 
dictionary."""

Review comment:
       split format into two functions.




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