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 a19bad6f1be0af2343296ded26329266c8f7533b..786e86837c242647f993498a07251bdff066a830 100644 --- a/docs/lite/docs/source_en/tools/benchmark_train_tool.md +++ b/docs/lite/docs/source_en/tools/benchmark_train_tool.md @@ -72,7 +72,7 @@ Model = test_benchmark.ms, numThreads = 1, MinRunTime = 72.228996 ms, MaxRuntime ./benchmark_train --modelFile=./models/test_benchmark.ms --epochs=10 --timeProfiling=true ``` -This command uses a random input, sets the parameter `timeProfiling` as true, times and other parameters use default values. After this command is executed, the statistics on the running time of the model at the network layer will be displayed as follows. In this case, the statistics are displayed by `opName` and `optype`. `opName` indicates the operator name, `optype` indicates the operator type, and `avg` indicates the average running time of the operator per single run, `percent` indicates the ratio of the operator running time to the total operator running time, `calledTimes` indicates the number of times that the operator is run, and `opTotalTime` indicates the total time that the operator is run for a specified number of times. Finally, `total time` and `kernel cost` show the average time consumed by a single inference operation of the model and the sum of the average time consumed by all operators in the model inference, respectively. +This command uses a random input, sets the parameter `timeProfiling` as true, times and other parameters use default values. After this command is executed, the statistics on the running time of the model at the network layer will be displayed as follows. In this case, the statistics are displayed by `opName` and `optype`. `opName` indicates the operator name, `optype` indicates the operator type, and `avg` indicates the average running time of the operator per single run, `percent` indicates the ratio of the operator running time to the total operator running time, `calledTimes` indicates the number of times that the operator is run, and `opTotalTime` indicates the total time that the operator is run for a specified number of times. Finally, `total time` and `kernel cost` show the average time consumed by a single training operation of the model and the sum of the average time consumed by all operators in the model training, respectively. ```text ----------------------------------------------------------------------------------------- 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 841c11621782a9f49182b2c72e5fa4528a64dc6d..01682349bb761461d35ac7b8c6cb2d5595358d59 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 @@ -72,7 +72,7 @@ Model = test_benchmark.ms, numThreads = 1, MinRunTime = 72.228996 ms, MaxRuntime ./benchmark_train --modelFile=./models/test_benchmark.ms --epochs=10 --timeProfiling=true ``` -这条命令使用随机输入,并且输出模型网络层的耗时信息,其他参数使用默认值。该命令执行后,模型网络层的耗时会输出如下统计信息,在该例中,该统计信息按照`opName`和`optype`两种划分方式分别显示,`opName`表示算子名,`optype`表示算子类别,`avg`表示该算子的平均单次运行时间,`percent`表示该算子运行耗时占所有算子运行总耗时的比例,`calledTimes`表示该算子的运行次数,`opTotalTime`表示该算子运行指定次数的总耗时。最后,`total time`和`kernel cost`分别显示了该模型单次推理的平均耗时和模型推理中所有算子的平均耗时之和。 +这条命令使用随机输入,并且输出模型网络层的耗时信息,其他参数使用默认值。该命令执行后,模型网络层的耗时会输出如下统计信息,在该例中,该统计信息按照`opName`和`optype`两种划分方式分别显示,`opName`表示算子名,`optype`表示算子类别,`avg`表示该算子的平均单次运行时间,`percent`表示该算子运行耗时占所有算子运行总耗时的比例,`calledTimes`表示该算子的运行次数,`opTotalTime`表示该算子运行指定次数的总耗时。最后,`total time`和`kernel cost`分别显示了该模型单次训练的平均耗时和模型训练中所有算子的平均耗时之和。 ```text -----------------------------------------------------------------------------------------