更新时间:2024-04-30 GMT+08:00
分享

单模型性能测试工具Mindspore lite benchmark

可以直接使用benchmark命令测试mindir模型性能,用来对比调优前后性能是否有所提升。

# shell
cd /home_host/work
benchmark --modelFile=diffusers/scripts/mindir_models/text_encoder.mindir --device=Ascend

上述命令中:modelFile指定生成的mindir模型文件;device指定运行推理的设备。其他用法参考benchmark文档

测试结果如下所示:

图1 测试结果
分享:

    相关文档

    相关产品