You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/05/09 15:08:27 UTC

[GitHub] [tvm] ekalda commented on a diff in pull request #10251: [microNPU] Add support for conv2d running on two cores on U65

ekalda commented on code in PR #10251:
URL: https://github.com/apache/tvm/pull/10251#discussion_r868121674


##########
tests/python/contrib/test_ethosu/test_replace_conv2d.py:
##########
@@ -132,6 +132,28 @@ def _create_serial_conv2d_params(
     ]
 
 
+def get_conv2d_args(call, include_buffers=False, remove_constants=False):
+    """A method to extract the arguments from conv2d extern call."""
+    args = call.args
+    conv_args = []
+    remove_indices = [0]
+
+    if remove_constants:
+        remove_indices += [41, 42, 43, 44, 46, 47, 48, 49]

Review Comment:
   Good point - I'll do it in the follow up!



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

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org