dsbarinov1 commented on code in PR #14209:
URL: https://github.com/apache/tvm/pull/14209#discussion_r1143232517


##########
src/meta_schedule/space_generator/space_generator.cc:
##########
@@ -21,6 +21,28 @@
 namespace tvm {
 namespace meta_schedule {
 
+static inline bool HasFlag_(String attr, std::string flag) {
+  std::string attr_str = attr;
+  return attr_str.find(flag) != std::string::npos;
+}
+
+// static inline bool HasFlag_(Optional<String> attr, std::string flag) {
+//   if (!attr) {
+//     return false;
+//   }
+//   return HasFlag_(attr.value(), flag);
+// }
+
+static inline bool HasFlag_(Optional<Array<String>> attr, std::string flag) {

Review Comment:
   Code duplication fixed, we are now using different method to pull specific 
keys from the target.



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