Tensorflow Lite 基准测试应用说明

编程入门 行业动态 更新时间:2024-10-09 00:52:17
本文介绍了Tensorflow Lite 基准测试应用说明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在使用 Tensorflow Lite Benchmark Android应用程序 在 Android 设备上测试我的模型.输出示例如下:

I'm using the Tensorflow Lite Benchmark Android application to test my model on Android devices. An example of the output is the following:

我们的平均推理时间:预热:83235,初始化:38467,推理:79760.9

Average inference timings in us: Warmup: 83235, Init: 38467, Inference: 79760.9

虽然 Inference 的含义对我来说很清楚(即平均推理时间以微秒为单位),但我不知道什么是 WarmupInit 指的是?不幸的是,文档 没有解释这一点.

While the meaning Inference is quite clear to me (i.e., the average inference time in microseconds), I've no idea about what Warmup and Init refer to? Unfortunately, the documentation does not explain this point.

推荐答案

Init:加载模型和构建解释器对象所需的时间,这是初始化步骤,需要发生在开始(即一次性成本)

Init: The time it takes to load the model and build the interpreter object, which is the initialization step that needs to happen at the beginning (i.e., one-time cost)

Warmup:根据 warmup_runs 配置,开始时预热运行所需的平均推理时间.换句话说,将第一个warmup_runs个推理结果平均到输出中的Warmup结果中,并且只将后面的num_runs个推理结果被平均到 Inference 输出中.

Warmup: The average inference time it took for the warmup runs at the beginning, according to the warmup_runs configuration. In other words, the first warmup_runs number of inference results are averaged into the Warmup result in the output, and only the subsequent num_runs number of inferences are averaged into Inference output.

查看基准工具自述文件了解更多详情.https://github/tensorflow/tensorflow/blob/master/tensorflow/lite/tools/benchmark/README.md#parameters

Take a look at the benchmark tool README for more details. https://github/tensorflow/tensorflow/blob/master/tensorflow/lite/tools/benchmark/README.md#parameters

这篇关于Tensorflow Lite 基准测试应用说明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-05-01 01:22:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1402404.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:基准   测试   Tensorflow   Lite

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!