kfeng123 commented on code in PR #15350:
URL: https://github.com/apache/tvm/pull/15350#discussion_r1270502402


##########
include/tvm/relay/dataflow_pattern.h:
##########
@@ -537,6 +539,41 @@ DFPattern IsTuple(const Array<DFPattern>& fields);
 /*! \brief Syntatic Sugar for creating a TupleGetItemPattern*/
 DFPattern IsTupleGetItem(const DFPattern tuple, int index = -1);
 
+/*! \brief A printer class to print pattern. */
+class DFPatternPrinter : public ReprPrinter {
+ public:
+  std::stringstream string_stream{};
+
+  std::unordered_map<DFPattern, std::pair<size_t, std::string>, ObjectPtrHash, 
ObjectPtrEqual>
+      memo_{};
+  std::vector<DFPattern> recursed_patterns{};

Review Comment:
   Documentation added. To be consistent with the printed text, I choose to 
name this variable to be auxiliary_patterns



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