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

关于bach数目设定的问题 #19

Open
Haiming94 opened this issue Nov 27, 2019 · 1 comment
Open

关于bach数目设定的问题 #19

Haiming94 opened this issue Nov 27, 2019 · 1 comment

Comments

@Haiming94
Copy link

您好,我已经看这份代码很多遍了,今天突然发现一个问题,我主要想知道下面这个循环:


for batch in range(82):
train_fetch = [m_train.tensors, m_train.train_ops, merged_train]


其中,“82”是如何得到的呢?
谢谢,希望您能和我交流!

@weidalan
Copy link

路过回答一下哈。数据是从dataset里流入的,复制了epoch次。默认的batch是16,所以这个地方只要满足 batch * range的范围 < 最少的训练集的句子数 就可以。

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