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

关于损失函数的问题 #37

Open
xuncheng1997 opened this issue Jun 27, 2023 · 0 comments
Open

关于损失函数的问题 #37

xuncheng1997 opened this issue Jun 27, 2023 · 0 comments

Comments

@xuncheng1997
Copy link

作者你好,想请教一个问题,随机裁剪两个上下文后,怎么保证输出序列中out1和out2第一个索引在原始序列中对应的是同一个时间戳,如果不是对应的话,后面计算损失函数感觉和原文提到的不一样。
out1 = self._net(take_per_row(x, crop_offset + crop_eleft, crop_right - crop_eleft))
out1 = out1[:, -crop_l:]

out2 = self._net(take_per_row(x, crop_offset + crop_left, crop_eright - crop_left))
out2 = out2[:, :crop_l]

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

1 participant