I debugged my program. When the space variable is created, it goes to the “PostOrderApply” class and run ‘init’. When running to line 53:
“sch_rules, postprocs, mutator_probs = _normalize_rules(sch_rules, postprocs, mutator_probs)”
It enters the ‘_normalize_rules’ function, run ‘ScheduleRule.create(sch_rules)’ on line 171 of this file
Then, in ‘create’, the program correctly matches “cuda-tensorcore” and “_ffi_api. ScheduleRuleDefaultCUDATensorCore”, and ran the latter.
The program then jumps to the “PackedFuncBase” class in “tvm._ffi._ctypes.packed_func.py” and runs “call”. Here, the error is thrown.
It doesn’t create ‘MetaSchedule tuning contexts’ during working. In fact, I also had this bug on another computer (using tvm.012, but with code from a month and a half ago). Not sure if there is a problem with such a workflow.