I ran into this issue a while ago now and ended up finding a solution based on @anijain2305’s suggestion. See the suggestion here: https://github.com/apache/tvm/pull/6430#issuecomment-689703548. Essentially you can override the default implementation of register_convert_op_layout which the convert layout pass will use to decide the correct layout of a particular ‘nn.conv2d’ operator. You can define this prior to running the convert layout pass, here is a rough untested example: