kevinthesun commented on a change in pull request #6598:
URL: https://github.com/apache/incubator-tvm/pull/6598#discussion_r498013557



##########
File path: python/tvm/topi/cuda/conv2d_nhwc_winograd.py
##########
@@ -432,7 +441,8 @@ def nhwc_winograd_cuda(
         name="output",
         tag="conv2d_nhwc_winograd",
     )
-    cfg.add_flop(2 * N * CO * H * W * CI * KH * KW)
+    if isinstance(N, int):
+        cfg.add_flop(2 * N * CO * H * W * CI * KH * KW)

Review comment:
       I think it's fine since generally AutoTVM can't be used for dynamic 
shape op. Thus flops info is not useful for dynamic shape op.




----------------------------------------------------------------
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:
[email protected]


Reply via email to