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

请问为什么要对batch做循环 #15

Open
fupiao1998 opened this issue May 3, 2022 · 2 comments
Open

请问为什么要对batch做循环 #15

fupiao1998 opened this issue May 3, 2022 · 2 comments

Comments

@fupiao1998
Copy link

您好,非常感谢您开源代码。在代码的模型部分,我看到主模型中的forward对每一个batch做了循环,每一次循环独立处理,在我理解中,batch本身就是独立的,那么是否可以不做循环而直接批次处理呢?

@carrierlxk
Copy link
Owner

carrierlxk commented May 4, 2022 via email

@fupiao1998
Copy link
Author

感谢回复!

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