From c5440cf734fcdec8ecf42ae01954dbb33459b96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AA=A6=E6=A2=93=E8=B1=AA?= Date: Thu, 30 Oct 2025 15:28:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dlite=E6=96=87=E6=A1=A3benchma?= =?UTF-8?q?rk=5Fbin=E7=94=A8=E8=AF=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by douzihao@huawei.com --- docs/lite/docs/source_en/tools/benchmark_train_tool.md | 4 ++-- docs/lite/docs/source_zh_cn/tools/benchmark_train_tool.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/lite/docs/source_en/tools/benchmark_train_tool.md b/docs/lite/docs/source_en/tools/benchmark_train_tool.md index 177aec0e29..82aa4e3652 100644 --- a/docs/lite/docs/source_en/tools/benchmark_train_tool.md +++ b/docs/lite/docs/source_en/tools/benchmark_train_tool.md @@ -56,13 +56,13 @@ When using the `benchmark_train` tool to perform benchmark testing, you can set #### Performance Test -The main test indicator of the performance test performed by the `benchmark_train` tool is the duration of a single forward inference. In a performance test, please set `epochs` to a value greater than 1, no need to set benchmark data parameters such as `expectedDataFile`, etc. But you can set the parameter `timeProfiling` as True or False to decide whether to print the running time of the model at the network layer on a certain device. The default value of `timeProfiling` is False. For example: +The main test indicator of the performance test performed by the `benchmark_train` tool is the duration of a single forward training step. In a performance test, please set `epochs` to a value greater than 1, no need to set benchmark data parameters such as `expectedDataFile`, etc. But you can set the parameter `timeProfiling` as True or False to decide whether to print the running time of the model at the network layer on a certain device. The default value of `timeProfiling` is False. For example: ```bash ./benchmark_train --modelFile=./models/test_benchmark.ms --epochs=10 ``` -This command uses a random input, and other parameters use default values. After this command is executed, the following statistics are displayed. The statistics include the minimum duration, maximum duration, and average duration of a single inference after the tested model runs for the specified number of inference rounds. +This command uses a random input, and other parameters use default values. After this command is executed, the following statistics are displayed. The statistics include the minimum duration, maximum duration, and average duration of a single training step after the tested model runs for the specified number of training rounds. ```text Model = test_benchmark.ms, numThreads = 1, MinRunTime = 72.228996 ms, MaxRuntime = 73.094002 ms, AvgRunTime = 72.556000 ms diff --git a/docs/lite/docs/source_zh_cn/tools/benchmark_train_tool.md b/docs/lite/docs/source_zh_cn/tools/benchmark_train_tool.md index e2813d8d7a..3c2d8850b0 100644 --- a/docs/lite/docs/source_zh_cn/tools/benchmark_train_tool.md +++ b/docs/lite/docs/source_zh_cn/tools/benchmark_train_tool.md @@ -62,7 +62,7 @@ benchmark_train工具所在完整路径为`/path/mindspore-lite-{version}-{os}-{ ./benchmark_train --modelFile=./models/test_benchmark.ms --epochs=10 ``` -这条命令使用随机输入,循环10次,其他参数使用默认值。该命令执行后会输出如下统计信息,该信息显示了测试模型在运行指定推理轮数后所统计出的单次推理最短耗时、单次推理最长耗时和平均推理耗时。 +这条命令使用随机输入,循环10次,其他参数使用默认值。该命令执行后会输出如下统计信息,该信息显示了测试模型在运行指定训练轮数后所统计出的单次训练最短耗时、单次训练最长耗时和平均训练耗时。 ```text Model = test_benchmark.ms, numThreads = 1, MinRunTime = 72.228996 ms, MaxRuntime = 73.094002 ms, AvgRunTime = 72.556000 ms -- Gitee