optima2005 commented on a change in pull request #4476: Implement 1d 
deconvolution
URL: https://github.com/apache/incubator-tvm/pull/4476#discussion_r357506918
 
 

 ##########
 File path: topi/python/topi/cuda/conv1d_transpose_ncw.py
 ##########
 @@ -0,0 +1,192 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# pylint: disable=invalid-name
+"""Conv1d transpose template for cuda backend"""
+
+import tvm
+from tvm import autotvm
+from .. import nn, generic
+from ..util import get_const_tuple, traverse_inline
+
[email protected]_topi_compute(nn.conv1d_transpose_ncw, ['cuda', 'gpu'], 
"direct")
+def conv1d_transpose_ncw_cuda(cfg, data, kernel, stride, padding, out_dtype):
+    """Transposed 1D convolution ncw forward operator.
+
+    Parameters
+    ----------
+    cfg: ConfigEntity
+        The config for this template
+    Input : tvm.Tensor
+        3-D with shape [batch, in_channel, inp_width]
+    Filter : tvm.Tensor
+        3-D with shape [in_channel, num_filter, kernel_size]
+    stride : tuple of one int
+        The spatial stride along width
+    padding : int or str
+        Padding size, or ['VALID', 'SAME']
 
 Review comment:
   Add 2 ints option to support asymmetric padding?

----------------------------------------------------------------
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

Reply via email to