Skip to content

Commit

Permalink
chore: update terms, ref #102
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Dec 6, 2022
1 parent 7dd611e commit 0f91c6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/arch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ title: 设计与架构
前面介绍了关键数据结构,接下来讲转换。转换的目的有:

* 优化:将程序转换为等效,甚至更优的版本。
* 降级:将程序转换为更接近 target 的较低级别表示。 **relay/transform** 包含一组优化模型的 pass。优化包括常见的程序优化(例如常量折叠和无用代码清除),以及特定于张量计算的 pass(例如布局转换和 scale 因子折叠)。
* 降级:将程序转换为更接近 target 的较低级别表示。 **relay/transform** 包含一组优化模型的 pass。优化包括常见的程序优化(例如常量折叠和死码消除),以及特定于张量计算的 pass(例如布局转换和 scale 因子折叠)。

在 Relay 优化 pipeline 之后,运行 pass (FuseOps),将端到端功能(例如 MobileNet)分解为子功能(例如 conv2d-relu)段。这个过程帮助将原始问题分为两个子问题:
在 Relay 优化 pipeline 之后,运行 pass (FuseOps),将端到端函数(例如 MobileNet)分解为子功能(例如 conv2d-relu)段。这个过程帮助将原始问题分为两个子问题:

* 所有子函数的编译和优化。
* 整体执行结构:对生成的子函数进行一系列调用,执行整个模型。 使用下层 tir 阶段来编译和优化每个子函数。对于特定的 targets,也可以直接进入 target 转换阶段,使用外部代码生成器。
Expand Down

0 comments on commit 0f91c6a

Please sign in to comment.