I build the latest tvm from source, commit id:8d9a1dfe77cba7220d9313c32070f190b7eb30d8, it is updated on May 6th.
I did not use VM. Could you offer me an example of how to use vm to extract tuning tasks?
There is an error in your log: TypeError: unsupported operand type(s) for *: ‘Any’ and ‘int’. Unlike faster rcnn, mask rcnn has dynamic batch conv2d, conv2d transpose. Any there comes from the dynamism in the batch.
Things should work with torch 1.7, I haven’t tested on 1.8.
Also, in terms of tuning, there is no difference in mask rcnn vs faster cnn: The only extra workloads in maskrcnn are those dynamic ops, which cannot be tuned anyway for now. So you can tune on faster rcnn and use the same tuned log on mask rcnn. Note that due to those dynamic ops that cannot be tuned, mask rcnn in particular is extremely slow on TVM now.
Now I have change the torch and torchvision version to 1.7.0 and 0.8.1, respectively. The full log is listed in the following notion link. The error seems to happen in /tvm/python/tvm/nn/conv2d.py line 1075. But I have no ideas to fix it.
File “/home2/zhangya9/tvm/python/tvm/_ffi/_ctypes/packed_func.py”, line 81, in cfun
rv = local_pyfunc(*pyargs)
File “/home2/zhangya9/tvm/python/tvm/relay/op/strategy/generic.py”, line 240, in _compute_conv2d
return [topi_compute(*args)]
File “”, line 2, in conv2d_winograd_nhwc
File “/home2/zhangya9/tvm/python/tvm/target/generic_func.py”, line 276, in dispatch_func
return func(*args, **kwargs)
File “/home2/zhangya9/tvm/python/tvm/topi/nn/conv2d.py”, line 1196, in conv2d_winograd_nhwc
return _conv2d_winograd_nhwc_impl(
File “/home2/zhangya9/tvm/python/tvm/topi/nn/conv2d.py”, line 1075, in _conv2d_winograd_nhwc_impl
P = N * nH * nW