AlterOpLayout issue when using AutoTVM


I’m trying to follow the approach here:
to tune a full resnet network.
However I’m trying to use my own tunable conv2d routine as a autotvm template.
Is there a way to do this? Currently the tuning proceeds without error but when is called I get an error in AlterOpLayout saying that the configuration lacks value for “tile_ic” and “tile_oc”
the innermost dimension in NCHWc.



There has been a recent patch for an AlterOpLayout fix merged into master, have you updated your local copy of TVM?


You should disable the alter_op_layout pass, because it assumes the configuration space has “tile_ic” and “tile_oc” fileds for x86 cpu.
This assumption is hard-coded in this function