Does autotvm work with @tvm.register_func

When I run the tutorial tune_simple_template.py, with a custom tvm_callback_cuda_compile registered, it throws error
tvm/src/runtime/registry.cc:57: Check failed: override Global PackedFunc tvm_callback_cuda_compile is already registered

Seems that register_func will be called multiple times when using autotvm. The modified code is available in https://gist.github.com/vinx13/bd38b58e6e8a43267cf1b1b00efc8254
@merrymercy could you help on this? thanks

Autotvm package will register this function for you once you import it. So you can simply remove your registration.