MasterJH5574 commented on a change in pull request #9041:
URL: https://github.com/apache/tvm/pull/9041#discussion_r712003001
##########
File path: src/tir/schedule/primitive/reduction.cc
##########
@@ -21,6 +21,289 @@
namespace tvm {
namespace tir {
+bool ListContainsElement(const Array<StmtSRef>& list, const StmtSRef& element)
{
+ for (const StmtSRef& ele : list) {
+ if (ele.same_as(element)) {
+ return true;
+ }
+ }
+ return false;
+}
Review comment:
Probably we can use `std::find` to replace this function.
--
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]