Error using VM to profile : Downcast from runtime.ADT to runtime.NDArray failed

Sorry, there is a bug in the script.

Change

report = vm.profile(
    [data],
    func_name="main",
    collectors=[tvm.runtime.profiling.PAPIMetricCollector()],
)

to

report = vm.profile(
    data, # removed the brackets here
    func_name="main",
    collectors=[tvm.runtime.profiling.PAPIMetricCollector()],
)