CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

Bug in Sequence2Sequence.py

Open PaulaQin opened this issue 9 years ago • 1 comments

In CNTK/Examples/SequenceToSequence/CMUDict/Python/Sequence2Sequence.py, there is a bug. In Line 377: query = Value.one_hot([w], len(vdict), sparse_output=True) It will raise the error "Value undefined".

Solution: step 1. import cntk step 2. change "Value.one_hot" to "cntk.Value.one_hot"

PaulaQin avatar Oct 26 '17 01:10 PaulaQin

And in Line 376 query = Value.one_hot([w], len(vdict), sparse_output=True), there is TypeError: one_hot() got an unexpected keyword argument 'sparse_output'. There no these argument.

PaulaQin avatar Oct 27 '17 03:10 PaulaQin