[RFC] A general task extraction mechanism for auto_scheduler

So you meant the use case would be like the following?

with auto_scheduler.ApplyHistoryBest(log_file):
    with PassContext(opt_level=opt_level, config={use_topi_schedule: False}):
        lib = relay.build(mod, target=target, params=params)