So you suggested the following flow:
- Frontend converter generates conv2d (maybe 2-way or 4-way padding).
-
relay.nn.conv2d
legalizes the padding to 4-way. -
topi.nn.conv2d
only accepts 4-way padding.
Due to the assertion in 3, AutoTVM conv2d workloads should always be 4-way padding. This solution seems promising to me.