I want to know how to generate input data for the AutoTVM task. And I found input date generated in measure_methods.py , as flows:
if ref_input:
args = [nd.array(x, ctx=ctx) for x in ref_input]
else:
# create empty arrays on the remote device and copy them once.
# This can avoid some memory issues that make the measurement results unreliable.
args = [nd.empty(x[0], dtype=x[1], ctx=ctx) for x in build_result.arg_info]
args = [nd.array(x, ctx=ctx) for x in args]
ctx.sync()
if we create runner with check_correctness=False, the input data will be all zero.
if we create runner with check_correctness=True, the input data will be not zero.
I want to know why?