CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

seq_starts parameter for train_minibatch

Open 5vision opened this issue 9 years ago • 2 comments

There is good seq2seq example, which demonstrate how CNTK framework allows to make a sequence model in minibatch agnostic way. Both versions (python, brainscript) uses build-in reader, but what happened if data will be feed from numpy arrays to train_minibatch function with seq_starts arguments? Could you explain the benefits of the sequence begin markers? Is it somehow pre-cache data inside the engine (found interesting function GetCNTKImplMatrixAndMBLayoutFromValueObject), or this chunk of data will be immediately processed through the computation nodes? Maybe this relates with BPTT?

5vision avatar Jan 29 '17 11:01 5vision

For feeding numpy arrays, please see Manual: How to feed data.

tangyuq avatar Jul 14 '17 17:07 tangyuq

Markers say when to reset the state of the network. There is no pre-cached data inside the network, the minibatch is processed immediately.

eldakms avatar Jul 17 '17 11:07 eldakms