icemelon9 commented on a change in pull request #4949: Conv3D ONNX supprot and
conv3D_ncdhw x86 schedules
URL: https://github.com/apache/incubator-tvm/pull/4949#discussion_r384804363
##########
File path: topi/python/topi/x86/conv3d.py
##########
@@ -73,6 +73,45 @@ def conv3d_ndhwc(cfg, data, kernel, strides, padding,
dilation, out_dtype):
return _conv3d_ndhwc(cfg, data, kernel, strides, padding, dilation,
out_dtype)
[email protected]_topi_compute("conv3d_ncdhw.x86")
+def conv3d_ncdhw(cfg, data, kernel, strides, padding, dilation, out_dtype):
+ """3D convolution forward operator.
+
+ Parameters
+ ----------
+ input : tvm.Tensor
+ 5-D input data with shapes:
+ [batch, in_channel, in_depth, in_height, in_width] for NCDHW layout
+ [batch, in_depth, in_height, in_width, in_channel] for NDHWC layout
+
+ filter : tvm.Tensor
+ 5-D filter with shape [kernel_depth, kernel_height, kernel_width,
in_channels, out_channels]
+
+ strides : int or a list/tuple of three ints
+ stride size, or [stride_depth, stride_height, stride_width]
+
+ padding : int or a list/tuple of three ints
+ padding size, or [pad_depth, pad_height, pad_width]
+
+ dilation: int or a list/tuple of three ints
+ dilation size, or [dilation_depth, dilation_height, dilation_width]
+
+ Returns
+ -------
+ output : tvm.Tensor
+ 5-D with shape [batch, out_depth, out_height, out_width, out_channel]
for NDHWC layout
Review comment:
remove 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:
[email protected]
With regards,
Apache Git Services