GitHub - rantsandruse/pytorch_lstm_04imdb
https://github.com/rantsandruse/pytorch_lstm_04imdbTo find out the intrinsic dimension of our LSTM model wrt IMDB dataset, I used an existing github implementation with some minor modifications (see code here). This requires a two-step modification from a regular NN module: First, in the initialization stage: Declare the random projection matrix P, extract all weights from pytorch, store them in class parameters and delete …