anijain2305 commented on a change in pull request #5075: [Torch] Add initial 3D
op support and test on Resnet 3D
URL: https://github.com/apache/incubator-tvm/pull/5075#discussion_r395140623
##########
File path: python/tvm/relay/frontend/pytorch.py
##########
@@ -183,9 +183,27 @@ def _impl(inputs, input_types):
data = inputs[0]
output_size = _infer_shape(inputs[1])
+ # returns dummy indices too
return _op.nn.adaptive_max_pool2d(
data,
- output_size=output_size)
+ output_size=output_size), None
+ return _impl
+
+def _adaptive_max_3d():
+ def _impl(inputs, input_types):
+ data = inputs[0]
+ output_size = _infer_shape(inputs[1])
+ # returns dummy indices too
+ return _op.nn.adaptive_max_pool3d(data, output_size=output_size), None
+
+ return _impl
+
+def _adaptive_avg_3d():
Review comment:
Change name to _adaptive_avg_pool_3d?
----------------------------------------------------------------
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