You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/09/24 23:30:05 UTC

[GitHub] [incubator-tvm] yongwww commented on a change in pull request #6477: [Relay] Add space_to_batch_nd and batch_to_space_nd operators

yongwww commented on a change in pull request #6477:
URL: https://github.com/apache/incubator-tvm/pull/6477#discussion_r494665076



##########
File path: python/tvm/relay/op/nn/nn.py
##########
@@ -3151,3 +3151,60 @@ def correlation(
     return _make.correlation(
         data1, data2, kernel_size, max_displacement, stride1, stride2, padding, is_multiply, layout
     )
+
+
+def space_to_batch_nd(data, block_shape, paddings):
+    r"""Divide spatial dimensions of the data into a grid of blocks and interleave them into batch dim.

Review comment:
       ci failed due to too long of this line




----------------------------------------------------------------
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:
users@infra.apache.org