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

渲染有bug,dropout掉的内容未从标签中剔除 #17

Open
KingHaremIII opened this issue Mar 4, 2022 · 1 comment
Open

渲染有bug,dropout掉的内容未从标签中剔除 #17

KingHaremIII opened this issue Mar 4, 2022 · 1 comment

Comments

@KingHaremIII
Copy link

core/layout/init.py中添加:
waiting_removing = [] # 添加
for block in self.block_list:
if np.random.rand() < dropout:
log.info('dropout incurred. ')
waiting_removing.append(block) # 添加
continue

block渲染完后删除dropout掉的标签:
for wr in waiting_removing:
self.block_list.remove(wr)

@BboyHanat
Copy link
Owner

我debug 下,欢迎pr 哈

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