Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在前向变量中,t为什么可以小于s? #3

Open
sanqiaiziji opened this issue Oct 11, 2018 · 1 comment
Open

在前向变量中,t为什么可以小于s? #3

sanqiaiziji opened this issue Oct 11, 2018 · 1 comment

Comments

@sanqiaiziji
Copy link

看了你的文章,感觉非常棒。但是看到前向向量部分,我有点疑惑,
_20181011171221
在这个公式的定义中,为什么t可以小于s?

@DingKe
Copy link
Owner

DingKe commented Oct 13, 2018

原则上,t 不可以小于 s (由于 blank 是可以跳过的,两者的对应关系会更复杂一些,具体可以参见 Alex 的论文)。
这里的实现上,为了代码上的简洁,并没有考虑这一限制,计算上有一些步骤是无意义的。因为前向计算时初始值为0,因此,多余的计算并不会影响计算结果。

(后向计算也同理)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants