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/08/30 23:47:25 UTC

[GitHub] [tvm] zxybazh commented on a diff in pull request #12656: [Testing] Allow NCHW layout in `relay_workload`

zxybazh commented on code in PR #12656:
URL: https://github.com/apache/tvm/pull/12656#discussion_r959021263


##########
python/tvm/meta_schedule/testing/relay_workload.py:
##########
@@ -86,27 +89,29 @@ def _get_network(
         input_name = "input0"
         shape_list = [(input_name, input_shape)]
         mod, params = relay.frontend.from_pytorch(scripted_model, shape_list)
+        passes = [relay.transform.RemoveUnusedFunctions()]
+        if layout == "NHWC":

Review Comment:
   If layout is `NCHW` do we need to also add layout transformation?



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