You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/06/15 18:57:16 UTC

[GitHub] [incubator-tvm] comaniac commented on pull request #5811: [AutoTVM][Fix] Fixed 'not in list' error for define_reorder with 'candidate' policy.

comaniac commented on pull request #5811:
URL: https://github.com/apache/incubator-tvm/pull/5811#issuecomment-644317657


   > @comaniac A quick replication of the bug is to replace
   > https://github.com/apache/incubator-tvm/blob/520ca0a8b39aeb4765369f169477265230ea7c6c/tutorials/autotvm/tune_simple_template.py#L209
   > 
   > 
   > with
   > ```
   >     cfg.define_reorder('reorder', [yo, xo, k, yi, xi], policy='candidate', candidate=[[yo, xo, k, yi, xi], [xo, yo, k, yi, xi]])
   >     cfg['reorder'].apply(s, C, [yo, xo, k, yi, xi])
   > ```
   
   I see what you meant. It seems like all use cases in current TOPI reorder only the splitted axises, which are all virtual axises already. Accordingly, I'd suggest checking and creating `VirtualAxis` for `axes` in the beginning of `ReorderSpace.__init__`.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org