mbrookhart commented on a change in pull request #6008:
URL: https://github.com/apache/incubator-tvm/pull/6008#discussion_r452386661



##########
File path: src/relay/transforms/dynamic_to_static.cc
##########
@@ -55,6 +58,20 @@ class DynamicToStaticMutator : public MixedModeMutator {
         static const Op& op = Op::Get("tile");
         return Call(op, {call_node->args[0]}, Attrs(attrs), {});
       }
+    } else if (call_node->op == dyn_topk_op_) {
+      if (const ConstantNode* k = call_node->args[1].as<ConstantNode>()) {

Review comment:
       There are a lot of duplicated or referenced MakeOp functions in here: 
https://github.com/apache/incubator-tvm/blob/master/src/relay/transforms/pattern_util.h,
 I'll make a separate PR to pull those out into an op-level utility header and 
clean things up a bit.




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to