/workspace/python/tvm/driver/build_module.py:268: UserWarning: target_host parameter is going to be deprecated. Please pass in tvm.target.Target(target, host=target_host) instead.
"target_host parameter is going to be deprecated. "
Estimated total latency: 1.587 ms Trials: 4992 Used time : 13296 s Next ID: 3
此表列出了所有任务的耽误和(预估)速度,还列出了所有任务的测试分配。末了一行打印了这些任务的总加权耽误,可以大略估计网络的端到端执行时间。末了一行还打印了测试试验的总数、主动调优所花费的总时间以及下一个要调优的任务的 ID。
还有一些「tvm::Error」错误,因为 auto-scheduler 会尝试一些无效的调度。若调优继承运行,则可以忽略这些错误,因为这些错误与主进程隔离。 备注
提前终止调优
可以通过逼迫终止此进程来提前终止调优,只要在日志文件中为每个任务获得至少一个有效的调度,就能够举行编译(下面的部门)。
编译及评估
/workspace/python/tvm/driver/build_module.py:268: UserWarning: target_host parameter is going to be deprecated. Please pass in tvm.target.Target(target, host=target_host) instead.
"target_host parameter is going to be deprecated. "
Evaluate inference time cost...
Execution time summary:
mean (ms) median (ms) max (ms) min (ms) std (ms)
10.0003 9.9944 10.0327 9.9738 0.0244
复制代码
其他本事
在调优过程中,auto-scheduler 需要编译很多步调,并从中提取特征。这部门会占用大量 CPU 资源,所以推荐使用多核的高性能 CPU,加快搜刮速度。