File tree Expand file tree Collapse file tree 8 files changed +33
-11
lines changed
i18n/zh/docusaurus-plugin-content-docs/current Expand file tree Collapse file tree 8 files changed +33
-11
lines changed Original file line number Diff line number Diff line change 1+ RewriteEngine On
2+ RewriteRule ^en/?$ / [R=301 ,L]
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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
117117For onnx models, there are the following additional parameters:
118118
Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff 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
159159template <typename T=at::Tensor>
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 22 "name" : " website" ,
33 "version" : " 0.0.0" ,
44 "private" : true ,
5+ "homepage" : " /" ,
56 "scripts" : {
67 "docusaurus" : " docusaurus" ,
78 "start" : " docusaurus start --no-open" ,
You can’t perform that action at this time.
0 commit comments