Skip to content

Commit f487cff

Browse files
committed
fix typo
1 parent 438a4e4 commit f487cff

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

docs/python/test.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ test_from_raw_file(forward_function, os.path.join("assets/norm_jpg/"),
9393
| tool's version | 20230421.0 |
9494
| num_clients | 10 |
9595
| total_number | 10000 |
96-
| throughout::qps | 1642.34 |
97-
| throughout::avg | 6.09(ms) |
96+
| throughput::qps | 1642.34 |
97+
| throughput::avg | 6.09(ms) |
9898
| latency::TP50 | 5.17 |
9999
| latency::TP90 | 7.56 |
100100
| latency::TP99 | 21.88 |
@@ -104,12 +104,12 @@ test_from_raw_file(forward_function, os.path.join("assets/norm_jpg/"),
104104
</details>
105105

106106

107-
### torchpipe.utils.test.throughout
107+
### torchpipe.utils.test.throughput
108108

109109
*从0.3.1b3版本开始生效*
110110

111111
```python
112-
def throughout(model_path, precision, post=None,input_data=None, calibrate_dir="calibrate_dir")
112+
def throughput(model_path, precision, post=None,input_data=None, calibrate_dir="calibrate_dir")
113113
```
114114
> 给定模型文件路径[onnx or tensorrt],测试该模型在torchpipe吞吐,默认配置max=4,instance=2
115115
@@ -131,11 +131,11 @@ import torchpipe
131131
import torch
132132
import os
133133

134-
## test throughout
134+
## test throughput
135135
onnx_path = os.path.join("/tmp", f"resnet50.onnx")
136136
input_data = torch.randn(1, 3, 224, 224).cuda()
137137
precision = "fp16"
138-
torchpipe.utils.test.throughout(onnx_path, precision, post=None, input_data=input_data)
138+
torchpipe.utils.test.throughput(onnx_path, precision, post=None, input_data=input_data)
139139
```
140140

141141
<details><summary>calibrate_dir存放的calibrate文件示例</summary>

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const config = {
112112
{ name: "og:image", content: "__.png" },
113113
],
114114
navbar: {
115-
title: "torchpipe",
115+
title: "TorchPipe",
116116
logo: {
117117
alt: "torchpipe Logo",
118118
src: "images/logo.svg",

i18n/zh/docusaurus-plugin-content-docs/current/python/test.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ test_from_raw_file(forward_function, os.path.join("assets/norm_jpg/"),
9393
| tool's version | 20230421.0 |
9494
| num_clients | 10 |
9595
| total_number | 10000 |
96-
| throughout::qps | 1642.34 |
97-
| throughout::avg | 6.09(ms) |
96+
| throughput::qps | 1642.34 |
97+
| throughput::avg | 6.09(ms) |
9898
| latency::TP50 | 5.17 |
9999
| latency::TP90 | 7.56 |
100100
| latency::TP99 | 21.88 |
@@ -104,12 +104,12 @@ test_from_raw_file(forward_function, os.path.join("assets/norm_jpg/"),
104104
</details>
105105

106106

107-
### torchpipe.utils.test.throughout
107+
### torchpipe.utils.test.throughput
108108

109109
*从0.3.1b3版本开始生效*
110110

111111
```python
112-
def throughout(args_dict, num_clients=10, total_number=10000)
112+
def throughput(args_dict, num_clients=10, total_number=10000)
113113
```
114114
> 给定模型参数,测试该模型在torchpipe吞吐,torchpipe的默认配置max=4,instance=2
115115
@@ -128,15 +128,15 @@ import torchpipe
128128
import torch
129129
import os
130130

131-
## test throughout
131+
## test throughput
132132
onnx_path = os.path.join("/tmp", f"resnet50.onnx")
133133
precision = "fp16"
134134
dict_args = {
135135
'model' : onnx_path,
136136
'precision' : precision,
137137
}
138138

139-
result = torchpipe.utils.test.throughout(dict_args, num_clients=5, total_number=5000)
139+
result = torchpipe.utils.test.throughput(dict_args, num_clients=5, total_number=5000)
140140

141141
```
142142
</details>

0 commit comments

Comments
 (0)