jwfromm 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_r393304654
##########
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
Review comment:
Does adaptive pooling in pytorch always return two values? The documentation
seems to imply that it only returns indices if the `return_indices` parameters
is `True`.
----------------------------------------------------------------
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