Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for fast variable-length LSTM (apache#14208)
* initial commit for variable length sequence support w/ cudnn * removing check about all vectors on same context (need to add back in) * fixing commented-out code to actually coment-out what I wanted * fixing cudnn layout type to be unpacked in var-length seq case * looks like param.batch_size_ etc weren't previousy getting set in cudnn operator code. still doesn't fix cudnn error though * must call cudnnSetRNNPaddingMode() to enable unpacked padded sequences * cleaning up & adding unit tests * cleanign up * cleanign up * removing stringstream and checking for cudnn >= 7.2 * fixing whitespace formatting errors; adding ifdef version guard for cudnn padding * fixing a few syntax errors * changing order of arguments in hybird_forward for backward compatibility * more build validation fixes * using emplace_back to make linter happy * adding import of mxnet.ndarray * switching order of sequence_length in hybrid_forward again * adding __call__ override to rnn layer to handle optional sequence_length argument * whoops swapped order of args in one place but not the other * changing type() to isinstance() to make linter happy * changing lstm var seq length call to explciitly name sequence_length parameter * fixing bad scope of if-statement checking state outputs * resolving reviewer comments * making linter happy by putting var definitions in appropriate ifdef * fixing linter again * fixing whitespace issues with linter * fixing whitespace issues with linter * fixing some typos that emerged fixing linter * linter * fixing more whitespace issues * only access kTempSpace if on gpu * removing tabs that slipped in * fixing too-long line * changing ifdef guard to be more generic * reverting change so whitespace stays same w/ master * adding todo comment
- Loading branch information