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 size)不同的問題 #8

Open
billy800413 opened this issue Oct 27, 2017 · 1 comment
Open

Comments

@billy800413
Copy link

請問一下有辦法能讓預測時真的只要輸入一個句子就好嗎?
就是這段程式碼不用*batch_size
answer_logits = sess.run(logits, {input_data: [text]*batch_size,
target_sequence_length: [len(input_word)]*batch_size,
source_sequence_length: [len(input_word)]*batch_size})[0]

@parahaoer
Copy link

我也有同样的困惑,为什么要乘以batch_size呢?请问你知道怎么改了吗

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