Skip to content

Commit

Permalink
doc: fix translation confliction
Browse files Browse the repository at this point in the history
  • Loading branch information
BillHuang2001 committed Jan 31, 2024
1 parent b7dda84 commit ddb18e6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
14 changes: 7 additions & 7 deletions docs/source/guide/advanced/2-jit-able.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ And since `bar` uses the dynamic index, which is not compatible with `jax.jit`,
To solve is problem, it is common practice to jit-compile low-level components, thus giving high-level components more freedom.
In EvoX, we have some general rules on whether a function should be jit-able or not.

| Component | jit-able |
| --------- | -------- |
| Workflow | Optional |
| Algorithm | Yes |
| Problem | Optional |
| Operators | Yes |
| Monitor | No |
| Component | jit-able |
| ----------- | -------- |
| `Workflow` | Optional |
| `Algorithm` | Yes |
| `Problem` | Optional |
| `Operators` | Yes |
| `Monitor` | No |

For standard workflow, one can jit compile when not using monitors and working with jit-able problems.
But even though the workflow can be compiled, there isn't much performance gain.
Expand Down
20 changes: 14 additions & 6 deletions docs/source/locale/zh/LC_MESSAGES/docs.po
Original file line number Diff line number Diff line change
Expand Up @@ -2632,32 +2632,36 @@ msgid "jit-able"
msgstr "可以被jit编译的"

#: ../../source/guide/advanced/2-jit-able.md
msgid "Workflow"
#, fuzzy
msgid "`Workflow`"
msgstr "工作流"

#: ../../source/guide/advanced/2-jit-able.md
msgid "Optional"
msgstr "可选的"

#: ../../source/guide/advanced/2-jit-able.md
msgid "Algorithm"
#, fuzzy
msgid "`Algorithm`"
msgstr "算法"

#: ../../source/guide/advanced/2-jit-able.md
msgid "Yes"
msgstr "是的"

#: ../../source/guide/advanced/2-jit-able.md
msgid "Problem"
#, fuzzy
msgid "`Problem`"
msgstr "问题"

#: ../../source/guide/advanced/2-jit-able.md
msgid "Operators"
#, fuzzy
msgid "`Operators`"
msgstr "操作符"

#: ../../source/guide/advanced/2-jit-able.md
#: ../../source/guide/basics/1-start.ipynb:180002
msgid "Monitor"
#, fuzzy
msgid "`Monitor`"
msgstr "监控器"

#: ../../source/guide/advanced/2-jit-able.md
Expand Down Expand Up @@ -3093,6 +3097,10 @@ msgid ""
"component in our workflow. Introducing `monitor`."
msgstr "你可能还会注意到,`step` 并没有提供任何反馈,比如优化的结果。这是因为我们的工作流中缺少另一个组件。这里介绍 `monitor`(监视器)。"

#: ../../source/guide/basics/1-start.ipynb:180002
msgid "Monitor"
msgstr "监控器"

#: ../../source/guide/basics/1-start.ipynb:180004
msgid ""
"Monitor is a standard way to monitor the intermediate values inside a "
Expand Down

0 comments on commit ddb18e6

Please sign in to comment.