Merge pull request #2881 from zingdle/patch-2
Remove redundant code in CNTK_204_Sequence_To_Sequence.ipynb
This commit is contained in:
Коммит
8b71ff0c3a
|
@ -292,13 +292,7 @@
|
|||
" return (vocab, i2w, w2i)\n",
|
||||
"\n",
|
||||
"# Read vocabulary data and generate their corresponding indices\n",
|
||||
"vocab, i2w, w2i = get_vocab(dataPath['vocab_file'])\n",
|
||||
"\n",
|
||||
"def create_reader(path, is_training):\n",
|
||||
" return MinibatchSource(CTFDeserializer(path, StreamDefs(\n",
|
||||
" features = StreamDef(field='S0', shape=input_vocab_dim, is_sparse=True),\n",
|
||||
" labels = StreamDef(field='S1', shape=label_vocab_dim, is_sparse=True)\n",
|
||||
" )), randomize = is_training, max_sweeps = INFINITELY_REPEAT if is_training else 1)"
|
||||
"vocab, i2w, w2i = get_vocab(dataPath['vocab_file'])"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче