Skip to content

Commit

Permalink
Merge pull request #2861 from DestinyOfLove/patch-1
Browse files Browse the repository at this point in the history
Update module.md
  • Loading branch information
jxt1234 committed May 11, 2024
2 parents 92d0b94 + 2cf8ae7 commit 6a22d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/inference/module.md
Expand Up @@ -2,7 +2,7 @@
## 概念说明
`Module`接口可以用于模型训练与模型推理
- 模型训练时用户可以继承`Module`类增加自己的实现用来训练;
- 模型推理与`Session`的区别是不需要用户显示resize,支持控制流,所以当模型中有`if``while`时必须使用`Module`推理
- 模型推理与`Session`的区别是不需要用户显式resize,支持控制流,所以当模型中有`if``while`时必须使用`Module`推理
### 相关数据结构
- `Module` Module接口的核心类,表示一个模型的虚类;实际加载模型时会创建其子类
- `Executor` 包含若干个`RuntimeManager`,提供内存管理接口,每个`Executor`必须在单线程环境下运行。默认提供全局 `Executor`,需要并发执行时,可自行创建。
Expand Down

0 comments on commit 6a22d17

Please sign in to comment.