masahi commented on a change in pull request #8443:
URL: https://github.com/apache/tvm/pull/8443#discussion_r670175585
##########
File path: python/tvm/relay/op/nn/nn.py
##########
@@ -3646,3 +3646,38 @@ def batch_to_space_nd(data, block_shape, crops):
"""
return _make.batch_to_space_nd(data, block_shape, crops)
+
+
+def im2col(data, kernel_size, dilation, padding, stride):
+ r"""im2col.
+
+ This operator convert 4-D NCHW data with im2col for PyTorch unfold.
+
+ Please reference
+
`https://pytorch.org/docs/stable/generated/torch.nn.Unfold.html#torch.nn.Unfold`
+
Review comment:
PyTorch specific stuff shouldn't be in this file. Please explain what
this function does instead.
--
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]