Skip to content

Commit 31d78fd

Browse files
committed
尝试将/en路径重定向
1 parent d468a5b commit 31d78fd

File tree

8 files changed

+33
-11
lines changed

8 files changed

+33
-11
lines changed

.htaccess

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
RewriteEngine On
2+
RewriteRule ^en/?$ / [R=301,L]

.nojekyll

Whitespace-only changes.

404.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Redirecting...</title>
6+
<script>
7+
var lang = navigator.language || navigator.userLanguage;
8+
if (lang.startsWith("en")) {
9+
window.location.href = "/";
10+
} else {
11+
window.location.href = "/en/";
12+
}
13+
</script>
14+
</head>
15+
<body>
16+
<p>Redirecting to English version...</p>
17+
</body>
18+
</html>

docs/backend-reference/torch.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ The following are initialization parameters:
112112
|--------------|---------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
113113
| model | Model path | Supports <br />- onnx files ending with .onnx<br />- tensorrt engine files ending with .trt <br />- [encrypted](../tools/encrypt.mdx) files ending with .onnx.encrypted and .trt.encrypted |
114114
| instance_num | Number of instances | If the number of profiles in the tensorrt engine is not enough to establish enough instances, multiple engines will be deserialized. |
115-
| [postprocessor](#post-processing-extension) | Custom post-processing | Custom C++ batch post-processing for network output; the default operation is to split the batch dimension; needs to be implemented as a subclass of PostProcessor and registered. ||
115+
| [postprocessor](#postprocessing-extension) | Custom post-processing | Custom C++ batch post-processing for network output; the default operation is to split the batch dimension; needs to be implemented as a subclass of PostProcessor and registered. ||
116116

117117
For onnx models, there are the following additional parameters:
118118

docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const config = {
2929
i18n: {
3030
defaultLocale: DefaultLocale,
3131
locales: ['zh','en'],
32+
3233
localeConfigs: {
3334
en: {
3435
label: 'English',

i18n/zh/docusaurus-plugin-content-docs/current/backend-reference/torch.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ tensorrt推理引擎
112112

113113
以下是初始化参数:
114114

115-
| | 说明 | 备注 |
116-
|------------------------------|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
117-
| model | 模型路径 | 支持 <br />- 以 .onnx 结尾的onnx文件<br />- 以 .trt 结尾的tensorrt engine文件 <br />- 以 .onnx.encrypted 和 .trt.encrypted 结尾的[加密](../tools/encrypt.mdx)文件 |
118-
| instance_num | 实例数目 | 如果tensorrt engine的profile数目不足以建立足够的实例数,将反序列化多个engine. |
119-
| [postprocessor](#后处理扩展) | 自定义后处理 | 自定义网络输出c++批后处理;默认操作是拆分batch维度; 需要实现为 PostProcessor 的子类并注册 |
115+
| | 说明 | 备注 |
116+
|--------------------------------------------|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
117+
| model | 模型路径 | 支持 <br />- 以 .onnx 结尾的onnx文件<br />- 以 .trt 结尾的tensorrt engine文件 <br />- 以 .onnx.encrypted 和 .trt.encrypted 结尾的[加密](../tools/encrypt.mdx)文件 |
118+
| instance_num | 实例数目 | 如果tensorrt engine的profile数目不足以建立足够的实例数,将反序列化多个engine. |
119+
| [postprocessor](#postprocessing-extension) | 自定义后处理 | 自定义网络输出c++批后处理;默认操作是拆分batch维度; 需要实现为 PostProcessor 的子类并注册 |
120120

121121
对于onnx模型,有以下额外参数
122122

@@ -153,7 +153,7 @@ tensorrt推理引擎
153153
### min()/max()
154154
输入范围将从tensorrt模型中读取。
155155

156-
### 后处理扩展
156+
### 后处理扩展 {#postprocessing-extension}
157157
为了便于batch化后处理,TensorrtTensor引入了后处理扩展。基类为:
158158
```cpp
159159
template <typename T=at::Tensor>

i18n/zh/docusaurus-plugin-content-docs/current/faq/onnx.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ nvidia官方用于测试tensorrt或者onnx的工具。提供模型转换功能
178178

179179

180180
## 参考连接
181-
[PyTorch 转 ONNX 详解](https://zhuanlan.zhihu.com/p/498425043)
182-
[ONNX 模型的修改与调试](https://zhuanlan.zhihu.com/p/516920606)
183-
[TensorRT 教程 | 基于 8.6.1 版本](https://www.bilibili.com/video/BV1jj411Z7wG/?spm_id_from=333.999.0.0&vd_source=c31de98543aa977b5899e24bdd5d8f89)
184-
[quantization tutorial](https://github.com/NVIDIA/TensorRT/tree/release/8.6/quickstart/quantization_tutorial)
181+
- [PyTorch 转 ONNX 详解](https://zhuanlan.zhihu.com/p/498425043)
182+
- [ONNX 模型的修改与调试](https://zhuanlan.zhihu.com/p/516920606)
183+
- [TensorRT 教程 | 基于 8.6.1 版本](https://www.bilibili.com/video/BV1jj411Z7wG/?spm_id_from=333.999.0.0&vd_source=c31de98543aa977b5899e24bdd5d8f89)
184+
- [quantization tutorial](https://github.com/NVIDIA/TensorRT/tree/release/8.6/quickstart/quantization_tutorial)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "website",
33
"version": "0.0.0",
44
"private": true,
5+
"homepage": "/",
56
"scripts": {
67
"docusaurus": "docusaurus",
78
"start": "docusaurus start --no-open",

0 commit comments

Comments
 (0)