comaniac commented on a change in pull request #4260: [TOPI] Fix bug in
Winograd on CUDA
URL: https://github.com/apache/incubator-tvm/pull/4260#discussion_r343260513
##########
File path: topi/python/topi/cuda/conv2d_winograd.py
##########
@@ -42,25 +45,24 @@ def winograd_cuda(cfg, data, kernel, strides, padding,
dilation, layout, out_dty
N, CI, H, W = get_const_tuple(data.shape)
+ if isinstance(dilation, int):
+ dilation_h = dilation_w = dilation
+ else:
+ dilation_h, dilation_w = dilation
+ HPAD, WPAD, _, _ = nn.get_pad_tuple(padding, kernel)
Review comment:
Thanks for pointing out! I moved it after the kernel transformation.
----------------------------------------------------------------
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]
With regards,
Apache Git Services