CNTK
CNTK copied to clipboard
Bug in Sequence2Sequence.py
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"
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.