A compilation of concepts I want to remember...

Navigation
 » Home
 » About Me
 » Github

Refresher: a few resources covering RNNs, trainable parameters + flops

07 Nov 2018 » deeplearning

A few topics/resources that I needed recently as a refresher. Need to summarize at a later dateā€¦

RNNs

Improving learning
  1. https://pytorch.org/docs/stable/_modules/torch/nn/modules/normalization.html
  2. http://ceur-ws.org/Vol-2142/paper4.pdf
  3. https://github.com/DingKe/pytorch_workplace/blob/master/rnn/modules.py#L122
  4. https://discuss.pytorch.org/t/proper-way-to-do-gradient-clipping/191/14
  5. https://github.com/yunjey/pytorch-tutorial/blob/master/tutorials/02-intermediate/language_model/main.py
  6. https://forums.fast.ai/t/30-best-practices/12344
Variable RNN
  1. https://pytorch.org/docs/stable/nn.html#torch.nn.utils.rnn.pack_padded_sequence
  2. https://towardsdatascience.com/taming-lstms-variable-sized-mini-batches-and-why-pytorch-is-good-for-your-health-61d35642972e
  3. https://discuss.pytorch.org/t/understanding-pack-padded-sequence-and-pad-packed-sequence/4099/6
  4. https://gist.github.com/Tushar-N/dfca335e370a2bc3bc79876e6270099e

Calculating trainable parameters and flops

Flops
  1. http://machinethink.net/blog/how-fast-is-my-model/
  2. https://stats.stackexchange.com/questions/328926/how-many-parameters-are-in-a-gated-recurrent-unit-gru-recurrent-neural-network
  3. https://petewarden.com/2015/04/20/why-gemm-is-at-the-heart-of-deep-learning/
  4. https://piazza.com/class/jjjilbkqk8m1r4?cid=1063
  5. https://stats.stackexchange.com/questions/291843/how-to-understand-calculate-flops-of-the-neural-network-model
Trainable parameters
  1. https://stackoverflow.com/questions/42786717/how-to-calculate-the-number-of-parameters-for-convolutional-neural-network
  2. https://www.learnopencv.com/number-of-parameters-and-tensor-sizes-in-convolutional-neural-network/
  3. https://stats.stackexchange.com/questions/328926/how-many-parameters-are-in-a-gated-recurrent-unit-gru-recurrent-neural-network

Random

  1. https://documents.epfl.ch/users/f/fl/fleuret/www/dlc/dlc-handout-6-going-deeper.pdf