Hi,
Sorry don’t know why it’s gone.
Here’s a re-upload of the gist, slightly modified:

  
      gist.github.com
  
  
    https://gist.github.com/AAnoosheh/b3cce037ae24a86d89505907ec098d62 129
phased_lstm.py
import math

import torch
import torch.nn as nn



class PhasedLSTMCell(nn.Module):
    """Phased LSTM recurrent network cell.
    https://arxiv.org/pdf/1610.09513v1.pdf
This file has been truncated. show original




  
  
    
    
  
  


I just modified it from the version in my codebase, deleting unnecessary code.
Haven’t tried running it for now, but should be fine. Hopefully no typos.