We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 92d0b94 + 2cf8ae7 commit 6a22d17Copy full SHA for 6a22d17
docs/inference/module.md
@@ -2,7 +2,7 @@
2
## 概念说明
3
`Module`接口可以用于模型训练与模型推理
4
- 模型训练时用户可以继承`Module`类增加自己的实现用来训练;
5
-- 模型推理与`Session`的区别是不需要用户显示resize,支持控制流,所以当模型中有`if`或`while`时必须使用`Module`推理
+- 模型推理与`Session`的区别是不需要用户显式resize,支持控制流,所以当模型中有`if`或`while`时必须使用`Module`推理
6
### 相关数据结构
7
- `Module` Module接口的核心类,表示一个模型的虚类;实际加载模型时会创建其子类
8
- `Executor` 包含若干个`RuntimeManager`,提供内存管理接口,每个`Executor`必须在单线程环境下运行。默认提供全局 `Executor`,需要并发执行时,可自行创建。
0 commit comments