AbrahamSanders / AbrahamSanders/seq2seq-chatbot

--enablesampling is broken

未关闭
#5 0 条评论 0 个 reaction 已指派 1 人 已被 @AbrahamSanders 认领 在 GitHub 查看
bug
主要语言
Python
星标
99
派生
54
PR 合并指标
30 天内没有已合并 PR

描述

In chat:
--beamwidth=0
--enablesampling

This causes a traceback:

```
Traceback (most recent call last):
File "chat.py", line 43, in
model_dir = model_dir) as model:
File "C:\Source\Repos\seq2seq-chatbot\seq2seq-chatbot\chatbot_model.py", line 112, in __init__
self.predictions, self.predictions_seq_lengths = self._build_model()
File "C:\Source\Repos\seq2seq-chatbot\seq2seq-chatbot\chatbot_model.py", line 492, in _build_model
output_layer)
File "C:\Source\Repos\seq2seq-chatbot\seq2seq-chatbot\chatbot_model.py", line 731, in _build_inference_decoder
scope = decoder_scope)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\contrib\seq2seq\python\ops\decoder.py", line 323, in dynamic_decode
swap_memory=swap_memory)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 3209, in while_loop
result = loop_context.BuildLoop(cond, body, loop_vars, shape_invariants)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 2941, in BuildLoop
pred, body, original_loop_vars, loop_vars, shape_invariants)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 2915, in _BuildLoop
next_vars.append(_AddNextAndBackEdge(m, v))
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 661, in _AddNextAndBackEdge
_EnforceShapeInvariant(m, v)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 599, in _EnforceShapeInvariant
assert input_t.shape == m_shape
AssertionError
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。