Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Added replace_lstm_recursively #259

Merged
merged 3 commits into from
May 15, 2019
Merged

Conversation

levzlotnik
Copy link
Contributor

This functions replaces all nn.LSTM and nn.LSTMCell in the model to a DistillerLSTM[Cell].

* Fixed recursion bug by using `model.named_children` instead
of `model.named_modules`
@levzlotnik levzlotnik merged commit 12d6b7e into master May 15, 2019
@levzlotnik levzlotnik deleted the add_convert_lstm_distiller branch May 15, 2019 13:53
michaelbeale-IL pushed a commit that referenced this pull request Apr 24, 2023
* Traverses recursively through entire model and replaces all submodules of type `nn.LSTM` and `nn.LSTMCell` with distiller versions
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants