tvm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-tvm] wyc-ruiker commented on a change in pull request #5220: [PYTORCH]AvgPool3d, MaxPool3d and Squeeze op support
Date Thu, 02 Apr 2020 16:26:21 GMT
wyc-ruiker commented on a change in pull request #5220: [PYTORCH]AvgPool3d, MaxPool3d and Squeeze
op support
URL: https://github.com/apache/incubator-tvm/pull/5220#discussion_r402445259
 
 

 ##########
 File path: python/tvm/relay/frontend/pytorch.py
 ##########
 @@ -631,6 +662,27 @@ def func(x):
 
     return _impl
 
+def _avg_pool3d():
+    def _impl(inputs, input_types):
+        data = inputs[0]
+
+        pool_size = _infer_shape(inputs[1])
+        if inputs[2]:
+            strides = _infer_shape(inputs[2])
+        else:
+            strides = pool_size
+        padding = _infer_shape(inputs[3])
+
+        ceil_mode = int(inputs[4])
+        count_include_pad = int(inputs[5])
+
+        return _op.nn.avg_pool3d(x,
 
 Review comment:
   It should be `data` or add `func(x)` before this.

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


With regards,
Apache Git Services

Mime
View raw message