As the title says. I’m trying to match a conv2d
op with pattern = is_op('nn.conv2d')(data, weight).has_attr({"kernel_size": [3, 3]})
but with no luck. I suspect it’s the list [3, 3]
that is not correctly passed. Seems like when a conv2d
is matched, the kernel_size
field in its attrs has a type of tvm.ir.Array
, but I’m not able to create an array from a list as it says Array() takes no arguments
.
Anyone can help?