Skip to content

Instantly share code, notes, and snippets.

View wesbarnett's full-sized avatar

Wes Barnett, PhD wesbarnett

View GitHub Profile
import torch
from torch import nn
from torch.autograd import Variable
import torch.nn.functional as F
class RNN(nn.Module):
def __init__(self, input_size, hidden_size, output_size, n_layers=1):
super(RNN, self).__init__()
self.input_size = input_size
self.hidden_size = hidden_size