This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class RNN(torch.nn.Module): | |
| ''' Simple pure-pytorch RNN implementation ''' | |
| def __init__(self, input_size, hidden_size, batch_first=False): | |
| super(RNN, self).__init__() | |
| self.hidden_size = hidden_size | |
| self.batch_first = batch_first | |
| self.input_layer = torch.nn.Linear(input_size, hidden_size, bias=False) | |
| self.hidden_layer = torch.nn.Linear(hidden_size, hidden_size, bias=True) | |
| self.activation = torch.nn.Tanh() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file automates the build and install instructions for klayout (http://www.klayout.de) on Ubuntu. | |
| # run this file as follows: | |
| # source klayout.sh | |
| # go to home folder | |
| cd ~ | |
| # install dependencies | |
| sudo apt-get --yes --force-yes install build-essential |